import { Entity, PrimaryGeneratedColumn, Column, BaseEntity, ManyToOne } from "typeorm";
import { MovieTicket } from "./MovieTicket";

@Entity()
export class MovieTorrent extends BaseEntity
{
	@PrimaryGeneratedColumn()
	id!: number;

	@Column()
	infoHash!: string;

	@Column()
	diskName!: string;

	@ManyToOne(() => MovieTicket, ticket => ticket.torrents)
	movieTicket!: MovieTicket;
}
