You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
352 B
12 lines
352 B
CREATE TABLE IF NOT EXISTS registration_codes (
|
|
code VARCHAR(60) NOT NULL UNIQUE,
|
|
creationTime TIMESTAMP NOT NULL,
|
|
expirationTime TIMESTAMP,
|
|
usages INTEGER NOT NULL DEFAULT 0,
|
|
maxUsages Integer NOT NULL DEFAULT 1
|
|
);
|
|
|
|
CREATE TABLE IF NOT EXISTS registered_users (
|
|
username VARCHAR(30) NOT NULL UNIQUE ,
|
|
registeredTime TIMESTAMP NOT NULL
|
|
);
|