sledgemapper/Sledgemapper.Api/Core/Entities/Campaign.cs
Michele 4d40add598
All checks were successful
continuous-integration/drone/push Build is passing
add map to campaign
2021-09-01 23:53:52 +01:00

23 lines
597 B
C#

using System;
using System.Collections.Generic;
using Microsoft.EntityFrameworkCore;
using Sledgemapper.Api.Models;
using Sledgemapper.Entities;
namespace Sledgemapper.Api.Core.Entities
{
[Index(nameof(CampaignName), nameof(OwnerId), IsUnique = true)]
public class Campaign
{
public Guid CampaignId { get; set; }
public string CampaignName { get; set; }
public string OwnerId { get; set; }
public User Owner { get; set; }
public ICollection<User> InvitedUsers { get; set; }
public ICollection<Session> Maps { get; set; }
}
}