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