11 lines
252 B
TypeScript
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>;
|
|
} |