Files
TelegramRSS/src/models/Post.ts
Fabian Stamm 9dfb1342e5
Some checks failed
continuous-integration/drone/push Build is failing
New version of this thing
2023-04-26 00:04:56 +02:00

11 lines
252 B
TypeScript

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>;
}