添加银行政府后端接口
This commit is contained in:
@@ -19,7 +19,8 @@ SupervisionTask.init({
|
||||
type: DataTypes.STRING(50),
|
||||
allowNull: false,
|
||||
unique: true,
|
||||
comment: '申请单号'
|
||||
comment: '申请单号',
|
||||
field: 'applicationNumber'
|
||||
},
|
||||
contractNumber: {
|
||||
type: DataTypes.STRING(50),
|
||||
@@ -145,7 +146,7 @@ SupervisionTask.init({
|
||||
modelName: 'SupervisionTask',
|
||||
tableName: 'supervision_tasks',
|
||||
timestamps: true,
|
||||
underscored: true,
|
||||
underscored: false,
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt',
|
||||
comment: '监管任务表'
|
||||
@@ -155,11 +156,13 @@ SupervisionTask.init({
|
||||
SupervisionTask.associate = (models) => {
|
||||
SupervisionTask.belongsTo(models.User, {
|
||||
foreignKey: 'createdBy',
|
||||
as: 'creator'
|
||||
as: 'creator',
|
||||
targetKey: 'id'
|
||||
});
|
||||
SupervisionTask.belongsTo(models.User, {
|
||||
foreignKey: 'updatedBy',
|
||||
as: 'updater'
|
||||
as: 'updater',
|
||||
targetKey: 'id'
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user