sledgemapper/Sledgemapper.Api/Core/Entities/Campaign.cs
Michele 96657989c8
All checks were successful
continuous-integration/drone/push Build is passing
small campaign progress
2021-08-28 22:41:42 +01:00

22 lines
562 B
C#

using System;
using System.Collections.Generic;
using Microsoft.EntityFrameworkCore;
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<Map> Maps { get; set; }
}
}