"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "AppDataSource", {
    enumerable: true,
    get: function() {
        return AppDataSource;
    }
});
require("reflect-metadata");
const _typeorm = require("typeorm");
const _fsutils = require("./utils/fs.utils");
const _floorentity = require("./entities/floor.entity");
const _floorpositionentity = require("./entities/floor-position.entity");
const _printerentity = require("./entities/printer.entity");
const _settingsentity = require("./entities/settings.entity");
const _entities = require("./entities");
const _camerastreamentity = require("./entities/camera-stream.entity");
const _roleentity = require("./entities/role.entity");
const _userroleentity = require("./entities/user-role.entity");
const _1706829146617InitSqlite = require("./migrations/1706829146617-InitSqlite");
const _printertagentity = require("./entities/printer-tag.entity");
const _tagentity = require("./entities/tag.entity");
const _1707494762198PrinterGroup = require("./migrations/1707494762198-PrinterGroup");
const _1708465930665ChangePrintCompletionDeletePrinterCascade = require("./migrations/1708465930665-ChangePrintCompletionDeletePrinterCascade");
const _1713300747465ChangeRoleNameUnique = require("./migrations/1713300747465-ChangeRoleNameUnique");
const _1720338804844RemovePrinterFile = require("./migrations/1720338804844-RemovePrinterFile");
const _1713897879622AddPrinterType = require("./migrations/1713897879622-AddPrinterType");
const _1745141688926AddPrinterUsernamePassword = require("./migrations/1745141688926-AddPrinterUsernamePassword");
const _1766576698569DropPermissions = require("./migrations/1766576698569-DropPermissions");
const _1767278216516ChangeCameraPrinterOnDeleteSetNull = require("./migrations/1767278216516-ChangeCameraPrinterOnDeleteSetNull");
const _1767279607392DropCustomGcode = require("./migrations/1767279607392-DropCustomGcode");
const _1767291804417DropPrintCompletions = require("./migrations/1767291804417-DropPrintCompletions");
const _1767352862576DropSettingsFileClean = require("./migrations/1767352862576-DropSettingsFileClean");
const _1767370191762ChangeFloorNonUniqueOrder = require("./migrations/1767370191762-ChangeFloorNonUniqueOrder");
const _1767432108916RenameGroupToTag = require("./migrations/1767432108916-RenameGroupToTag");
const _1767451444137AddPrintJob = require("./migrations/1767451444137-AddPrintJob");
const _1767909428129AddPrinterMaintenanceLog = require("./migrations/1767909428129-AddPrinterMaintenanceLog");
const databaseFilePath = (0, _fsutils.getDatabaseFilePath)();
const AppDataSource = new _typeorm.DataSource({
    type: "better-sqlite3",
    database: databaseFilePath,
    synchronize: false,
    logging: false,
    entities: [
        _floorentity.Floor,
        _floorpositionentity.FloorPosition,
        _printerentity.Printer,
        _settingsentity.Settings,
        _entities.User,
        _camerastreamentity.CameraStream,
        _roleentity.Role,
        _entities.RefreshToken,
        _userroleentity.UserRole,
        _tagentity.Tag,
        _printertagentity.PrinterTag,
        _entities.PrintJob,
        _entities.PrinterMaintenanceLog
    ],
    migrations: [
        _1706829146617InitSqlite.InitSqlite1706829146617,
        _1707494762198PrinterGroup.PrinterGroup1707494762198,
        _1708465930665ChangePrintCompletionDeletePrinterCascade.ChangePrintCompletionDeletePrinterCascade1708465930665,
        _1713300747465ChangeRoleNameUnique.ChangeRoleNameUnique1713300747465,
        _1720338804844RemovePrinterFile.RemovePrinterFile1720338804844,
        _1713897879622AddPrinterType.AddPrinterType1713897879622,
        _1745141688926AddPrinterUsernamePassword.AddPrinterUsernamePassword1745141688926,
        _1766576698569DropPermissions.DropPermissions1766576698569,
        _1767278216516ChangeCameraPrinterOnDeleteSetNull.ChangeCameraPrinterOnDeleteSetNull1767278216516,
        _1767279607392DropCustomGcode.DropCustomGcode1767279607392,
        _1767291804417DropPrintCompletions.DropPrintCompletions1767291804417,
        _1767352862576DropSettingsFileClean.DropSettingsFileClean1767352862576,
        _1767370191762ChangeFloorNonUniqueOrder.ChangeFloorNonUniqueOrder1767370191762,
        _1767432108916RenameGroupToTag.RenameGroupToTag1767432108916,
        _1767451444137AddPrintJob.AddPrintJob1767451444137,
        _1767909428129AddPrinterMaintenanceLog.AddPrinterMaintenanceLog1767909428129
    ],
    subscribers: []
});

//# sourceMappingURL=data-source.js.map