A simple web application that allows invitation based registration to a matrix instance
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.

11 lines
352 B

  1. CREATE TABLE IF NOT EXISTS registration_codes (
  2. code VARCHAR(60) NOT NULL UNIQUE,
  3. creationTime TIMESTAMP NOT NULL,
  4. expirationTime TIMESTAMP,
  5. usages INTEGER NOT NULL DEFAULT 0,
  6. maxUsages Integer NOT NULL DEFAULT 1
  7. );
  8. CREATE TABLE IF NOT EXISTS registered_users (
  9. username VARCHAR(30) NOT NULL UNIQUE ,
  10. registeredTime TIMESTAMP NOT NULL
  11. );