16 lines
382 B
C#
16 lines
382 B
C#
|
using System.ComponentModel.DataAnnotations;
|
||
|
|
||
|
namespace Renis.Database.Models;
|
||
|
|
||
|
public class UserPolis
|
||
|
{
|
||
|
[Key]
|
||
|
public long Id { get; set; }
|
||
|
[Required]
|
||
|
public long UserId { get; set; }
|
||
|
public User User { get; set; } = null!;
|
||
|
[Required]
|
||
|
public long PolisId { get; set; }
|
||
|
public Polis Polis { get; set; } = null!;
|
||
|
public bool IsOwner { get; set; }
|
||
|
}
|