"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.GtfsTripScheduleRepository = void 0;
const const_1 = require("../../../schema-definitions/const");
const ropid_gtfs_1 = require("../../../schema-definitions/ropid-gtfs");
const AbstractBasicRepository_1 = require("@golemio/core/dist/helpers/data-access/postgres/repositories/AbstractBasicRepository");
const CoreToken_1 = require("@golemio/core/dist/helpers/ioc/CoreToken");
const Di_1 = require("@golemio/core/dist/output-gateway/ioc/Di");
class GtfsTripScheduleRepository extends AbstractBasicRepository_1.AbstractBasicRepository {
    constructor() {
        const connector = Di_1.OutputGatewayContainer.resolve(CoreToken_1.CoreToken.PostgresConnector);
        const logger = Di_1.OutputGatewayContainer.resolve(CoreToken_1.CoreToken.Logger);
        super(connector, logger);
        this.schema = const_1.PG_SCHEMA;
        this.tableName = ropid_gtfs_1.RopidGTFS.tripSchedule.pgTableName;
        this.sequelizeModel = connector
            .getConnection()
            .define(this.tableName, ropid_gtfs_1.RopidGTFS.tripSchedule.outputSequelizeAttributes, { schema: this.schema });
    }
}
exports.GtfsTripScheduleRepository = GtfsTripScheduleRepository;
//# sourceMappingURL=GtfsTripScheduleRepository.js.map