..
Viewing
Anime.ts
36 lines (26 loc) • 749.0 B
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37 | import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn } from "typeorm";
@Entity()
export class Anime {
@PrimaryGeneratedColumn()
id: number;
@Column()
title: string;
@Column()
originalTitle: string;
@Column({ type: 'text', nullable: true })
description: string;
@Column({ type: 'int', nullable: true })
episodeCount: number;
@Column({ type: 'simple-array', nullable: true })
genres: string[];
@Column({ type: 'float', nullable: true })
rating: number;
@Column({ nullable: true })
releaseYear: number;
@Column({ nullable: true })
studio: string;
@CreateDateColumn()
createdAt: Date;
@UpdateDateColumn()
updatedAt: Date;
}
|
|