This commit is contained in:
11
src/models/Post.ts
Normal file
11
src/models/Post.ts
Normal file
@ -0,0 +1,11 @@
|
||||
import { PrimaryColumn, Entity, ManyToOne, Relation } from "typeorm";
|
||||
import { Feed } from "./Feed.js";
|
||||
|
||||
@Entity()
|
||||
export class Post {
|
||||
@PrimaryColumn()
|
||||
hash: string;
|
||||
|
||||
@ManyToOne(() => Feed, (feed) => feed.oldEntries)
|
||||
feed: Relation<Feed>;
|
||||
}
|
Reference in New Issue
Block a user