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

module.exports = dc => {
    const DataTypes = dc.ORM;
    const sequelize = dc.orm;
    const Overspeed = sequelize.define("overspeed", {
        id: {
            index: 1,
            type: DataTypes.INTEGER,
            allowNull: false,
            defaultValue: null,
            comment: null,
            primaryKey: true,
            field: "id",
            autoIncrement: true,
            unique: "overspeed_id_uindex"
        },
        districtcounty: {
            index: 2,
            type: DataTypes.STRING,
            allowNull: true,
            defaultValue: null,
            comment: "区/县",
            primaryKey: false,
            field: "districtcounty",
            autoIncrement: false
        },
        nameOfInspectionPoint: {
            index: 3,
            type: DataTypes.STRING,
            allowNull: true,
            defaultValue: null,
            comment: "检测点名称",
            primaryKey: false,
            field: "name_of_inspection_point",
            autoIncrement: false
        },
        licensePlate: {
            index: 4,
            type: DataTypes.STRING,
            allowNull: true,
            defaultValue: null,
            comment: "车牌号码",
            primaryKey: false,
            field: "license_plate",
            autoIncrement: false
        },
        numberOfAxles: {
            index: 5,
            type: DataTypes.STRING,
            allowNull: true,
            defaultValue: null,
            comment: "车轴数",
            primaryKey: false,
            field: "number_of_axles",
            autoIncrement: false
        },
        overrunRate: {
            index: 6,
            type: DataTypes.STRING,
            allowNull: true,
            defaultValue: null,
            comment: "超限率",
            primaryKey: false,
            field: "overrun_rate",
            autoIncrement: false
        },
        overrunWeight: {
            index: 7,
            type: DataTypes.STRING,
            allowNull: true,
            defaultValue: null,
            comment: "超限重量",
            primaryKey: false,
            field: "overrun_weight",
            autoIncrement: false
        },
        grossVehicleWeight: {
            index: 8,
            type: DataTypes.STRING,
            allowNull: true,
            defaultValue: null,
            comment: "车货总重",
            primaryKey: false,
            field: "gross_vehicle_weight",
            autoIncrement: false
        },
        vehicleCargoWeightLimit: {
            index: 9,
            type: DataTypes.STRING,
            allowNull: true,
            defaultValue: null,
            comment: "车货限重",
            primaryKey: false,
            field: "vehicle_cargo_weight_limit",
            autoIncrement: false
        },
        testTime: {
            index: 10,
            type: DataTypes.DATE,
            allowNull: true,
            defaultValue: null,
            comment: "检测时间",
            primaryKey: false,
            field: "test_time",
            autoIncrement: false
        },
        nameOfBusinessOwner: {
            index: 11,
            type: DataTypes.STRING,
            allowNull: true,
            defaultValue: null,
            comment: "经营业户名称",
            primaryKey: false,
            field: "name_of_business_owner",
            autoIncrement: false
        },
        businessAddress: {
            index: 12,
            type: DataTypes.STRING,
            allowNull: true,
            defaultValue: null,
            comment: "经营业户地址",
            primaryKey: false,
            field: "business_address",
            autoIncrement: false
        },
        notifier: {
            index: 13,
            type: DataTypes.STRING,
            allowNull: true,
            defaultValue: null,
            comment: "通知人",
            primaryKey: false,
            field: "notifier",
            autoIncrement: false
        },
        notificationMethod: {
            index: 14,
            type: DataTypes.STRING,
            allowNull: true,
            defaultValue: null,
            comment: "通知方式",
            primaryKey: false,
            field: "notification_method",
            autoIncrement: false
        },
        notificationResults: {
            index: 15,
            type: DataTypes.STRING,
            allowNull: true,
            defaultValue: null,
            comment: "通知结果",
            primaryKey: false,
            field: "notification_results",
            autoIncrement: false
        },
        processingTime: {
            index: 16,
            type: DataTypes.STRING,
            allowNull: true,
            defaultValue: null,
            comment: "处理时间",
            primaryKey: false,
            field: "processing_time",
            autoIncrement: false
        },
        deductPoints: {
            index: 17,
            type: DataTypes.STRING,
            allowNull: true,
            defaultValue: null,
            comment: "扣分",
            primaryKey: false,
            field: "deduct_points",
            autoIncrement: false
        },
        fine: {
            index: 18,
            type: DataTypes.STRING,
            allowNull: true,
            defaultValue: null,
            comment: "罚款",
            primaryKey: false,
            field: "fine",
            autoIncrement: false
        },
        remarks: {
            index: 19,
            type: DataTypes.STRING,
            allowNull: true,
            defaultValue: null,
            comment: "备注",
            primaryKey: false,
            field: "remarks",
            autoIncrement: false
        }
    }, {
        tableName: "overspeed",
        comment: "",
        indexes: []
    });
    dc.models.Overspeed = Overspeed;
    return Overspeed;
};