using MadRunFabric.Common;
using MongoDB.Bson.Serialization.Attributes;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
namespace MadRunFabric.Model
{
///
/// 部门(阜外华中)
///
[BsonIgnoreExtraElements]
public class Sys_DepartmentBase : IBaseModel
{
///
/// 自增id
///
[Key]
[BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
public string id { get; set; }
///
/// 父级id
///
[BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
public string parentid { get; set; }
///
/// 部门名称 ------------------------------------------------------------
///
public string departmenname { get; set; }
///
/// 编号
///
public string code { get; set; }
///
/// 手机号
///
public string mobile { get; set; }
///
/// 部门固定电话
///
public string telephone { get; set; }
///
/// 部门邮箱
///
public string email { get; set; }
///
/// 备注
///
public string remark { get; set; }
///
/// 排序
///
public int sortnum { get; set; }
///
/// 添加人工号 ------------------------------------------------------------
///
public string createtby { get; set; }
///
/// 添加人名字
///
public string createbyname { get; set; }
///
/// 添加时间
///
public DateTime createtime { get; set; } = DateTime.Now;
///
/// 修改人工号 ------------------------------------------------------------最后操作
///
public string updateby { get; set; }
///
/// 修改时间
///
public DateTime updatetime { get; set; }
///
/// 是否删除(0正常-1删除) ------------------------------------------------------------
///
public int isdelete { get; set; } = 0;
///
/// 删除人
///
public string deleteby { get; set; }
///
/// 删除时间
///
public DateTime deletetime { get; set; }
}
}