30 lines
731 B
C#
30 lines
731 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using Flawless.Server.Controllers;
|
|
|
|
namespace Flawless.Server.Models;
|
|
|
|
public class Repository
|
|
{
|
|
[Key]
|
|
[Required]
|
|
public Guid Id { get; set; }
|
|
|
|
[Required]
|
|
public required AppUser Owner { get; set; }
|
|
|
|
[Required]
|
|
public required string Name { get; set; }
|
|
|
|
public string? Description { get; set; }
|
|
|
|
[Required]
|
|
public bool IsArchived { get; set; } = false;
|
|
|
|
public List<RepositoryMember> Members { get; set; } = new();
|
|
|
|
public List<RepositoryCommit> Commits { get; set; } = new();
|
|
|
|
public List<RepositoryDepot> Depots { get; set; } = new();
|
|
|
|
public List<RepositoryLockedFile> Locked { get; set; } = new();
|
|
} |