Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
say-hanabi-dev
new_answer
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
main
Breadcrumbs
new_answer
/
answer.sql
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
26 lines (24 loc) · 1.36 KB
main
Breadcrumbs
new_answer
/
answer.sql
Copy path
Top
File metadata and controls
Code
Blame
26 lines (24 loc) · 1.36 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
CREATE TABLE `pre_hanabi_answer` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`content` text NOT NULL COMMENT '答题卡',
`mail` varchar(255) DEFAULT NULL COMMENT '用户邮箱',
`ip` varchar(255) NOT NULL COMMENT '答题者IP',
`status` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '状态(0=投票中,1=已通过,2=已删除)',
`mark` tinyint(1) unsigned DEFAULT NULL COMMENT '标记',
`token` char(32) NOT NULL COMMENT '查询令牌',
`invitecode` char(20) DEFAULT NULL COMMENT '邀请码',
`answer_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '答题时间',
PRIMARY KEY (`id`),
UNIQUE KEY `token` (`token`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `pre_hanabi_answer_vote` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`aid` int(11) unsigned NOT NULL COMMENT '答题ID',
`uid` int(11) unsigned NOT NULL COMMENT '投票人ID',
`username` char(20) NOT NULL COMMENT '投票人用户名',
`score` tinyint(4) NOT NULL COMMENT '投票分值(±1)',
`vote_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '投票时间',
PRIMARY KEY (`id`),
UNIQUE KEY `aid_uid` (`aid`,`uid`),
CONSTRAINT `pre_hanabi_answer_vote_ibfk_1` FOREIGN KEY (`aid`) REFERENCES `pre_hanabi_answer` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
You can’t perform that action at this time.