﻿using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using ICaiBan.Framework.ORM;

namespace ICaiBan.ModelDB
{
    [Serializable, TableInfo("Tab_Merc_Employee")]
    public class Tab_Merc_Employee : Entity<Tab_Merc_Employee>
    {
        decimal _Merc_Emp_Flow_Id;

        /// <summary>
        /// 流水ID
        /// </summary>
        [FieldInfo(SqlDbType=SqlDbType.Decimal, IsPrimeKey=true, Description="流水ID", AllowNull=false, IsIdentity=true)]
        public decimal Merc_Emp_Flow_Id
        {
            get { return _Merc_Emp_Flow_Id; }
            set { _Merc_Emp_Flow_Id=value; }
        }

        decimal _User_Id;

        /// <summary>
        /// 会员ID
        /// </summary>
        [FieldInfo(SqlDbType=SqlDbType.Decimal, Description="会员ID", AllowNull=false, IsIndex=true)]
        public decimal User_Id
        {
            get { return _User_Id; }
            set { _User_Id=value; }
        }

        decimal _Merchant_Id;

        /// <summary>
        /// 商户ID
        /// </summary>
        [FieldInfo(SqlDbType=SqlDbType.Decimal, Description="商户ID", IsIndex=true, AllowNull=false)]
        public decimal Merchant_Id
        {
            get { return _Merchant_Id; }
            set { _Merchant_Id=value; }
        }

        string _Employee_Username;

        /// <summary>
        /// 员工姓名
        /// </summary>
        [FieldInfo(SqlDbType=SqlDbType.NVarChar, Description="员工姓名", MaxLength=32, AllowNull=false)]
        public string Employee_Username
        {
            get { return _Employee_Username; }
            set { _Employee_Username=value; }
        }

        string _Employee_PicLink;

        /// <summary>
        /// 员工头像
        /// </summary>
        [FieldInfo(SqlDbType=SqlDbType.NVarChar, Description="员工头像", MaxLength=256)]
        public string Employee_PicLink
        {
            get { return _Employee_PicLink; }
            set { _Employee_PicLink=value; }
        }

        decimal _Employee_Position;

        /// <summary>
        /// 员工职务(0：服务员；1：收银员；2：楼面管理员)
        /// </summary>
        [FieldInfo(SqlDbType=SqlDbType.Decimal, Description="员工职务(0：服务员；1：收银员；2：楼面管理员)", AllowNull=false)]
        public decimal Employee_Position
        {
            get { return _Employee_Position; }
            set { _Employee_Position=value; }
        }

        decimal _Employee_Gender;

        /// <summary>
        /// 员工性别(0：男；1：女)
        /// </summary>
        [FieldInfo(SqlDbType=SqlDbType.Decimal, Description="员工性别(0：男；1：女)", AllowNull=false)]
        public decimal Employee_Gender
        {
            get { return _Employee_Gender; }
            set { _Employee_Gender=value; }
        }

        string _Employee_Mobile;

        /// <summary>
        /// 员工手机号
        /// </summary>
        [FieldInfo(SqlDbType=SqlDbType.NVarChar, Description="员工手机号", MaxLength=11, IsIndex=true, AllowNull=false)]
        public string Employee_Mobile
        {
            get { return _Employee_Mobile; }
            set { _Employee_Mobile=value; }
        }

        decimal _Employee_Status=0;

        /// <summary>
        /// 启用状态(0：正常；1：停用）
        /// </summary>
        [FieldInfo(SqlDbType=SqlDbType.Decimal, Description="启用状态(0：正常；1：停用）", IsIndex=true, AllowNull=false)]
        public decimal Employee_Status
        {
            get { return _Employee_Status; }
            set { _Employee_Status=value; }
        }

        decimal _Is_Delete=0;

        /// <summary>
        /// 是否删除(0：未删除；1：已删除)
        /// </summary>
        [FieldInfo(SqlDbType=SqlDbType.Decimal, Description="是否删除(0：未删除；1：已删除)", IsIndex=true, AllowNull=false)]
        public decimal Is_Delete
        {
            get { return _Is_Delete; }
            set { _Is_Delete=value; }
        }

        DateTime _Create_Time=DateTime.Now;

        /// <summary>
        /// 创建时间
        /// </summary>
        [FieldInfo(SqlDbType=SqlDbType.DateTime, Description="创建时间", IsIndex=true, AllowNull=false)]
        public DateTime Create_Time
        {
            get { return _Create_Time; }
            set { _Create_Time=value; }
        }

        DateTime _Modify_Time=DateTime.Now;

        /// <summary>
        /// 修改时间
        /// </summary>
        [FieldInfo(SqlDbType=SqlDbType.DateTime, Description="修改时间", IsIndex=true, AllowNull=false)]
        public DateTime Modify_Time
        {
            get { return _Modify_Time; }
            set { _Modify_Time=value; }
        }
    }
}