Revize fe0ccf07
Přidáno uživatelem Vojtěch Bartička před téměř 3 roky(ů)
Backend/Core/Contexts/DatabaseContext.cs | ||
---|---|---|
28 | 28 |
public DbSet<SubTag> SubTags { get; set; } |
29 | 29 |
public DbSet<TagCategory> TagCategories { get; set; } |
30 | 30 |
public DbSet<ConfigurationItem> ConfigurationItems { get; set; } |
31 |
public DbSet<FinalAnnotation> FinalAnnotations { get; set; } |
|
32 |
public DbSet<FinalAnnotationTag> FinalAnnotationTags { get; set; } |
|
31 | 33 |
|
32 | 34 |
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) |
33 | 35 |
{ |
Backend/Core/Entities/FinalAnnotation.cs | ||
---|---|---|
1 |
using System; |
|
2 |
using System.Collections.Generic; |
|
3 |
using System.Linq; |
|
4 |
using System.Text; |
|
5 |
using System.Threading.Tasks; |
|
6 |
|
|
7 |
namespace Core.Entities |
|
8 |
{ |
|
9 |
public class FinalAnnotation : Annotation |
|
10 |
{ |
|
11 |
public List<Annotation> Annotations { get; set; } = new(); |
|
12 |
} |
|
13 |
} |
Backend/Core/Entities/FinalAnnotationTag.cs | ||
---|---|---|
1 |
using System; |
|
2 |
using System.Collections.Generic; |
|
3 |
using System.Linq; |
|
4 |
using System.Text; |
|
5 |
using System.Threading.Tasks; |
|
6 |
|
|
7 |
namespace Core.Entities |
|
8 |
{ |
|
9 |
public class FinalAnnotationTag : AnnotationTag |
|
10 |
{ |
|
11 |
public bool IsFinal { get; set; } = false; |
|
12 |
public List<User> Users { get; set; } = new(); |
|
13 |
} |
|
14 |
} |
Také k dispozici: Unified diff
Added tables for finalizing annotations to DB