-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
15 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,14 @@ | ||
DROP DATABASE IF EXISTS 22hack16; | ||
CREATE DATABASE 22hack16; | ||
USE 22hack16; | ||
|
||
CREATE TABLE IF NOT EXISTS `codes` ( | ||
`user_name` varchar(32) NOT NULL, | ||
`hash` char(8) NOT NULL, | ||
`plain_code` text NOT NULL, | ||
`stdin` text NOT NULL, | ||
`title` varchar(64) NOT NULL, | ||
`options` text NOT NULL, | ||
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
PRIMARY KEY(`user_name`,`hash`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |