@golemio/pid
Version:
Golemio PID Module
20 lines • 1.12 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.RopidGTFSShapesModel = void 0;
const const_1 = require("../../schema-definitions/const");
const ropid_gtfs_1 = require("../../schema-definitions/ropid-gtfs");
const ShapeDto_1 = require("../../schema-definitions/ropid-gtfs/models/ShapeDto");
const integration_engine_1 = require("@golemio/core/dist/integration-engine");
const golemio_validator_1 = require("@golemio/core/dist/shared/golemio-validator");
class RopidGTFSShapesModel extends integration_engine_1.PostgresModel {
constructor() {
super(ropid_gtfs_1.RopidGTFS.shapes.name + "Model", {
outputSequelizeAttributes: ShapeDto_1.ShapeDto.attributeModel,
pgTableName: ropid_gtfs_1.RopidGTFS.shapes.pgTableName,
pgSchema: const_1.PG_SCHEMA,
savingType: "insertOnly",
}, new golemio_validator_1.JSONSchemaValidator(ropid_gtfs_1.RopidGTFS.shapes.name + "ModelValidator", ShapeDto_1.ShapeDto.jsonSchema));
}
}
exports.RopidGTFSShapesModel = RopidGTFSShapesModel;
//# sourceMappingURL=RopidGTFSShapesModel.js.map