database.sql 347B

12345678910111213141516171819
  1. -- Table: public."user"
  2. -- DROP TABLE public."user";
  3. CREATE TABLE public."user"
  4. (
  5. id serial,
  6. username text NOT NULL,
  7. password character varying,
  8. CONSTRAINT user_pkey PRIMARY KEY (id)
  9. );
  10. -- Index: user_lower_idx
  11. -- DROP INDEX public.user_lower_idx;
  12. CREATE UNIQUE INDEX user_lower_idx
  13. ON public."user"
  14. (lower(username));