mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-29 05:17:39 -07:00
fix
This commit is contained in:
parent
390c0c2839
commit
fb56e5110c
4 changed files with 0 additions and 54 deletions
|
@ -58,7 +58,6 @@ import { AnnouncementRead } from "@/models/entities/announcement-read.js";
|
||||||
import { Clip } from "@/models/entities/clip.js";
|
import { Clip } from "@/models/entities/clip.js";
|
||||||
import { ClipNote } from "@/models/entities/clip-note.js";
|
import { ClipNote } from "@/models/entities/clip-note.js";
|
||||||
import { Antenna } from "@/models/entities/antenna.js";
|
import { Antenna } from "@/models/entities/antenna.js";
|
||||||
import { AntennaNote } from "@/models/entities/antenna-note.js";
|
|
||||||
import { PromoNote } from "@/models/entities/promo-note.js";
|
import { PromoNote } from "@/models/entities/promo-note.js";
|
||||||
import { PromoRead } from "@/models/entities/promo-read.js";
|
import { PromoRead } from "@/models/entities/promo-read.js";
|
||||||
import { Relay } from "@/models/entities/relay.js";
|
import { Relay } from "@/models/entities/relay.js";
|
||||||
|
@ -168,7 +167,6 @@ export const entities = [
|
||||||
Clip,
|
Clip,
|
||||||
ClipNote,
|
ClipNote,
|
||||||
Antenna,
|
Antenna,
|
||||||
AntennaNote,
|
|
||||||
PromoNote,
|
PromoNote,
|
||||||
PromoRead,
|
PromoRead,
|
||||||
Relay,
|
Relay,
|
||||||
|
|
|
@ -1,50 +0,0 @@
|
||||||
import {
|
|
||||||
Entity,
|
|
||||||
Index,
|
|
||||||
JoinColumn,
|
|
||||||
Column,
|
|
||||||
ManyToOne,
|
|
||||||
PrimaryColumn,
|
|
||||||
} from "typeorm";
|
|
||||||
import { Note } from "./note.js";
|
|
||||||
import { Antenna } from "./antenna.js";
|
|
||||||
import { id } from "../id.js";
|
|
||||||
|
|
||||||
@Entity()
|
|
||||||
@Index(["noteId", "antennaId"], { unique: true })
|
|
||||||
export class AntennaNote {
|
|
||||||
@PrimaryColumn(id())
|
|
||||||
public id: string;
|
|
||||||
|
|
||||||
@Index()
|
|
||||||
@Column({
|
|
||||||
...id(),
|
|
||||||
comment: "The note ID.",
|
|
||||||
})
|
|
||||||
public noteId: Note["id"];
|
|
||||||
|
|
||||||
@ManyToOne((type) => Note, {
|
|
||||||
onDelete: "CASCADE",
|
|
||||||
})
|
|
||||||
@JoinColumn()
|
|
||||||
public note: Note | null;
|
|
||||||
|
|
||||||
@Index()
|
|
||||||
@Column({
|
|
||||||
...id(),
|
|
||||||
comment: "The antenna ID.",
|
|
||||||
})
|
|
||||||
public antennaId: Antenna["id"];
|
|
||||||
|
|
||||||
@ManyToOne((type) => Antenna, {
|
|
||||||
onDelete: "CASCADE",
|
|
||||||
})
|
|
||||||
@JoinColumn()
|
|
||||||
public antenna: Antenna | null;
|
|
||||||
|
|
||||||
@Index()
|
|
||||||
@Column("boolean", {
|
|
||||||
default: false,
|
|
||||||
})
|
|
||||||
public read: boolean;
|
|
||||||
}
|
|
|
@ -51,7 +51,6 @@ import { UsedUsername } from "./entities/used-username.js";
|
||||||
import { ClipRepository } from "./repositories/clip.js";
|
import { ClipRepository } from "./repositories/clip.js";
|
||||||
import { ClipNote } from "./entities/clip-note.js";
|
import { ClipNote } from "./entities/clip-note.js";
|
||||||
import { AntennaRepository } from "./repositories/antenna.js";
|
import { AntennaRepository } from "./repositories/antenna.js";
|
||||||
import { AntennaNote } from "./entities/antenna-note.js";
|
|
||||||
import { PromoNote } from "./entities/promo-note.js";
|
import { PromoNote } from "./entities/promo-note.js";
|
||||||
import { PromoRead } from "./entities/promo-read.js";
|
import { PromoRead } from "./entities/promo-read.js";
|
||||||
import { EmojiRepository } from "./repositories/emoji.js";
|
import { EmojiRepository } from "./repositories/emoji.js";
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import define from "../../define.js";
|
import define from "../../define.js";
|
||||||
import { Antennas } from "@/models/index.js";
|
import { Antennas } from "@/models/index.js";
|
||||||
import { FindOptionsWhere } from "typeorm";
|
import { FindOptionsWhere } from "typeorm";
|
||||||
import { AntennaNote } from "@/models/entities/antenna-note.js";
|
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
tags: ["antennas", "account"],
|
tags: ["antennas", "account"],
|
||||||
|
|
Loading…
Reference in a new issue