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.

18 lines
450 B

  1. -- Your SQL goes here
  2. create table user_accounts (
  3. id serial primary key,
  4. username varchar(16) UNIQUE NOT NULL,
  5. password varchar(64) NOT NULL,
  6. guildcard int,
  7. team_id int,
  8. banned boolean NOT NULL default false,
  9. muted_until timestamp NOT NULL default now(),
  10. created_at timestamp NOT NULL default now()
  11. );
  12. create table user_settings (
  13. id serial primary key,
  14. user_id int not null,
  15. settings bytea not null
  16. );