feat(data): support soft-deleting FilterLists

This commit is contained in:
Collin M. Barrett 2020-07-05 13:28:29 -05:00
parent c3aac77b41
commit 599a9aa0d2
5 changed files with 87699 additions and 1 deletions

File diff suppressed because it is too large Load diff

View file

@ -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");

View file

@ -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; }

View file

@ -0,0 +1,7 @@
namespace FilterLists.Data.Entities
{
public interface IDeleteSoftly
{
bool? IsDeleted { get; set; }
}
}