Mercurial > epgrec.yaz
annotate tableStruct.inc.php @ 163:b3095425e613
fix: ????EPG???????????????????????
| author | epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp> |
|---|---|
| date | Sun, 04 Apr 2010 22:49:13 +0900 |
| parents | 481e789605e3 |
| children |
| rev | line source |
|---|---|
| 114 | 1 <?php |
| 2 // データベーステーブル定義 | |
| 3 | |
| 4 | |
| 5 // 予約テーブル | |
| 6 define( "RESERVE_STRUCT", | |
| 7 "id integer not null auto_increment primary key,". // ID | |
| 8 "channel_disc varchar(128) not null default 'none',". // channel disc | |
| 9 "channel_id integer not null default '0',". // channel ID | |
| 10 "program_id integer not null default '0',". // Program ID | |
| 11 "type varchar(8) not null default 'GR',". // 種別(GR/BS/CS) | |
| 12 "channel varchar(10) not null default '0',". // チャンネル | |
| 13 "title varchar(512) not null default 'none',". // タイトル | |
| 14 "description varchar(512) not null default 'none',". // 説明 text->varchar | |
| 15 "category_id integer not null default '0',". // カテゴリID | |
| 16 "starttime datetime not null default '1970-01-01 00:00:00',". // 開始時刻 | |
| 17 "endtime datetime not null default '1970-01-01 00:00:00',". // 終了時刻 | |
| 18 "job integer not null default '0',". // job番号 | |
| 19 "path blob default null,". // 録画ファイルパス | |
| 20 "complete boolean not null default '0',". // 完了フラグ | |
| 21 "reserve_disc varchar(128) not null default 'none',". // 識別用hash | |
| 22 "autorec integer not null default '0',". // キーワードID | |
| 115 | 23 "mode integer not null default '0',". // 録画モード |
|
142
481e789605e3
mod: EPG???????????????????????????????
epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
parents:
135
diff
changeset
|
24 "dirty boolean not null default '0',". // ダーティフラグ |
| 114 | 25 "index reserve_ch_idx (channel_disc),". // インデックス |
| 26 "index reserve_st_idx (starttime)". | |
| 27 "" | |
| 28 ); | |
| 29 | |
| 30 | |
| 31 // 番組表テーブル | |
| 32 define( "PROGRAM_STRUCT", | |
| 33 "id integer not null auto_increment primary key,". // ID | |
| 34 "channel_disc varchar(128) not null default 'none',". // channel disc | |
| 35 "channel_id integer not null default '0',". // channel ID | |
| 36 "type varchar(8) not null default 'GR',". // 種別(GR/BS/CS) | |
| 37 "channel varchar(10) not null default '0',". // チャンネル | |
| 38 "title varchar(512) not null default 'none',". // タイトル | |
| 39 "description varchar(512) not null default 'none',". // 説明 text->varchar | |
| 40 "category_id integer not null default '0',". // カテゴリID | |
| 41 "starttime datetime not null default '1970-01-01 00:00:00',". // 開始時刻 | |
| 42 "endtime datetime not null default '1970-01-01 00:00:00',". // 終了時刻 | |
| 43 "program_disc varchar(128) not null default 'none',". // 識別用hash | |
| 44 "autorec boolean not null default '1',". // 自動録画有効無効 | |
| 45 "index program_ch_idx (channel_disc),". // インデックス | |
| 46 "index program_st_idx (starttime)". | |
| 47 "" | |
| 48 ); | |
| 49 | |
| 50 | |
| 51 define( "CHANNEL_STRUCT", | |
| 52 "id integer not null auto_increment primary key,". // ID | |
| 53 "type varchar(8) not null default 'GR',". // 種別 | |
| 54 "channel varchar(10) not null default '0',". // channel | |
| 55 "name varchar(512) not null default 'none',". // 表示名 | |
| 56 "channel_disc varchar(128) not null default 'none',". // 識別用hash | |
| 57 "sid varchar(64) not null default 'hd',". // サービスID用02/23/2010追加 | |
| 58 "skip boolean not null default '0'". // チャンネルスキップ用03/13/2010追加 | |
| 59 "" | |
| 60 ); | |
| 61 | |
| 62 define( "CATEGORY_STRUCT", | |
| 63 "id integer not null auto_increment primary key,". // ID | |
| 64 "name_jp varchar(512) not null default 'none',". // 表示名 | |
| 65 "name_en varchar(512) not null default 'none',". // 同上 | |
| 66 "category_disc varchar(128) not null default 'none'" // 識別用hash | |
| 67 ); | |
| 68 | |
| 69 | |
| 70 define( "KEYWORD_STRUCT", | |
| 71 "id integer not null auto_increment primary key,". // ID | |
| 72 "keyword varchar(512) not null default '*',". // 表示名 | |
| 73 "type varchar(8) not null default '*',". // 種別 | |
| 74 "channel_id integer not null default '0',". // channel ID | |
| 75 "category_id integer not null default '0',". // カテゴリID | |
| 76 "use_regexp boolean not null default '0',". // 正規表現を使用するなら1 | |
| 77 "autorec_mode integer not null default '0',". // 自動録画のモード02/23/2010追加 | |
|
142
481e789605e3
mod: EPG???????????????????????????????
epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
parents:
135
diff
changeset
|
78 "weekofday enum ('0','1','2','3','4','5','6','7' ) not null default '7'".// 曜日、同追加 |
|
481e789605e3
mod: EPG???????????????????????????????
epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
parents:
135
diff
changeset
|
79 ",prgtime enum ('0','1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24') not null default '24'". // 時間 03/13/2010追加 |
| 114 | 80 "" |
| 81 ); | |
| 82 | |
|
135
9c5e597ef6c6
mod: ???????
epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
parents:
115
diff
changeset
|
83 define( "LOG_STRUCT", |
|
9c5e597ef6c6
mod: ???????
epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
parents:
115
diff
changeset
|
84 "id integer not null auto_increment primary key". // ID |
|
9c5e597ef6c6
mod: ???????
epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
parents:
115
diff
changeset
|
85 ",logtime datetime not null default '1970-01-01 00:00:00'". // 記録日時 |
|
9c5e597ef6c6
mod: ???????
epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
parents:
115
diff
changeset
|
86 ",level integer not null default '0'". // エラーレベル |
|
9c5e597ef6c6
mod: ???????
epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
parents:
115
diff
changeset
|
87 ",message varchar(512) not null default ''". |
|
9c5e597ef6c6
mod: ???????
epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
parents:
115
diff
changeset
|
88 "" |
|
9c5e597ef6c6
mod: ???????
epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
parents:
115
diff
changeset
|
89 ); |
|
9c5e597ef6c6
mod: ???????
epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
parents:
115
diff
changeset
|
90 |
|
142
481e789605e3
mod: EPG???????????????????????????????
epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
parents:
135
diff
changeset
|
91 ?> |
