23 lines
294 B
TypeScript
23 lines
294 B
TypeScript
|
@Entity()
|
||
|
export class Board {
|
||
|
|
||
|
@PrimaryGeneratedColumn()
|
||
|
id: number;
|
||
|
|
||
|
@Column()
|
||
|
slug: string;
|
||
|
|
||
|
@Column()
|
||
|
name: string;
|
||
|
|
||
|
@Column()
|
||
|
theme: string;
|
||
|
|
||
|
@Column()
|
||
|
description: string;
|
||
|
|
||
|
@OneToMany(type => Topic, topic => topic.board)
|
||
|
topics: Topic[]
|
||
|
|
||
|
}
|