mirror of
https://github.com/sct/overseerr.git
synced 2025-09-17 17:24:35 +02:00
17 lines
448 B
TypeScript
17 lines
448 B
TypeScript
import { MediaRequest } from './MediaRequest';
|
|
import { ChildEntity, OneToMany } from 'typeorm';
|
|
import SeasonRequest from './SeasonRequest';
|
|
import { MediaType } from '../constants/media';
|
|
|
|
@ChildEntity(MediaType.TV)
|
|
class TvRequest extends MediaRequest {
|
|
@OneToMany(() => SeasonRequest, (season) => season.request)
|
|
public seasons: SeasonRequest[];
|
|
|
|
constructor(init?: Partial<TvRequest>) {
|
|
super(init);
|
|
}
|
|
}
|
|
|
|
export default TvRequest;
|