wenlele
10 months ago
7 changed files with 1044 additions and 930 deletions
File diff suppressed because it is too large
@ -0,0 +1,42 @@ |
|||
/* eslint-disable*/ |
|||
'use strict'; |
|||
|
|||
module.exports = dc => { |
|||
const DataTypes = dc.ORM; |
|||
const sequelize = dc.orm; |
|||
const Town = sequelize.define("town", { |
|||
id: { |
|||
type: DataTypes.INTEGER, |
|||
allowNull: false, |
|||
defaultValue: null, |
|||
comment: null, |
|||
primaryKey: true, |
|||
field: "id", |
|||
autoIncrement: true |
|||
}, |
|||
name: { |
|||
type: DataTypes.STRING, |
|||
allowNull: true, |
|||
defaultValue: null, |
|||
comment: null, |
|||
primaryKey: false, |
|||
field: "name", |
|||
autoIncrement: false |
|||
}, |
|||
code: { |
|||
type: DataTypes.STRING, |
|||
allowNull: true, |
|||
defaultValue: null, |
|||
comment: null, |
|||
primaryKey: false, |
|||
field: "code", |
|||
autoIncrement: false |
|||
}, |
|||
}, { |
|||
tableName: "town", |
|||
comment: "", |
|||
indexes: [] |
|||
}); |
|||
dc.models.Town = Town; |
|||
return Town; |
|||
}; |
Binary file not shown.
Binary file not shown.
@ -0,0 +1,5 @@ |
|||
alter table road_spot_check_preview |
|||
add gather jsonb; |
|||
|
|||
comment on column road_spot_check_preview.gather is '抽查汇总'; |
|||
|
Loading…
Reference in new issue