This commit is contained in:
parent
4c345bd044
commit
4d40add598
13 changed files with 1722 additions and 12 deletions
|
@ -1,6 +1,7 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Sledgemapper.Api.Models;
|
||||
using Sledgemapper.Entities;
|
||||
|
||||
namespace Sledgemapper.Api.Core.Entities
|
||||
|
@ -17,6 +18,6 @@ namespace Sledgemapper.Api.Core.Entities
|
|||
|
||||
public ICollection<User> InvitedUsers { get; set; }
|
||||
|
||||
public ICollection<Map> Maps { get; set; }
|
||||
public ICollection<Session> Maps { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
using Microsoft.EntityFrameworkCore;
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Sledgemapper.Api.Models
|
||||
{
|
||||
[Index(nameof(CampaignId), nameof(SessionName), IsUnique = true)]
|
||||
public class Session
|
||||
{
|
||||
[Key]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue