refact and login

This commit is contained in:
Paul Schneider 2026-03-09 02:07:09 +00:00
commit e042e34bf7
78 changed files with 2492 additions and 50576 deletions

View file

@ -24,7 +24,7 @@ namespace Yavsc.Server.Models.IT
/// As a side effect, there's no project without valid git reference in db.
/// </summary>
/// <returns></returns>
[YaRequired]
[Required]
public string Name { get; set; }
public string Version { get; set; }
@ -33,7 +33,7 @@ namespace Yavsc.Server.Models.IT
public virtual List<ProjectBuildConfiguration> Configurations { get; set; }
[YaRequired]
[Required]
public long GitId { get; set; }
[ForeignKey("GitId")]

View file

@ -13,7 +13,7 @@ namespace Yavsc.Server.Models.IT
[Key,DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public long Id { get; set; }
[YaRequired]
[Required]
public string Name { get; set; }
public long ProjectId { get; set; }

View file

@ -10,7 +10,7 @@ namespace Yavsc.Server.Models.IT.SourceCode
[Key,DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public long Id { get; set; }
[YaRequired]
[Required]
public string Path { get; set; }
[YaStringLength(2048)]
@ -30,4 +30,4 @@ namespace Yavsc.Server.Models.IT.SourceCode
return $"[Git ref {Path} {Branch} {Url}]";
}
}
}
}