"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CommonRunsMessagesModel = void 0;
const sequelize_1 = require("@golemio/core/dist/shared/sequelize");
class CommonRunsMessagesModel extends sequelize_1.Model {
}
exports.CommonRunsMessagesModel = CommonRunsMessagesModel;
CommonRunsMessagesModel.TABLE_NAME = "vehiclepositions_runs_messages";
CommonRunsMessagesModel.attributeModel = {
    id: {
        primaryKey: true,
        type: sequelize_1.DataTypes.BIGINT,
        autoIncrement: true,
    },
    runs_id: sequelize_1.DataTypes.STRING,
    lat: sequelize_1.DataTypes.DECIMAL,
    lng: sequelize_1.DataTypes.DECIMAL,
    actual_stop_asw_id: sequelize_1.DataTypes.STRING,
    actual_stop_timestamp_real: sequelize_1.DataTypes.DATE,
    actual_stop_timestamp_scheduled: sequelize_1.DataTypes.DATE,
    last_stop_asw_id: sequelize_1.DataTypes.STRING,
    packet_number: sequelize_1.DataTypes.STRING,
    msg_timestamp: sequelize_1.DataTypes.DATE,
    events: sequelize_1.DataTypes.STRING,
};
CommonRunsMessagesModel.arrayJsonSchema = {
    type: "array",
    items: {
        type: "object",
        properties: {
            id: {
                type: "integer",
                nullable: true,
            },
            runs_id: {
                type: "string",
                nullable: true,
            },
            lat: {
                type: "number",
            },
            lng: {
                type: "number",
            },
            actual_stop_asw_id: {
                type: "string",
                nullable: true,
            },
            actual_stop_timestamp_real: {
                type: "object",
                required: ["toUTCString"],
            },
            actual_stop_timestamp_scheduled: {
                type: "object",
                required: ["toUTCString"],
                nullable: true,
            },
            last_stop_asw_id: {
                type: "string",
                nullable: true,
            },
            packet_number: {
                type: "string",
            },
            msg_timestamp: {
                type: "object",
                required: ["toUTCString"],
            },
            events: {
                type: "string",
            },
        },
        required: ["lat", "lng", "actual_stop_timestamp_real", "packet_number", "msg_timestamp", "events"],
    },
};
//# sourceMappingURL=CommonRunsMessagesModel.js.map