using Volo.Abp;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;
using Volo.Abp.Domain.Entities;
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations.Schema;
namespace Business.MongoModel
{
///
/// mongodb基类
///
public abstract class MoBaseEntity
{
///
/// mysql表主键
///
[Comment("mysql表主键")]
public virtual long? mysql_id { get; set; }
///
/// 创建人
///
[Comment("创建人id")]
public virtual long? create_by { get; set; }
///
/// 创建人名称
///
[StringLength(50)]
[Comment("创建人名称")]
public virtual string? create_by_name { get; set; }
///
/// 创建时间
///
[Comment("创建时间")]
public virtual DateTime? create_time { get; set; }
///
/// 修改人
///
[Comment("修改人")]
public virtual long? update_by { get; set; }
///
/// 修改人名称
///
[StringLength(50)]
[Comment("修改人名称")]
public virtual string? update_by_name { get; set; }
///
/// 修改时间
///
[Comment("修改时间")]
public virtual DateTime? update_time { get; set; }
///
/// 企业ID
///
[Required]
[Comment("企业ID")]
public virtual long tenant_id { get; set; }
///
/// 工厂ID
///
[Comment("工厂ID")]
public virtual long? factory_id { get; set; }
///
/// 组织ID
///
[Comment("组织ID")]
public virtual long? org_id { get; set; }
}
}