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