Difference between revisions of "Programrating table"

From MythTV Official Wiki
Jump to: navigation, search
(TYPE,FK)
 
Line 5: Line 5:
 
{| border="1" cellspacing="0" cellpadding="5" style="border-collapse:collapse; border-color:#8eabd0; background:#e7edf5"
 
{| border="1" cellspacing="0" cellpadding="5" style="border-collapse:collapse; border-color:#8eabd0; background:#e7edf5"
 
|- style="background: lightsteelblue"
 
|- style="background: lightsteelblue"
!  Field name !! Type                 !! Null !! Key !! Default            !! Extras
+
!  Field name !! Type             !! Null !! Key !! Default            !! Extras
 
|-
 
|-
|| chanid      || int(10) unsigned ||      || PRI || 0                  ||
+
|| chanid      || int(10) unsigned ||      || MUL || 0                  || REFERENCES [[program table|program]](chanid,starttime)
 
|-
 
|-
|| starttime  || datetime        ||      || PRI || 0000-00-00 00:00:00 ||
+
|| starttime  || datetime        ||      || MUL || 0000-00-00 00:00:00
 
|-
 
|-
|| system      || char(8)         ||     || PRI ||                     ||
+
|| system      || varchar(8)       || NULL ||     || NULL                ||
 
|-
 
|-
|| rating      || char(8)         ||     || PRI ||                     ||
+
|| rating      || varchar(16)     || NULL ||     || NULL                ||
 
|-
 
|-
 
|}
 
|}

Latest revision as of 22:09, 22 February 2014

Important.png Note: The correct title of this article is programrating table. It appears incorrectly here due to technical restrictions.

The programrating table contains rating classifications and the classifying body for rated shows (usually movies) listed in the program table. Eg. in the UK, the rating body is the British Board of Film Classification (BBFC) and the ratings that may be used are U, PG, 12, 12A, 15, 18 and R18.

Table Description

Field name Type Null Key Default Extras
chanid int(10) unsigned MUL 0 REFERENCES program(chanid,starttime)
starttime datetime MUL 0000-00-00 00:00:00
system varchar(8) NULL NULL
rating varchar(16) NULL NULL

Fields

  • chanid along with starttime relate to unique entries in the program table.
  • system is the rating system.
    • MPAA, VCHIP, BBFC, etc.
  • rating is the rating of the program.
    • G, NR, PG, PG-13, R, TV-14, TV-G, TV-MA, TV-PG, TV-Y, TV-Y7, U, 12, 12A, 15, 18, etc.