using MadRunFabric.Common;
using MongoDB.Bson.Serialization.Attributes;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace MadRunFabric.Model.MessageApi
{
    /// <summary>
    /// 3D仿真版本
    /// </summary>
    public class App_Version3D : IBaseModel<string>
    {
        /// <summary>
        /// id
        /// </summary>
        [Key]
        [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
        public string id { get; set; }
        /// <summary>
        /// 应用分类（1android 2ios 3pc）
        /// </summary>
        public int apptype { get; set; } = 0;
        /// <summary>
        /// 项目id
        /// </summary>
        [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
        public string projectid { get; set; }
        /// <summary>
        /// 版本名称
        /// </summary>
        public string versionname { get; set; }
        /// <summary>
        /// 版本号
        /// </summary>
        public string versioncode { get; set; }
        /// <summary>
        /// 下载地址
        /// </summary>
        public List<FileBaseModel> downurl { get; set; }
        /// <summary>
        /// 用户id
        /// </summary>
        public string createby { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime createtime { get; set; } = DateTime.Now;
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime updatetime { get; set; }
        /// <summary>
        /// 删除时间
        /// </summary>
        public DateTime deletetime { get; set; }
        /// <summary>
        /// 是否删除 0正常 -1删除
        /// </summary>
        public int isdelete { get; set; } = 0;
        /// <summary>
        /// 备注
        /// </summary>
        public string note { get; set; }

    }
}
