Mercurial > dive4elements > framework
diff artifact-database/doc/schema-pg.sql @ 124:caf9f456f7e3
Added SQL statements to handle users in database.
artifacts/trunk@1348 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Tue, 01 Mar 2011 17:43:16 +0000 |
parents | 720d65bbba13 |
children | a76de72ad6d1 |
line wrap: on
line diff
--- a/artifact-database/doc/schema-pg.sql Tue Mar 01 17:14:10 2011 +0000 +++ b/artifact-database/doc/schema-pg.sql Tue Mar 01 17:43:16 2011 +0000 @@ -22,7 +22,7 @@ CREATE TABLE users ( id int PRIMARY KEY NOT NULL, - gid uuid NOT NULL, + gid uuid NOT NULL UNIQUE, name VARCHAR(256) NOT NULL UNIQUE, role BINARY ); @@ -31,7 +31,7 @@ CREATE TABLE collections ( id int PRIMARY KEY NOT NULL, - gid uuid NOT NULL, + gid uuid NOT NULL UNIQUE, name VARCHAR(256) NOT NULL, owner_id int NOT NULL REFERENCES users(id), creation timestamp NOT NULL,