mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
feat(data): support soft-deleting FilterLists
This commit is contained in:
parent
c3aac77b41
commit
599a9aa0d2
5 changed files with 87699 additions and 1 deletions
56934
server/src/FilterLists.Data.Migrations/Migrations/20200705183800_SoftDeleteFilterList.Designer.cs
generated
Normal file
56934
server/src/FilterLists.Data.Migrations/Migrations/20200705183800_SoftDeleteFilterList.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
|
@ -54,6 +54,9 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
b.Property<string>("HomeUrl")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<bool?>("IsDeleted")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<string>("IssuesUrl")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
|
|
|
|||
|
|
@ -4,8 +4,9 @@
|
|||
|
||||
namespace FilterLists.Data.Entities
|
||||
{
|
||||
public class FilterList : BaseEntity
|
||||
public class FilterList : BaseEntity, IDeleteSoftly
|
||||
{
|
||||
public bool? IsDeleted { get; set; }
|
||||
public string ChatUrl { get; set; }
|
||||
public ICollection<Dependent> DependentFilterLists { get; set; }
|
||||
public ICollection<Dependent> DependencyFilterLists { get; set; }
|
||||
|
|
|
|||
7
server/src/FilterLists.Data/Entities/IDeleteSoftly.cs
Normal file
7
server/src/FilterLists.Data/Entities/IDeleteSoftly.cs
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
namespace FilterLists.Data.Entities
|
||||
{
|
||||
public interface IDeleteSoftly
|
||||
{
|
||||
bool? IsDeleted { get; set; }
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue