"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.RopidVYMIEventsStopsModel = void 0;
const const_1 = require("../../../schema-definitions/const");
const ropid_vymi_1 = require("../../../schema-definitions/ropid-vymi");
const models_1 = require("@golemio/core/dist/integration-engine/models");
const golemio_validator_1 = require("@golemio/core/dist/shared/golemio-validator");
/**
 * Custom Postgres model for Ropid VYMI Events Stops
 */
class RopidVYMIEventsStopsModel extends models_1.PostgresModel {
    constructor(addAuditAttributes = false) {
        super(ropid_vymi_1.RopidVYMI.eventsStops.name + "Model", {
            hasTmpTable: true,
            outputSequelizeAttributes: ropid_vymi_1.RopidVYMI.eventsStops.outputSequelizeAttributes,
            pgTableName: ropid_vymi_1.RopidVYMI.eventsStops.pgTableName,
            pgSchema: const_1.PG_SCHEMA,
            savingType: "insertOnly",
            addAuditAttributes: addAuditAttributes,
        }, new golemio_validator_1.JSONSchemaValidator(ropid_vymi_1.RopidVYMI.eventsStops.name + "ModelValidator", ropid_vymi_1.RopidVYMI.eventsStops.outputJsonSchema));
    }
}
exports.RopidVYMIEventsStopsModel = RopidVYMIEventsStopsModel;
//# sourceMappingURL=RopidVYMIEventsStopsModel.js.map