using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;
using Yitter.IdGenerator;
namespace WGShare.Domain.Entities
{
///
/// 会议室文件分享
///
[SugarTable("share_file")]
public class ShareFile
{
///
///
///
[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 = "file_url")]
public string FileUrl { get; set; }
///
/// 上传者id
///
[SugarColumn(ColumnName = "user_id")]
public string UserId { get; set; }
///
/// 文件大小 kb
///
[SugarColumn(ColumnName = "size")]
public double Size { get; set; }
///
/// 文件名称
///
[SugarColumn(ColumnName = "file_name")]
public string FileName { get; set; }
///
/// 会议房间Id
///
[SugarColumn(ColumnName = "room_id")]
public string RoomId { get; set; }
///
/// 下载次数
///
[SugarColumn(ColumnName = "download_count")]
public int DownloadCount { get; set; }
}
}