Beschreibung
Hilfstabelle zur Bildung von Untertiteln zu einem Titel. Zum Beispiel zum Zuordnen von O-Tönen zu einem Beitrag.
Felder
PK | FK | Feld | Domäne | Typ | NN | Standard | Beschreibung |
---|---|---|---|---|---|---|---|
|
UTID |
INTEGER |
|
Primary Key |
|||
|
UTTIID |
INTEGER |
|
Fremdschlüssel zur Titel Tabelle |
|||
|
UTSEID |
INTEGER |
|
Fremdschlüssel zur Sendeelemente Tabelle |
|||
|
UTTIIDUNTER |
INTEGER |
|
Fremdschlüssel zur UnterTitel Tabelle |
|||
|
|
UTPOSITION |
SMALLINT |
|
Position des Untertitels. Wird für das synchronisieren zum TiZusatzText BLOB Feld gebraucht. |
||
|
|
UTLINEINDEX |
SMALLINT |
|
Die effektive Position eines Titel in einer Meldung. |
||
|
|
UTRECORDVERSION |
INTEGER |
1 |
Dieser Wert wird über einen Trigger bei jeder Änderung um eins erhöht. |
||
|
|
UTNUTZUNGSDAUER |
INTEGER |
0 |
Bei der GEMA/SUISA Aufteilung wird die Nutzungsdauer hier gespeichert. |
||
|
|
UTNUTZUNGSART |
SMALLINT |
0 |
Die Nutzungsart des Untertitels. |
Trigger
Trigger | Typ | Aktivität | Reihenfolge | Beschreibung |
---|---|---|---|---|
AFTER DELETE |
|
0 |
Delete-Trigger für die Replikation |
|
AFTER DELETE |
Yes |
0 |
Trigger um den TISTATUS anzupassen. |
|
AFTER INSERT |
|
0 |
Insert-Trigger für die Replikation |
|
AFTER INSERT |
Yes |
0 |
Trigger um den TISTATUS anzupassen. |
|
AFTER UPDATE |
|
0 |
Update-Trigger für die Replikation |
|
AFTER UPDATE |
Yes |
0 |
Trigger um den TISTATUS anzupassen. |
|
BEFORE INSERT |
Yes |
0 |
Trigger um den Primary Key zu setzen. |
|
BEFORE UPDATE |
Yes |
0 |
Trigger für das RecordVersion Feld |
Indizes
Index | Felder | Aktiv | Eindeutig | Reihenfolge |
---|---|---|---|---|
UTTIID |
ASC |
|||
UTSEID |
ASC |
|||
UTTIIDUNTER |
ASC |
|||
UTNUTZUNGSART |
ASC |
|||
UTID |
ASC |
Referenziert
Tabelle | Fremdschlüssel | Felder | FK Feld | Löschregel | Änderungsregel |
---|---|---|---|---|---|
UTTIID |
TIID |
NO ACTION |
NO ACTION |
||
UTSEID |
SEID |
NO ACTION |
NO ACTION |
||
UTTIIDUNTER |
TIID |
NO ACTION |
NO ACTION |
Referenziert von
(Es gibt keine Referenzen zu Tabelle UNTERTITEL)
Definition
CREATE TABLE UNTERTITEL (
UTID LONGINT_DOM NOT NULL,
UTTIID LONGINT_DOM,
UTSEID LONGINT_DOM,
UTTIIDUNTER LONGINT_DOM NOT NULL,
UTPOSITION SHORTINT_DOM,
UTLINEINDEX SHORTINT_DOM,
UTRECORDVERSION LONGINT_DOM DEFAULT 1 NOT NULL,
UTNUTZUNGSDAUER LONGINT_DOM DEFAULT 0 NOT NULL,
UTNUTZUNGSART SHORTINT_DOM DEFAULT 0 NOT NULL
);
ALTER TABLE UNTERTITEL ADD CONSTRAINT PK_UNTERTITEL PRIMARY KEY (UTID);
ALTER TABLE UNTERTITEL ADD CONSTRAINT FK1_UNTERTITEL FOREIGN KEY (UTTIID) REFERENCES TITEL (TIID);
ALTER TABLE UNTERTITEL ADD CONSTRAINT FK2_UNTERTITEL FOREIGN KEY (UTSEID) REFERENCES SENDEELEMENTE (SEID);
ALTER TABLE UNTERTITEL ADD CONSTRAINT FK3_UNTERTITEL FOREIGN KEY (UTTIIDUNTER) REFERENCES TITEL (TIID);
CREATE INDEX IDX_NUTZUNGSART ON UNTERTITEL (UTNUTZUNGSART);
![]() ![]() ![]() |