/* eslint-disable*/
'use strict';

module.exports = dc => {
    const DataTypes = dc.ORM;
    const sequelize = dc.orm;
    const Statistic = sequelize.define("statistic", {
        id: {
            index: 1,
            type: DataTypes.INTEGER,
            allowNull: false,
            defaultValue: null,
            comment: null,
            primaryKey: true,
            field: "id",
            autoIncrement: true,
            unique: "vehicle_id_uindex"
        },
        name: {
            index: 2,
            type: DataTypes.STRING,
            allowNull: false,
            defaultValue: null,
            comment: null,
            primaryKey: false,
            field: "name",
            autoIncrement: false
        },
        count: {
            index: 3,
            type: DataTypes.INTEGER,
            allowNull: false,
            defaultValue: "0",
            comment: null,
            primaryKey: false,
            field: "count",
            autoIncrement: false
        },
        type: {
            index: 4,
            type: DataTypes.STRING,
            allowNull: false,
            defaultValue: null,
            comment: null,
            primaryKey: false,
            field: "type",
            autoIncrement: false
        }
    }, {
        tableName: "statistic",
        comment: "",
        indexes: []
    });
    dc.models.Statistic = Statistic;
    return Statistic;
};