Skip to content

Instantly share code, notes, and snippets.

@odanado
Created July 20, 2018 16:32
Show Gist options
  • Save odanado/38e1c5b1aa918428252e0da644601224 to your computer and use it in GitHub Desktop.
Save odanado/38e1c5b1aa918428252e0da644601224 to your computer and use it in GitHub Desktop.
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