From c77d00e243f7cf104b8b0f8b26f339849dbd040f Mon Sep 17 00:00:00 2001 From: Rory& Date: Thu, 11 Jun 2026 22:16:07 +0200 Subject: Move entities to database --- src/database/entities/ConnectionConfigEntity.ts | 31 +++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/database/entities/ConnectionConfigEntity.ts (limited to 'src/database/entities/ConnectionConfigEntity.ts') diff --git a/src/database/entities/ConnectionConfigEntity.ts b/src/database/entities/ConnectionConfigEntity.ts new file mode 100644 index 00000000..9ad2af8b --- /dev/null +++ b/src/database/entities/ConnectionConfigEntity.ts @@ -0,0 +1,31 @@ +/* + Spacebar: A FOSS re-implementation and extension of the Discord.com backend. + Copyright (C) 2023 Spacebar and Spacebar Contributors + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published + by the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ + +import { Column, Entity, PrimaryColumn } from "typeorm"; +import { BaseClassWithoutId } from "./BaseClass"; + +@Entity({ + name: "connection_config", +}) +export class ConnectionConfigEntity extends BaseClassWithoutId { + @PrimaryColumn() + key: string; + + @Column({ type: "simple-json", nullable: true }) + value: number | boolean | null | string | Date | undefined; +} -- cgit 1.5.1