Commit c65ee2c6 by DESKTOP-7Q3CA17\86137

gsb

parent 3977b6c4
/* jshint indent: 2 */ module.exports = function (sequelize, DataTypes) {
module.exports = function(sequelize, DataTypes) {
return sequelize.define('load', { return sequelize.define('load', {
id: { company_id: DataTypes.INTEGER,
type: DataTypes.INTEGER(11), company_name: DataTypes.STRING,
allowNull: false, usc_code: DataTypes.STRING,
primaryKey: true, name: DataTypes.STRING,
autoIncrement: true phone_no: DataTypes.STRING,
}, id_no: DataTypes.INTEGER,
company_name: { bankno: DataTypes.STRING,
type: DataTypes.STRING(255), workload: DataTypes.STRING,
allowNull: true compre_salary: DataTypes.DECIMAL,
}, begin_time: DataTypes.DATE,
usc_code: { end_time: DataTypes.DATE,
type: DataTypes.STRING(255), affirm_time: DataTypes.DATE,
allowNull: true sign_body_id: DataTypes.INTEGER,
}, sign_body: DataTypes.STRING,
name: { redundance_1: DataTypes.STRING,
type: DataTypes.STRING(255), redundance_2: DataTypes.STRING,
allowNull: true redundance_3: DataTypes.STRING,
}, redundance_4: DataTypes.STRING,
phone_no: {
type: DataTypes.STRING,
allowNull: true
},
id_no: {
type: DataTypes.STRING,
allowNull: true
},
bankno: {
type: DataTypes.STRING,
allowNull: true
},
workload: {
type: DataTypes.STRING(255),
allowNull: true
},
compre_salary: {
type: DataTypes.DECIMAL,
allowNull: true
},
affirm_time: {
type: DataTypes.DECIMAL,
allowNull: true
},
created_at: {
type: DataTypes.DATE,
allowNull: true
},
updated_at: {
type: DataTypes.DATE,
allowNull: true
},
deleted_at: {
type: DataTypes.DATE,
allowNull: true
},
version: {
type: DataTypes.INTEGER(11),
allowNull: true,
defaultValue: '0'
},
redundance_1: {
type: DataTypes.STRING(255),
allowNull: true
},
redundance_2: {
type: DataTypes.STRING(255),
allowNull: true
},
redundance_3: {
type: DataTypes.STRING(255),
allowNull: true
},
redundance_4: {
type: DataTypes.STRING(255),
allowNull: true
}
}, { }, {
tableName: 'load_info' tableName: 'load_info',
paranoid: true,//假的删除
underscored: true,
version: false,
freezeTableName: true,
//freezeTableName: true,
// define the table's name
validate: {},
indexes: [
// Create a unique index on email
// {
// unique: true,
// fields: ['email']
// },
//
// // Creates a gin index on data with the jsonb_path_ops operator
// {
// fields: ['data'],
// using: 'gin',
// operator: 'jsonb_path_ops'
// },
//
// // By default index name will be [table]_[fields]
// // Creates a multi column partial index
// {
// name: 'public_by_author',
// fields: ['author', 'status'],
// where: {
// status: 'public'
// }
// },
//
// // A BTREE index with a ordered field
// {
// name: 'title_index',
// method: 'BTREE',
// fields: ['author', {attribute: 'title', collate: 'en_US', order: 'DESC', length: 5}]
// }
]
}); });
}; };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment