const system = require("../../../system");
const settings = require("../../../../config/settings");
const uiconfig = system.getUiConfig2(settings.appKey);
const moment = require('moment')
//快递表
module.exports = (db, DataTypes) => {

  return db.define("express", { 
    code:{type: DataTypes.STRING,field: 'code', allowNull: false, comment:'快递编号' },    
    name: {type: DataTypes.STRING,field: 'name', allowNull: true, comment:'快递名称' },
    createdAt: { type: DataTypes.DATE, field: 'created_at', allowNull: false, defaultValue: DataTypes.NOW,comment:'创建时间'},
    updatedAt: { type: DataTypes.DATE, field: 'updated_at', allowNull: false, defaultValue: DataTypes.NOW ,comment:'更新时间'},
    deletedAt: { type: DataTypes.DATE, field: 'deleted_at', allowNull: true, comment:'删除时间'},
  },{   
    timestamps: true,
    underscore: false,
    freezeTableName: true,
    paranoid: true,
    // schema: '',
    tableName: 'express',
    comment: '快递表',
    charset: 'utf8',
    collate: 'utf8_general_ci',
    version: true
  });
}
