import Column from "@entity-access/entity-access/dist/decorators/Column.js"; import { RelateTo } from "@entity-access/entity-access/dist/decorators/Relate.js"; import Table from "@entity-access/entity-access/dist/decorators/Table.js"; import WebSite from "./WebSite.js"; @Table("StoreConfigs") export class StoreConfig { @Column({ dataType: "BigInt", key: true }) @RelateTo(WebSite, { property: (x) => x.store, inverseProperty: (x) => x.configs }) storeID: number; @Column({ dataType: "Char", length: 50, key: true }) groupName: string; @Column({ dataType: "Char", length: 200, key: true }) configName: string; @Column({ dataType: "Boolean", default: () => false }) encrypted: boolean; @Column({ dataType: "Char" }) configValue: string; store: WebSite; }