You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
83 lines
2.1 KiB
83 lines
2.1 KiB
'use strict'
|
|
|
|
module.exports = dc => {
|
|
const DataTypes = dc.ORM
|
|
|
|
const WorkOrderNotice = dc.orm.define(
|
|
'workOrderNotice',
|
|
{
|
|
id: {
|
|
field: 'id',
|
|
type: dc.ORM.INTEGER,
|
|
primaryKey: true,
|
|
unique: true,
|
|
allowNull: false,
|
|
autoIncrement: true,
|
|
unique: 'work_order_notice_pk',
|
|
},
|
|
planTime: {
|
|
field: 'plan_time',
|
|
type: DataTypes.DATE,
|
|
allowNull: true,
|
|
comment: '',
|
|
primaryKey: false,
|
|
autoIncrement: false,
|
|
},
|
|
createTime: {
|
|
field: 'create_time',
|
|
type: DataTypes.DATE,
|
|
allowNull: true,
|
|
comment: '',
|
|
primaryKey: false,
|
|
autoIncrement: false,
|
|
},
|
|
processingPersonnelId: {
|
|
field: 'processing_personnel_id',
|
|
type: DataTypes.INTEGER,
|
|
allowNull: true,
|
|
comment: '',
|
|
primaryKey: false,
|
|
autoIncrement: false,
|
|
},
|
|
processingPersonnelPhone: {
|
|
field: 'processing_personnel_phone',
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
comment: '',
|
|
primaryKey: false,
|
|
autoIncrement: false,
|
|
},
|
|
isSend: {
|
|
field: 'is_send',
|
|
type: DataTypes.BOOLEAN,
|
|
allowNull: true,
|
|
comment: '',
|
|
primaryKey: false,
|
|
autoIncrement: false,
|
|
},
|
|
procinstId: {
|
|
field: 'procinst_id',
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
comment: '',
|
|
primaryKey: false,
|
|
autoIncrement: false,
|
|
},
|
|
haveDone: {
|
|
field: 'have_done',
|
|
type: DataTypes.BOOLEAN,
|
|
allowNull: true,
|
|
comment: '',
|
|
primaryKey: false,
|
|
autoIncrement: false,
|
|
},
|
|
},
|
|
{
|
|
tableName: 'work_order_notice',
|
|
}
|
|
)
|
|
|
|
dc.models.WorkOrderNotice = WorkOrderNotice
|
|
|
|
return WorkOrderNotice
|
|
}
|
|
|