MyVideos48
Table "movie"
Previous topic Chapter index Next topic

System:

Fields
Field Data type PK FK Not Null Default Collate Check On Conflict
idMovie integer            
idSource integer            
MoviePath text              
Type bool              
HasSub bool     0      
New bool     0      
Mark bool     0      
Imdb text              
Lock bool              
Title text              
OriginalTitle text              
Year text              
Rating text              
Votes text              
MPAA text              
Top250 integer              
Outline text              
Plot text              
Tagline text              
Certification text              
Runtime text              
premiered text              
Playcount integer              
Trailer text              
EThumbsPath text              
NfoPath text              
TrailerPath text              
SubPath text              
FanartURL text              
OutOfTolerance bool              
VideoSource text              
SortTitle text              
DateAdded integer              
EFanartsPath text              
ThemePath text              
TMDB text              
TMDBColID text              
DateModified integer              
MarkCustom1 bool     0      
MarkCustom2 bool     0      
MarkCustom3 bool     0      
MarkCustom4 bool     0      
HasSet bool     0      
iLastPlayed integer              
Language text              
iUserRating integer     0      
userNote text              
edition text              

Indexes
      There are no indexes for table "movie"

Foreign keys
      There are no foreign keys for table "movie"

Checks
      There are no checks for table "movie"

Triggers
Trigger Enabled Events Type When expression
delete_movie DELETE After  

References
      There are no references for table "movie"

Definition:
CREATE TABLE movie (
  idMovie         integer PRIMARY KEY AUTOINCREMENT,
  idSource        integer NOT NULL,
  MoviePath       text,
  Type            bool,
  HasSub          bool NOT NULL DEFAULT 0,
  "New"           bool NOT NULL DEFAULT 0,
  Mark            bool NOT NULL DEFAULT 0,
  Imdb            text,
  Lock            bool,
  Title           text,
  OriginalTitle   text,
  Year            text,
  Rating          text,
  Votes           text,
  MPAA            text,
  Top250          integer,
  Outline         text,
  Plot            text,
  Tagline         text,
  Certification   text,
  Runtime         text,
  premiered       text,
  Playcount       integer,
  Trailer         text,
  EThumbsPath     text,
  NfoPath         text,
  TrailerPath     text,
  SubPath         text,
  FanartURL       text,
  OutOfTolerance  bool,
  VideoSource     text,
  SortTitle       text,
  DateAdded       integer,
  EFanartsPath    text,
  ThemePath       text,
  TMDB            text,
  TMDBColID       text,
  DateModified    integer,
  MarkCustom1     bool NOT NULL DEFAULT 0,
  MarkCustom2     bool NOT NULL DEFAULT 0,
  MarkCustom3     bool NOT NULL DEFAULT 0,
  MarkCustom4     bool NOT NULL DEFAULT 0,
  HasSet          bool NOT NULL DEFAULT 0,
  iLastPlayed     integer,
  Language        text,
  iUserRating     integer NOT NULL DEFAULT 0,
  userNote        text,
  edition         text
);

CREATE TRIGGER delete_movie
  AFTER DELETE
  ON movie
BEGIN
        DELETE FROM actorlinkmovie WHERE idMovie=old.idMovie;
        DELETE FROM art WHERE media_id=old.idMovie AND media_type='movie';
        DELETE FROM countrylinkmovie WHERE idMovie=old.idMovie;
        DELETE FROM directorlinkmovie WHERE idMovie=old.idMovie;
        DELETE FROM genrelinkmovie WHERE idMovie=old.idMovie;
        DELETE FROM movielinktvshow WHERE idMovie=old.idMovie;
        DELETE FROM rating WHERE media_id=old.idMovie AND media_type='movie';
        DELETE FROM setlinkmovie WHERE idMovie=old.idMovie;
        DELETE FROM studiolinkmovie WHERE idMovie=old.idMovie;
        DELETE FROM taglinks WHERE idMedia=old.idMovie AND media_type='movie';
        DELETE FROM uniqueid WHERE media_id=old.idMovie AND media_type='movie';
        DELETE FROM writerlinkmovie WHERE idMovie=old.idMovie;
        DELETE FROM MoviesAStreams WHERE MovieID=old.idMovie;
        DELETE FROM MoviesSubs WHERE MovieID=old.idMovie;
        DELETE FROM MoviesVStreams WHERE MovieID=old.idMovie;
        END;


Previous topic Chapter index Next topic
Generated by ""SQLite Maestro Professional"" at 08.07.2021 23:49:20