using System; using System.Collections.Generic; using System.Linq; using SqlSugar; using WGShare.Domain.Enums; using Yitter.IdGenerator; namespace WGShare.Domain.Entities { /// /// 会议室房间表 /// [SugarTable("room")] public class Room { /// /// /// [SugarColumn(ColumnName = "id", IsPrimaryKey = true)] public string Id { get; set; } = YitIdHelper.NextId().ToString(); /// /// 是否删除 /// 默认值: b'0' /// [SugarColumn(ColumnName = "is_delete")] public bool IsDelete { get; set; } /// /// 创建时间 /// 默认值: CURRENT_TIMESTAMP /// [SugarColumn(ColumnName = "create_time", IsOnlyIgnoreInsert = true, IsOnlyIgnoreUpdate = true)] public DateTime CreateTime { get; set; } /// /// 修改时间 /// [SugarColumn(ColumnName = "modify_time", IsOnlyIgnoreInsert = true, IsOnlyIgnoreUpdate = true)] public DateTime ModifyTime { get; set; } /// /// 会议室名称 /// [SugarColumn(ColumnName = "room_name")] public string RoomName { get; set; } /// /// 租户id /// [SugarColumn(ColumnName = "tenant_id")] public string TenantId { get; set; } /// /// 会议号 /// [SugarColumn(ColumnName = "room_num")] public string RoomNum { get; set; } /// /// 届 /// [SugarColumn(ColumnName = "year")] public int Year { get; set; } /// /// 科目 /// [SugarColumn(ColumnName = "subject")] public SubjectType Subject { get; set; } /// /// 是否允许匿名 /// [SugarColumn(ColumnName = "allow_anonymous")] public bool AllowAnonymous { get; set; } = true; } }