summaryrefslogtreecommitdiff
path: root/packages/backend/src/models/entities/ChannelNotePining.ts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2023-03-31 15:01:56 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2023-03-31 15:01:56 +0900
commit9bc5d52e413dcf35e85613e0c5a5b319ba95017a (patch)
treebadac56bd198b281c9e3a4cc662d1533b8076389 /packages/backend/src/models/entities/ChannelNotePining.ts
parentrefactor (diff)
downloadsharkey-9bc5d52e413dcf35e85613e0c5a5b319ba95017a.tar.gz
sharkey-9bc5d52e413dcf35e85613e0c5a5b319ba95017a.tar.bz2
sharkey-9bc5d52e413dcf35e85613e0c5a5b319ba95017a.zip
feat: チャンネルにノートをピン留めできるように
Resolve #7740
Diffstat (limited to 'packages/backend/src/models/entities/ChannelNotePining.ts')
-rw-r--r--packages/backend/src/models/entities/ChannelNotePining.ts35
1 files changed, 0 insertions, 35 deletions
diff --git a/packages/backend/src/models/entities/ChannelNotePining.ts b/packages/backend/src/models/entities/ChannelNotePining.ts
deleted file mode 100644
index ab5796626a..0000000000
--- a/packages/backend/src/models/entities/ChannelNotePining.ts
+++ /dev/null
@@ -1,35 +0,0 @@
-import { PrimaryColumn, Entity, Index, JoinColumn, Column, ManyToOne } from 'typeorm';
-import { id } from '../id.js';
-import { Note } from './Note.js';
-import { Channel } from './Channel.js';
-
-@Entity()
-@Index(['channelId', 'noteId'], { unique: true })
-export class ChannelNotePining {
- @PrimaryColumn(id())
- public id: string;
-
- @Column('timestamp with time zone', {
- comment: 'The created date of the ChannelNotePining.',
- })
- public createdAt: Date;
-
- @Index()
- @Column(id())
- public channelId: Channel['id'];
-
- @ManyToOne(type => Channel, {
- onDelete: 'CASCADE',
- })
- @JoinColumn()
- public channel: Channel | null;
-
- @Column(id())
- public noteId: Note['id'];
-
- @ManyToOne(type => Note, {
- onDelete: 'CASCADE',
- })
- @JoinColumn()
- public note: Note | null;
-}