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.
17 lines
448 B
17 lines
448 B
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;
|