cps_expert.js 2.4 KB
/* jshint indent: 2 */
module.exports = function (sequelize, DataTypes) {
    return sequelize.define('cps_expert', {
        id: {
            type: DataTypes.INTEGER(11),
            allowNull: false,
            primaryKey: true,
            autoIncrement: true
        },
        user_id: {
            type: DataTypes.BIGINT,
            allowNull: true,
            unique: true
        },
        user_platform: {
            type: DataTypes.STRING(20),
            allowNull: true
        },
        promoter_id: {
            type: DataTypes.INTEGER(11),
            allowNull: true
        },
        user_name: {
            type: DataTypes.STRING(50),
            allowNull: true
        },
        mobile: {
            type: DataTypes.STRING(50),
            allowNull: true
        },
        created_at: {
            type: DataTypes.DATE,
            allowNull: true
        },
        updated_at: {
            type: DataTypes.DATE,
            allowNull: true
        },
        operate_time: {
            type: DataTypes.DATE,
            allowNull: true
        },
        operate_user_id: {
            type: DataTypes.BIGINT,
            allowNull: true
        },
        status: {
            type: DataTypes.INTEGER(11),
            allowNull: true
        },
        real_name: {
            type: DataTypes.STRING(50),
            allowNull: true
        },
        id_card: {
            type: DataTypes.STRING(50),
            allowNull: true
        },
        id_card_url_1: {
            type: DataTypes.STRING(300),
            allowNull: true
        },
        id_card_url_2: {
            type: DataTypes.STRING(300),
            allowNull: true
        },
        memo: {
            type: DataTypes.STRING(500),
            allowNull: true
        },
        user_type: {
            type: DataTypes.STRING(10),
            allowNull: true
        },
        money_rate: {
            type: DataTypes.DECIMAL,
            allowNull: true
        },
        operate_result: {
            type: DataTypes.STRING(300),
            allowNull: true
        },
        user_info_url: {
            type: DataTypes.STRING(2000),
            allowNull: true
        },
        cps_code: {
            type: DataTypes.STRING(20),
            allowNull: true
        },
        gender: {
            type: DataTypes.STRING(10),
            allowNull: true
        },
    }, {
        tableName: 'cps_expert'
    });
};
//# sourceMappingURL=cps_expert.js.map