add media model
This commit is contained in:
1 parent
76c4e47a38
commit
7e493d8866
6 files changed
+54
-4
No files matched your search
@@ -1,6 +1,7 @@
|
||||
import { EntryId } from './entryId.model';
|
||||
import { EntryRating } from './entryRating.model';
|
||||
import { EntrySeen } from './entrySeen.model';
|
||||
import { Media } from './media.model';
|
||||
import { Season } from './season.model';
|
||||
|
||||
export interface Entry {
|
||||
@@ -10,7 +11,7 @@ export interface Entry {
|
||||
entryRating: EntryRating;
|
||||
entrySeen: EntrySeen[];
|
||||
seasons: Season[];
|
||||
|
||||
|
||||
title: string;
|
||||
original_title: string;
|
||||
release_date: Date;
|
||||
@@ -35,10 +36,12 @@ export interface Entry {
|
||||
date_first_seen: Date;
|
||||
date_last_seen: Date;
|
||||
|
||||
genres: string[];
|
||||
medias: Media[];
|
||||
|
||||
// temp fields
|
||||
poster_path: string;
|
||||
banner_path: string;
|
||||
genres: string[];
|
||||
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
export interface Media {
|
||||
id: number;
|
||||
|
||||
entry_id: number;
|
||||
|
||||
type: string;
|
||||
path: string;
|
||||
|
||||
is_local: boolean;
|
||||
is_selected: boolean;
|
||||
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}
|
||||
Reference in new issue
Block a user