"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.RopidGTFSCisStopGroups = void 0;
const sequelize_1 = require("@golemio/core/dist/shared/sequelize");
const datasourceJsonSchema = {
    type: "array",
    items: {
        $ref: "#/$defs/Item",
    },
    $defs: {
        Item: {
            type: "object",
            properties: {
                avgJtskX: { type: "number" },
                avgJtskY: { type: "number" },
                avgLat: { type: "number" },
                avgLon: { type: "number" },
                cis: { type: "number" },
                districtCode: { type: "string" },
                fullName: { type: "string" },
                idosCategory: { type: "string" },
                idosName: { type: "string" },
                municipality: { type: "string" },
                name: { type: "string" },
                node: { type: "number" },
                uniqueName: { type: "string" },
            },
            required: ["cis"],
        },
    },
};
const outputJsonSchema = {
    type: "array",
    items: {
        $ref: "#/$defs/Item",
        $defs: {
            Item: {
                type: "object",
                properties: {
                    avg_jtsk_x: { type: "number" },
                    avg_jtsk_y: { type: "number" },
                    avg_lat: { type: "number" },
                    avg_lon: { type: "number" },
                    cis: { type: "number" },
                    district_code: { type: "string" },
                    full_name: { type: "string" },
                    idos_category: { type: "string" },
                    idos_name: { type: "string" },
                    municipality: { type: "string" },
                    name: { type: "string" },
                    node: { type: "number" },
                    unique_name: { type: "string" },
                },
                required: ["cis"],
            },
        },
    },
};
const outputSequelizeAttributes = {
    avg_jtsk_x: sequelize_1.DataTypes.DOUBLE,
    avg_jtsk_y: sequelize_1.DataTypes.DOUBLE,
    avg_lat: sequelize_1.DataTypes.DOUBLE,
    avg_lon: sequelize_1.DataTypes.DOUBLE,
    cis: {
        primaryKey: true,
        type: sequelize_1.DataTypes.INTEGER,
    },
    district_code: sequelize_1.DataTypes.STRING,
    full_name: sequelize_1.DataTypes.STRING,
    idos_category: sequelize_1.DataTypes.STRING,
    idos_name: sequelize_1.DataTypes.STRING,
    municipality: sequelize_1.DataTypes.STRING,
    name: sequelize_1.DataTypes.STRING,
    node: sequelize_1.DataTypes.INTEGER,
    unique_name: sequelize_1.DataTypes.STRING,
};
exports.RopidGTFSCisStopGroups = {
    name: "RopidGTFSCisStopGroups",
    datasourceJsonSchema,
    outputJsonSchema,
    outputSequelizeAttributes,
    pgTableName: "ropidgtfs_cis_stop_groups",
};
//# sourceMappingURL=RopidGTFSCisStopGroups.js.map