New version of this thing
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Fabian Stamm
2023-04-26 00:04:56 +02:00
parent 422ebd0703
commit 9dfb1342e5
16 changed files with 2462 additions and 265 deletions

11
src/models/Post.ts Normal file
View 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>;
}