sledgemapper/Sledgemapper.Api/Core/Entities/Session.cs
Michele Scandura 195533bce0
All checks were successful
continuous-integration/drone/push Build is passing
migrating session/map it to guid.
2021-09-16 16:51:07 +01:00

22 lines
502 B
C#

using Microsoft.EntityFrameworkCore;
using System;
using System.ComponentModel.DataAnnotations;
namespace Sledgemapper.Api.Models
{
[Index(nameof(CampaignId), nameof(SessionName), IsUnique = true)]
public class Session
{
[Key]
public Guid SessionId { get; set; }
[Required]
public Guid CampaignId { get; set; }
[Required]
public string SessionName { get; set; }
[Required]
public string OwnerUserId { get; set; }
}
}