-
Notifications
You must be signed in to change notification settings - Fork 0
/
tvlistings_mssql.sql
86 lines (79 loc) · 2.48 KB
/
tvlistings_mssql.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
use tvlistings;
CREATE TABLE [dbo].[schedule] (
[scheduleid] uniqueidentifier PRIMARY KEY ROWGUIDCOL DEFAULT (newid()) NOT NULL ,
[programid] uniqueidentifier NOT NULL,
[replayid] [int] NOT NULL ,
[firstrun] [bit] NOT NULL ,
[guaranteed] [bit] NOT NULL ,
[theme] [bit] NOT NULL ,
[recurring] [bit] NOT NULL ,
[manual] [bit] NOT NULL ,
[conflict] [bit] NOT NULL ,
[created] [int] NOT NULL ,
[padbefore] [int] NOT NULL ,
[padafter] [int] NOT NULL
) ON [PRIMARY]
GO
CREATE TABLE [dbo].[castcrew] (
[castcrewid] uniqueidentifier PRIMARY KEY ROWGUIDCOL DEFAULT (newid()) NOT NULL ,
[tmsprogramid] [nvarchar] (12) NOT NULL ,
[role] [int] NOT NULL ,
[surname] [nvarchar] (64) NULL ,
[givenname] [nvarchar] (64) NULL
) ON [PRIMARY]
GO
CREATE TABLE [dbo].[channels] (
[channelid] uniqueidentifier PRIMARY KEY ROWGUIDCOL DEFAULT (newid()) NOT NULL ,
[tmsid] [int] NULL ,
[tuning] [int] NOT NULL ,
[displaynumber] [int] NULL ,
[channel] [nvarchar] (16) NULL ,
[display] [nvarchar] (64) NULL ,
[iconsrc] [nvarchar] (255) NULL ,
[affiliate] [nvarchar] (32) NULL ,
[headend] [nvarchar] (16) NULL ,
[hidden] [bit] NULL ,
[postalcode] [nvarchar] (16) NULL ,
[systemtype] [nvarchar] (16) NULL ,
[lineupname] [nvarchar] (32) NULL ,
[lineupdevice] [nvarchar] (32) NULL
) ON [PRIMARY]
GO
CREATE TABLE [dbo].[replayunits] (
[replayid] [int] IDENTITY (1, 1) PRIMARY KEY NOT NULL ,
[replayname] [nvarchar] (16) NULL ,
[replayaddress] [nvarchar] (65) NULL ,
[replayport] [int] NULL ,
[defaultquality] [int] NULL ,
[defaultkeep] [int] NULL ,
[lastsnapshot] [int] NULL ,
[guideversion] [int] NULL ,
[replayosversion] [int] NULL ,
[categories] [nvarchar] (255) NULL
) ON [PRIMARY]
GO
CREATE TABLE [dbo].[tvlistings] (
[programid] uniqueidentifier PRIMARY KEY ROWGUIDCOL DEFAULT (newid()) NOT NULL ,
[tmsprogramid] [nvarchar] (12) NULL ,
[tmsid] [int] NULL ,
[starttime] [datetime] NULL ,
[endtime] [datetime] NULL ,
[tuning] [int] NULL ,
[channel] [nvarchar] (16) NULL ,
[title] [nvarchar] (255) NULL ,
[subtitle] [nvarchar] (255) NULL ,
[description] [ntext] NULL ,
[category] [nvarchar] (255) NULL ,
[captions] [nvarchar] (32) NULL ,
[advisories] [nvarchar] (255) NULL ,
[episodenum] [nvarchar] (16) NULL ,
[vchiprating] [nvarchar] (16) NULL ,
[mpaarating] [nvarchar] (16) NULL ,
[starrating] [nvarchar] (16) NULL ,
[movieyear] [nvarchar] (16) NULL ,
[stereo] [bit] NULL ,
[repeat] [bit] NULL ,
[movie] [bit] NULL ,
[subtitled] [bit] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO