diff --git a/Falcon.SugarApi/DatabaseDefinitions/SugarBasicTable.cs b/Falcon.SugarApi/DatabaseDefinitions/SugarBasicTable.cs
index 35af117..e182950 100644
--- a/Falcon.SugarApi/DatabaseDefinitions/SugarBasicTable.cs
+++ b/Falcon.SugarApi/DatabaseDefinitions/SugarBasicTable.cs
@@ -16,14 +16,8 @@ namespace Falcon.SugarApi.DatabaseDefinitions
///
/// 创建时间
///
- [SugarColumn(IsOnlyIgnoreUpdate = true, IsNullable = true, ColumnDescription = "创建时间")]
- public DateTime? CreateTime { get; set; } = DateTime.Now;
-
- ///
- /// 记录状态。有效 无效
- ///
- [SugarColumn(IsNullable = false, ColumnDescription = "记录状态。有效 无效")]
- public string Status { get; set; } = "有效";
+ [SugarColumn(IsOnlyIgnoreUpdate = true, IsNullable = false, ColumnDescription = "创建时间")]
+ public DateTime CreateTime { get; set; } = DateTime.Now;
///
/// 将数据设置为新数据。
@@ -33,16 +27,6 @@ namespace Falcon.SugarApi.DatabaseDefinitions
public virtual SugarBasicTable SetNew() {
this.Id = Guid.NewGuid();
this.CreateTime = DateTime.Now;
- this.Status = "有效";
- return this;
- }
- ///
- /// 设置本条记录有效状态
- ///
- /// 有效还是无效,默认有效
- /// 本条数据
- public virtual SugarBasicTable SetEnable(bool enable = true) {
- this.Status = enable ? "有效" : "无效";
return this;
}
}