mirror of
https://github.com/spacebarchat/server.git
synced 2026-08-17 08:30:24 +00:00
Clean up some schemas
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user