sys_File.cs 2.95 KB
using System;
using Microsoft.AspNetCore.Http;
using System.ComponentModel.DataAnnotations.Schema;
using SqlSugar;

namespace Hh.Mes.POJO.Entity
{
    //[SugarTable("sys_File")]
    public partial class sys_File:base_entity
    {
        /// <summary>
        /// id
        /// </summary>
        [SugarColumn(ColumnDescription = "id", IsNullable = false, IsIdentity = true, IsPrimaryKey = true)]
        public int id { get; set; }

        /// <summary>
        /// 表名
        /// </summary>
        [SugarColumn(Length = 40, ColumnDescription = "表名", IsNullable = true)]
        public string targetTableName { get; set; }

        /// <summary>
        /// 目标ID
        /// </summary>
        [SugarColumn(ColumnDescription = "目标ID", IsNullable = false)]
        public int targetId { get; set; }

        /// <summary>
        /// 编码
        /// </summary>
        [SugarColumn(Length = 100, ColumnDescription = "编码", IsNullable = true)]
        public string fileCode { get; set; }

        /// <summary>
        /// 主机
        /// </summary>
        [SugarColumn(Length = 40, ColumnDescription = "主机", IsNullable = true)]
        public string host { get; set; }

        /// <summary>
        /// 下载地址
        /// </summary>
        [SugarColumn(Length = 200, ColumnDescription = "下载地址", IsNullable = true)]
        public string url { get; set; }

        /// <summary>
        /// 图片宽度(仅图片文件有这个值)
        /// </summary>
        [SugarColumn(ColumnDescription = "图片宽度(仅图片文件有这个值)", IsNullable = true)]
        public int width { get; set; }

        /// <summary>
        /// 图片高度(仅图片文件有这个值)
        /// </summary>
        [SugarColumn(ColumnDescription = "图片高度(仅图片文件有这个值)", IsNullable = true)]
        public int height { get; set; }

        /// <summary>
        /// 文件大小
        /// </summary>
        [SugarColumn(ColumnDescription = "文件大小", IsNullable = true)]
        public string size { get; set; }

        /// <summary>
        /// 文件位置
        /// </summary>
        [SugarColumn(Length = 40, ColumnDescription = "文件位置", IsNullable = true)]
        public string position { get; set; }

        /// <summary>
        /// 原始文件名
        /// </summary>
        [SugarColumn(Length = 120, ColumnDescription = "原始文件名", IsNullable = true)]
        public string fileName { get; set; }

        /// <summary>
        /// 后缀(文档类型)
        /// </summary>
        [SugarColumn(Length = 40, ColumnDescription = "后缀(文档类型)", IsNullable = true)]
        public string suffix { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(Length = 2000, ColumnDescription = "备注", IsNullable = true)]
        public string remark { get; set; }

        /// <summary>
        /// isDelete1删除,0启用
        /// </summary>
        [SugarColumn(ColumnDescription = "isDelete1删除,0启用", IsNullable = true)]
        public int isDelete { get; set; }
    }
}