四好公路
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.

43 lines
897 B

3 years ago
/* eslint-disable*/
'use strict';
module.exports = dc => {
const DataTypes = dc.ORM;
const sequelize = dc.orm;
3 years ago
const Vehicle = sequelize.define("vehicle", {
3 years ago
id: {
type: DataTypes.INTEGER,
allowNull: false,
defaultValue: null,
comment: null,
primaryKey: true,
field: "id",
autoIncrement: true,
3 years ago
unique: "vehicle_id_uindex"
3 years ago
},
name: {
type: DataTypes.STRING,
allowNull: false,
defaultValue: null,
comment: null,
primaryKey: false,
field: "name",
autoIncrement: false
},
3 years ago
count: {
3 years ago
type: DataTypes.INTEGER,
allowNull: false,
3 years ago
defaultValue: "0",
3 years ago
comment: null,
primaryKey: false,
3 years ago
field: "count",
autoIncrement: false
3 years ago
}
}, {
3 years ago
tableName: "vehicle",
3 years ago
comment: "",
indexes: []
});
3 years ago
dc.models.Vehicle = Vehicle;
return Vehicle;
3 years ago
};