"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.PluginMethodTable = void 0;
const sql_tools_1 = require("@immich/sql-tools");
const plugin_table_1 = require("./plugin.table");
let PluginMethodTable = class PluginMethodTable {
    id;
    pluginId;
    name;
    title;
    description;
    types;
    hostFunctions;
    allowedHosts;
    schema;
    uiHints;
};
exports.PluginMethodTable = PluginMethodTable;
__decorate([
    (0, sql_tools_1.PrimaryGeneratedColumn)('uuid'),
    __metadata("design:type", Object)
], PluginMethodTable.prototype, "id", void 0);
__decorate([
    (0, sql_tools_1.ForeignKeyColumn)(() => plugin_table_1.PluginTable, { onDelete: 'CASCADE', onUpdate: 'CASCADE' }),
    __metadata("design:type", String)
], PluginMethodTable.prototype, "pluginId", void 0);
__decorate([
    (0, sql_tools_1.Column)(),
    __metadata("design:type", String)
], PluginMethodTable.prototype, "name", void 0);
__decorate([
    (0, sql_tools_1.Column)(),
    __metadata("design:type", String)
], PluginMethodTable.prototype, "title", void 0);
__decorate([
    (0, sql_tools_1.Column)(),
    __metadata("design:type", String)
], PluginMethodTable.prototype, "description", void 0);
__decorate([
    (0, sql_tools_1.Column)({ type: 'character varying', array: true }),
    __metadata("design:type", Object)
], PluginMethodTable.prototype, "types", void 0);
__decorate([
    (0, sql_tools_1.Column)({ type: 'boolean', default: false }),
    __metadata("design:type", Object)
], PluginMethodTable.prototype, "hostFunctions", void 0);
__decorate([
    (0, sql_tools_1.Column)({ type: 'character varying', default: [], array: true }),
    __metadata("design:type", Object)
], PluginMethodTable.prototype, "allowedHosts", void 0);
__decorate([
    (0, sql_tools_1.Column)({ type: 'jsonb', nullable: true }),
    __metadata("design:type", Object)
], PluginMethodTable.prototype, "schema", void 0);
__decorate([
    (0, sql_tools_1.Column)({ type: 'character varying', default: [], array: true }),
    __metadata("design:type", Object)
], PluginMethodTable.prototype, "uiHints", void 0);
exports.PluginMethodTable = PluginMethodTable = __decorate([
    (0, sql_tools_1.Unique)({ columns: ['pluginId', 'name'] }),
    (0, sql_tools_1.Table)('plugin_method')
], PluginMethodTable);
//# sourceMappingURL=plugin-method.table.js.map