-
Notifications
You must be signed in to change notification settings - Fork 0
/
film_struct.sql
152 lines (131 loc) · 3.87 KB
/
film_struct.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
-- phpMyAdmin SQL Dump
-- version 4.0.10deb1
-- http://www.phpmyadmin.net
--
-- 主机: localhost
-- 生成日期: 2014-05-04 17:52:39
-- 服务器版本: 5.5.37-0ubuntu0.14.04.1
-- PHP 版本: 5.5.9-1ubuntu4
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
--
-- 数据库: `film`
--
-- --------------------------------------------------------
--
-- 表的结构 `dub_team`
--
CREATE TABLE IF NOT EXISTS `dub_team` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`team_name` varchar(255) NOT NULL,
`slogan` varchar(255) NOT NULL,
`method` varchar(16) NOT NULL,
`members` int(11) NOT NULL,
`time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`ip` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
KEY `name` (`team_name`),
KEY `signature` (`slogan`),
KEY `type` (`method`),
KEY `members` (`members`),
KEY `time` (`time`),
KEY `ip` (`ip`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
-- --------------------------------------------------------
--
-- 表的结构 `dub_teammate`
--
CREATE TABLE IF NOT EXISTS `dub_teammate` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`tid` int(11) NOT NULL,
`name` varchar(255) NOT NULL,
`leader` tinyint(1) NOT NULL,
`phone` varchar(32) NOT NULL,
`email` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
KEY `tid` (`tid`),
KEY `name` (`name`),
KEY `leader` (`leader`),
KEY `phone` (`phone`),
KEY `email` (`email`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
-- --------------------------------------------------------
--
-- 表的结构 `poster_member`
--
CREATE TABLE IF NOT EXISTS `poster_member` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`sid` int(11) NOT NULL,
`name` varchar(255) NOT NULL,
`leader` tinyint(1) NOT NULL,
`stuid` varchar(32) NOT NULL,
`contact` varchar(32) NOT NULL,
PRIMARY KEY (`id`),
KEY `sid` (`sid`),
KEY `name` (`name`),
KEY `leader` (`leader`),
KEY `stuid` (`stuid`),
KEY `contact` (`contact`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=75 ;
-- --------------------------------------------------------
--
-- 表的结构 `poster_signup`
--
CREATE TABLE IF NOT EXISTS `poster_signup` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`members` int(11) NOT NULL,
`pictype1` int(11) NOT NULL COMMENT '图片格式',
`suffix1` varchar(8) NOT NULL,
`pictype2` int(11) NOT NULL,
`suffix2` varchar(8) NOT NULL,
`introduction` varchar(255) NOT NULL,
`time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`ip` varchar(255) NOT NULL,
`hash` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
KEY `name` (`name`),
KEY `members` (`members`),
KEY `time` (`time`),
KEY `ip` (`ip`),
KEY `introduction` (`introduction`),
KEY `hash` (`hash`),
KEY `hash_2` (`hash`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=32 ;
-- --------------------------------------------------------
--
-- 表的结构 `poster_vote`
--
CREATE TABLE IF NOT EXISTS `poster_vote` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`pid` int(11) NOT NULL,
`slug` varchar(32) NOT NULL,
`name` varchar(64) NOT NULL,
`votes` int(11) NOT NULL,
`score` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `pid` (`pid`,`name`,`votes`,`score`),
KEY `slug` (`slug`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=131 ;
-- --------------------------------------------------------
--
-- 表的结构 `poster_vote_log`
--
CREATE TABLE IF NOT EXISTS `poster_vote_log` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`pid` int(11) NOT NULL,
`uid` int(11) NOT NULL,
`username` varchar(255) NOT NULL,
`email` varchar(255) NOT NULL,
`stuid` varchar(32) NOT NULL,
`act` mediumtext NOT NULL,
`ip` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `uid` (`uid`),
KEY `username` (`username`),
KEY `pid` (`pid`),
KEY `ip` (`ip`),
KEY `username_2` (`username`),
KEY `stuid` (`stuid`),
KEY `email` (`email`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;