﻿/*===================================================================== 
* Copyright © 2014 www.icaiban.com All Rights Reserved.
* CLR版本： 4.0.30319.18444 
* 类名称：  Tab_Wechat_User_Bind 
* 创建人：  李晓乐
* 创建时间：2014/11/19 9:24:41 
* 修改人：
* 修改时间：
* 修改备注：
* 版本：@version 1.0
===================================================================== */

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

namespace ICaiBan.ModelDB
{
    /// <summary>
    /// 微信用户绑定关系
    /// </summary>
    [Serializable]
    [TableInfo("Tab_Wechat_User_Bind")]
    public class Tab_Wechat_User_Bind : Entity<Tab_Wechat_User_Bind>
    {
        private decimal _Wechat_User_Bind_Id;
        /// <summary>
        /// 微信用户绑定ID
        /// </summary>
        [FieldInfo(SqlDbType = SqlDbType.Decimal, IsPrimeKey = true, Description = "微信用户绑定ID", AllowNull = false, IsIdentity = true)]
        public decimal Wechat_User_Bind_Id
        {
            get { return _Wechat_User_Bind_Id; }
            set { _Wechat_User_Bind_Id = value; }
        }
        private string _OpenId;
        /// <summary>
        /// 绑定微信公众号的OpenId
        /// </summary>
        [FieldInfo(SqlDbType = SqlDbType.VarChar, Description = "绑定微信公众号的OpenId", MaxLength = 32, AllowNull = false)]
        public string OpenId
        {
            get { return _OpenId; }
            set { _OpenId = value; }
        }
        private decimal _Service_Id;
        /// <summary>
        /// 服务号ID
        /// </summary>
        [FieldInfo(SqlDbType = SqlDbType.Decimal, Description = "服务号ID", AllowNull = false)]
        public decimal Service_Id
        {
            get { return _Service_Id; }
            set { _Service_Id = value; }
        }
        private decimal _Data_Source;
        /// <summary>
        /// 数据来源（0：关注后绑定；1：未关注时绑定）
        /// </summary>
        [FieldInfo(SqlDbType = SqlDbType.Decimal, Description = "数据来源（0：关注后绑定；1：未关注时绑定）", AllowNull = false)]
        public decimal Data_Source
        {
            get { return _Data_Source; }
            set { _Data_Source = value; }
        }
        private string _phone;
        /// <summary>
        /// 手机号
        /// </summary>
        [FieldInfo(SqlDbType = SqlDbType.VarChar, Description = "手机号", MaxLength = 24, AllowNull = false)]
        public string phone
        {
            get { return _phone; }
            set { _phone = value; }
        }
        private decimal _User_Id;
        /// <summary>
        /// 会员ID
        /// </summary>
        [FieldInfo(SqlDbType = SqlDbType.Decimal, Description = "会员ID", AllowNull = false)]
        public decimal User_Id
        {
            get { return _User_Id; }
            set { _User_Id = value; }
        }
        private decimal _Bind_Status;
        /// <summary>
        /// 状态（0：已绑定；1：已解绑）
        /// </summary>
        [FieldInfo(SqlDbType = SqlDbType.Decimal, Description = "状态（0：已绑定；1：已解绑）", AllowNull = false)]
        public decimal Bind_Status
        {
            get { return _Bind_Status; }
            set { _Bind_Status = value; }
        }
        private DateTime _Create_Time = DateTime.Now;
        /// <summary>
        /// 创建时间
        /// </summary>
        [FieldInfo(SqlDbType = SqlDbType.DateTime, Description = "创建时间", AllowNull = false)]
        public DateTime Create_Time
        {
            get { return _Create_Time; }
            set { _Create_Time = value; }
        }
        private decimal _Create_User_Id;
        /// <summary>
        /// 创建人
        /// </summary>
        [FieldInfo(SqlDbType = SqlDbType.Decimal, Description = "创建人", AllowNull = false)]
        public decimal Create_User_Id
        {
            get { return _Create_User_Id; }
            set { _Create_User_Id = value; }
        }
        private Nullable<DateTime> _Modify_Time = DateTime.Now;
        /// <summary>
        /// 修改时间
        /// </summary>
        [FieldInfo(SqlDbType = SqlDbType.DateTime, Description = "修改时间")]
        public Nullable<DateTime> Modify_Time
        {
            get { return _Modify_Time; }
            set { _Modify_Time = value; }
        }
        private Nullable<decimal> _Modify_User_Id;
        /// <summary>
        /// 修改人
        /// </summary>
        [FieldInfo(SqlDbType = SqlDbType.Decimal, Description = "修改人")]
        public Nullable<decimal> Modify_User_Id
        {
            get { return _Modify_User_Id; }
            set { _Modify_User_Id = value; }
        }
    }
}
