forked from moztw/gfx.tw
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gfx.sql
152 lines (128 loc) · 4.05 KB
/
gfx.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
-- phpMyAdmin SQL Dump
-- version 2.9.1.1-Debian-2ubuntu1.2
-- http://www.phpmyadmin.net
--
-- 主機: localhost
-- 建立日期: Feb 02, 2009, 12:51 AM
-- 伺服器版本: 5.0.38
-- PHP 版本: 5.2.1
--
-- 資料庫: `gfx`
--
-- --------------------------------------------------------
--
-- 資料表格式: `aboutpages`
--
CREATE TABLE `aboutpages` (
`id` int(2) unsigned NOT NULL auto_increment,
`name` varchar(200) NOT NULL,
`title` text NOT NULL,
`content` text NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- 資料表格式: `addons`
--
CREATE TABLE `addons` (
`id` bigint(20) unsigned NOT NULL auto_increment,
`title` text NOT NULL,
`amo_id` bigint(20) unsigned NOT NULL,
`amo_version` varchar(255) NOT NULL,
`url` varchar(1024) NOT NULL,
`icon_url` varchar(1024) NOT NULL,
`description` text NOT NULL,
`xpi_url` varchar(1024) NOT NULL,
`fetched` timestamp NOT NULL default '0000-00-00 00:00:00',
`modified` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
FULLTEXT KEY `title` (`title`,`description`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- 資料表格式: `features`
--
CREATE TABLE `features` (
`id` int(2) unsigned NOT NULL auto_increment,
`title` text NOT NULL,
`name` varchar(200) NOT NULL,
`order` int(2) unsigned NOT NULL,
`description` text NOT NULL,
`content` text NOT NULL,
`modified` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`),
UNIQUE KEY `order` (`order`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- 資料表格式: `groups`
--
CREATE TABLE `groups` (
`id` int(3) unsigned NOT NULL auto_increment,
`name` varchar(200) NOT NULL,
`title` text NOT NULL,
`order` int(3) unsigned NOT NULL,
`description` text NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`,`order`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- 資料表格式: `u2a`
--
CREATE TABLE `u2a` (
`id` bigint(20) unsigned NOT NULL auto_increment,
`addon_id` bigint(20) unsigned NOT NULL,
`user_id` bigint(20) unsigned NOT NULL,
`group_id` int(3) unsigned NOT NULL,
`order` bigint(20) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- 資料表格式: `u2f`
--
CREATE TABLE `u2f` (
`id` bigint(20) unsigned NOT NULL auto_increment,
`user_id` bigint(20) unsigned NOT NULL,
`feature_id` int(2) unsigned NOT NULL,
`order` int(2) unsigned NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- 資料表格式: `u2g`
--
CREATE TABLE `u2g` (
`id` bigint(20) unsigned NOT NULL auto_increment,
`user_id` bigint(20) unsigned NOT NULL,
`group_id` int(3) unsigned NOT NULL,
`order` int(3) unsigned NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- 資料表格式: `users`
--
CREATE TABLE `users` (
`id` bigint(20) unsigned NOT NULL auto_increment,
`login` varchar(200) NOT NULL,
`name` varchar(200) NOT NULL,
`title` text NOT NULL,
`avatar` varchar(45) character set ascii NOT NULL,
`email` varchar(200) NOT NULL,
`bio` text NOT NULL,
`web` varchar(1024) NOT NULL,
`blog` varchar(1024) NOT NULL,
`blog_rss` varchar(1024) NOT NULL,
`forum_id` bigint(20) NOT NULL,
`forum_username` varchar(48) NOT NULL,
`count` bigint(20) unsigned NOT NULL default '1',
`visited` bigint(20) unsigned NOT NULL,
`modified` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `login` (`login`),
UNIQUE KEY `name` (`name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;