"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.RopidDeparturesPresetsRoutesModel = void 0;
const sequelize_1 = require("@golemio/core/dist/shared/sequelize");
class RopidDeparturesPresetsRoutesModel extends sequelize_1.Model {
}
exports.RopidDeparturesPresetsRoutesModel = RopidDeparturesPresetsRoutesModel;
RopidDeparturesPresetsRoutesModel.tableName = "ropid_departures_presets_routes";
RopidDeparturesPresetsRoutesModel.attributeModel = {
    preset_id: {
        type: sequelize_1.DataTypes.INTEGER,
        primaryKey: true,
        allowNull: false,
    },
    stop_id: {
        type: sequelize_1.DataTypes.STRING(50),
        primaryKey: true,
        allowNull: false,
    },
    route_id: {
        type: sequelize_1.DataTypes.STRING(50),
        primaryKey: true,
        allowNull: false,
    },
    route_type: {
        type: sequelize_1.DataTypes.SMALLINT,
        allowNull: false,
    },
    route_short_name: {
        type: sequelize_1.DataTypes.STRING(50),
        allowNull: false,
    },
    created_at: {
        type: sequelize_1.DataTypes.DATE,
        allowNull: false,
    },
    updated_at: {
        type: sequelize_1.DataTypes.DATE,
        allowNull: false,
    },
};
RopidDeparturesPresetsRoutesModel.jsonSchema = {
    type: "array",
    items: {
        type: "object",
        properties: {
            preset_id: { type: "number" },
            stop_id: { type: "string" },
            route_id: { type: "string" },
            route_type: { type: "number" },
            route_short_name: { type: "string" },
        },
        additionalProperties: false,
        required: ["preset_id", "stop_id", "route_id", "route_type", "route_short_name"],
    },
};
//# sourceMappingURL=RopidDeparturesPresetsRoutesModel.js.map