Minor change

This commit is contained in:
Nikolaos Laskaris 2017-10-12 17:17:34 +02:00
parent 2709e8ba54
commit 592dcbc706
1 changed files with 2 additions and 3 deletions

View File

@ -447,7 +447,6 @@ ALTER TABLE ONLY "DatasetService"
ADD CONSTRAINT "DatasetServiceServiceReference" FOREIGN KEY ("Service") REFERENCES "Service"("ID");
DROP table if exists "UserInfo";
CREATE TABLE "UserInfo" (
@ -472,10 +471,10 @@ COMMENT ON COLUMN "UserInfo"."usertype" IS 'This stores the type of user: 0 -> i
DROP table if exists "UserAuth";
CREATE TABLE "UserAuth" (
"id" uuid DEFAULT uuid_generate_v4() NOT NULL,
"id" uuid DEFAULT uuid_generate_v4() NOT NULL UNIQUE,
"username" character varying(200) NOT NULL,
"password" character varying(250) NOT NULL,
PRIMARY KEY (id)
PRIMARY KEY (username)
);
CREATE INDEX idx_userauth_username ON "UserAuth"(username);