Clean up some schemas

This commit is contained in:
Rory&
2026-08-08 06:53:15 +02:00
parent 580d438c3a
commit fc086ddcea
32 changed files with 143 additions and 71 deletions
+2 -2
View File
@@ -18,7 +18,7 @@
import { Column, Entity, JoinColumn, ManyToOne, OneToMany, RelationId } from "typeorm";
import { arrayRemove } from "@spacebar/extensions";
import { Config, GuildWelcomeScreen, Snowflake, handleFile } from "@spacebar/util";
import { Config, Snowflake, handleFile } from "@spacebar/util";
import { Ban } from "./Ban";
import { BaseClass } from "./BaseClass";
import { Channel } from "./Channel";
@@ -31,7 +31,7 @@ import { Template } from "./Template";
import { User } from "./User";
import { VoiceState } from "./VoiceState";
import { Webhook } from "./Webhook";
import { DiscoverableGuild, IntegrationGuild } from "@spacebar/schemas";
import { DiscoverableGuild, GuildWelcomeScreen, IntegrationGuild } from "@spacebar/schemas";
import { Categories } from "@spacebar/database";
// TODO: application_command_count, application_command_counts: {1: 0, 2: 0, 3: 0}
// TODO: guild_scheduled_events
+3 -2
View File
@@ -19,10 +19,11 @@
import crypto from "node:crypto";
import { Column, CreateDateColumn, Entity, Index, JoinColumn, ManyToOne, PrimaryColumn, RelationId } from "typeorm";
import { DateBuilder, TimeSpan, Random } from "@spacebar/extensions";
import { ClientStatus, PrivateStatus } from "@spacebar/schemas";
import { IpDataClient } from "@spacebar/util/util/networking";
import { Activity, GatewaySession, GatewaySessionClientInfo } from "../../util/interfaces";
import { User } from "./User";
import { BaseClassWithoutId } from "./BaseClass";
import { Activity, ClientStatus, GatewaySession, GatewaySessionClientInfo, PrivateStatus } from "../../util/interfaces";
import { IpDataClient } from "@spacebar/util/util/networking";
@Entity({
name: "sessions",
+1 -1
View File
@@ -118,7 +118,7 @@ export class UserSettings extends BaseClassWithoutId {
stream_notifications_enabled: boolean = false;
@Column({ nullable: true })
theme: "dark" | "light" = "dark"; // dark
theme: "dark" | "light" | "darker" | "midnight" = "dark"; // dark
@Column({ nullable: true })
timezone_offset: number = 0; // e.g -60