This repository has been archived on 2024-06-08. You can view files and clone it, but cannot push or open issues or pull requests.
powd/migrations/20230804054933_logs_avg.sql

17 lines
457 B
MySQL
Raw Normal View History

CREATE TABLE IF NOT EXISTS logs_avg_individual (
string VARCHAR(100) NOT NULL,
salt VARCHAR(100) NOT NULL,
time INTEGER NOT NULL,
difficulty INTEGER NOT NULL,
ID SERIAL PRIMARY KEY NOT NULL
);
CREATE TABLE IF NOT EXISTS logs_avg (
difficulty INTEGER NOT NULL UNIQUE,
mean_time INTEGER NOT NULL,
variation_time INTEGER NOT NULL,
minimum_time INTEGER NOT NULL,
maximum_time INTEGER NOT NULL,
ID SERIAL PRIMARY KEY NOT NULL
);