mirror of
https://github.com/spacebarchat/server.git
synced 2026-08-28 11:44:07 +00:00
Clean up nonspecific imports in entities
This commit is contained in:
@@ -21,3 +21,4 @@ export * from "./developers";
|
||||
export * from "./guilds";
|
||||
export * from "./messages";
|
||||
export * from "./users";
|
||||
export * from "./reports";
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
Spacebar: A FOSS re-implementation and extension of the Discord.com backend.
|
||||
Copyright (C) 2026 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
export * from "./CreateReport";
|
||||
export * from "./ReportMenu";
|
||||
@@ -18,12 +18,13 @@
|
||||
|
||||
import { HTTPError } from "lambert-server";
|
||||
import { BeforeInsert, BeforeUpdate, Column, Entity, Index, JoinColumn, JoinTable, ManyToMany, ManyToOne, Not, PrimaryGeneratedColumn, RelationId } from "typeorm";
|
||||
import { Ban, Channel, PublicGuildRelations } from ".";
|
||||
import { ReadyGuildDTO } from "../dtos";
|
||||
import { GuildCreateEvent, GuildDeleteEvent, GuildMemberAddEvent, GuildMemberRemoveEvent, GuildMemberUpdateEvent, MessageCreateEvent } from "../interfaces";
|
||||
import { Config, emitEvent, DiscordApiErrors } from "../util";
|
||||
import { Ban } from "./Ban";
|
||||
import { BaseClassWithoutId } from "./BaseClass";
|
||||
import { Guild } from "./Guild";
|
||||
import { Channel } from "./Channel";
|
||||
import { Guild, PublicGuildRelations } from "./Guild";
|
||||
import { Message } from "./Message";
|
||||
import { Role } from "./Role";
|
||||
import { User } from "./User";
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
import { BaseClass } from "./BaseClass";
|
||||
import { Entity, Column } from "typeorm";
|
||||
import { ReportMenuType } from "../../schemas/api/reports/ReportMenu";
|
||||
import { ReportMenuType } from "@spacebar/schemas";
|
||||
|
||||
@Entity({
|
||||
name: "report_menus",
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
*/
|
||||
|
||||
import { Column, Entity, JoinColumn, ManyToOne, OneToMany, RelationId } from "typeorm";
|
||||
import { Sticker } from ".";
|
||||
import { Sticker } from "./Sticker";
|
||||
import { BaseClass } from "./BaseClass";
|
||||
|
||||
@Entity({
|
||||
|
||||
@@ -18,9 +18,10 @@
|
||||
|
||||
import { Request } from "express";
|
||||
import { Column, Entity, JoinColumn, OneToMany, OneToOne } from "typeorm";
|
||||
import { Channel, Config, Email, FieldErrors, Snowflake, trimSpecial } from "..";
|
||||
import { Config, Email, FieldErrors, Snowflake, trimSpecial } from "..";
|
||||
import { Random } from "../util";
|
||||
import { BaseClass } from "./BaseClass";
|
||||
import { Channel } from "./Channel";
|
||||
import { ConnectedAccount } from "./ConnectedAccount";
|
||||
import { Member } from "./Member";
|
||||
import { Relationship } from "./Relationship";
|
||||
|
||||
Reference in New Issue
Block a user