重构项目结构,移除Assignment相关功能,优化Submission模块
Some checks failed
TechAct / explore-gitea-actions (push) Failing after 12s

This commit is contained in:
SpecialX
2025-10-09 18:57:28 +08:00
parent 403b34a098
commit ac900159ba
289 changed files with 11948 additions and 20150 deletions

View File

@@ -9,8 +9,8 @@ namespace Entities.Contracts
public class School
{
[Key]
[Column("school_id")]
public int SchoolId { get; set; }
[Column("id")]
public Guid Id { get; set; }
[Column("school_name")]
[MaxLength(50)]
@@ -23,11 +23,12 @@ namespace Entities.Contracts
[Column("create_time")]
public DateTime CreateTime { get; set; }
// Navigation Properties
public ICollection<Grade> Grades { get; set; }
[InverseProperty(nameof(Grade.School))]
public virtual ICollection<Grade> Grades { get; set; }
public School()
{
Id = Guid.NewGuid();
Grades = new HashSet<Grade>();
CreateTime = DateTime.Now;
}