MyVideos48
Table "moviesource"
Previous topic Chapter index Next topic

System:

Fields
Field Data type PK FK Not Null Default Collate Check On Conflict
idSource integer            
strName text            
strPath text            
bRecursive bool     0      
bFoldername bool     0      
bSingle bool     0      
strLastScan text     '1900/01/01'      
bExclude bool     0      
bGetYear bool     1      
strLanguage text     'en-US'      

Indexes
Index Fields Primary Unique
UniqueMovieSourcePath strPath  

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

Checks
      There are no checks for table "moviesource"

Triggers
Trigger Enabled Events Type When expression
delete_moviesource DELETE After  

References
      There are no references for table "moviesource"

Definition:
CREATE TABLE moviesource (
  idSource     integer PRIMARY KEY AUTOINCREMENT,
  strName      text NOT NULL,
  strPath      text NOT NULL,
  bRecursive   bool NOT NULL DEFAULT 0,
  bFoldername  bool NOT NULL DEFAULT 0,
  bSingle      bool NOT NULL DEFAULT 0,
  strLastScan  text NOT NULL DEFAULT '1900/01/01',
  bExclude     bool NOT NULL DEFAULT 0,
  bGetYear     bool NOT NULL DEFAULT 1,
  strLanguage  text NOT NULL DEFAULT 'en-US'
);

CREATE UNIQUE INDEX UniqueMovieSourcePath
  ON moviesource
  (strPath);

CREATE TRIGGER delete_moviesource
  AFTER DELETE
  ON moviesource
BEGIN
		DELETE FROM movie WHERE idSource=old.idSource;
END;


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