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

52 lines
1.1 KiB

3 years ago
/* eslint-disable*/
'use strict';
module.exports = dc => {
const DataTypes = dc.ORM;
const sequelize = dc.orm;
3 years ago
const Statistic = sequelize.define("statistic", {
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
},
type: {
type: DataTypes.STRING,
allowNull: false,
defaultValue: null,
comment: null,
primaryKey: false,
field: "type",
autoIncrement: false
3 years ago
}
}, {
3 years ago
tableName: "statistic",
3 years ago
comment: "",
indexes: []
});
3 years ago
dc.models.Statistic = Statistic;
return Statistic;
3 years ago
};