Skip to content

Instantly share code, notes, and snippets.

@odanado
Created July 20, 2018 16:32
Embed
What would you like to do?
CREATE TABLE submissions (
id BIGINT NOT NULL,
epoch_second BIGINT NOT NULL,
problem_id VARCHAR(255) NOT NULL,
contest_id VARCHAR(255) NOT NULL,
user_id BIGINT NOT NULL, -- 数値化
language VARCHAR(255) NOT NULL,
point DOUBLE PRECISION NOT NULL,
length INT NOT NULL,
result VARCHAR(255) NOT NULL,
execution_time INT,
PRIMARY KEY (id)
);
CREATE INDEX user_id on submissions(user_id);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment