You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

29 lines
762 B

import { Entity, PrimaryGeneratedColumn, Column, BaseEntity } from "typeorm";
@Entity()
export class MovieInfo extends BaseEntity
{
@PrimaryGeneratedColumn()
id!: number;
@Column({ type: "char", length: 2, nullable: true })
originalLanguage!: string | null;
@Column({ type: "varchar", length: 255, nullable: true })
originalTitle!: string | null;
@Column({ type: "text", nullable: true })
overview!: string | null;
@Column({ type: "int", nullable: true })
runtime!: number | null;
@Column({ type: "char", length: 10, nullable: true })
releaseDate!: string | null;
@Column({ type: "varchar", length: 32, nullable: true })
backdropPath!: string | null;
@Column({ type: "varchar", length: 32, nullable: true })
posterPath!: string | null;
}