--- trunk/schema.sql	2005/05/15 17:01:19	18
+++ trunk/schema.sql	2005/05/16 21:54:41	30
@@ -9,16 +9,19 @@
 	primary key(id)
 );
 
+create unique index users_email_ind on users(email);
+
 create table lists (
 	id	serial,
 	name	text not null,
-	email	text default '',
+	email	text not null,
 	bounce_limit int not null default 3,
 	date	timestamp not null default now(),
 	primary key(id)
 );
 
-create index lists_name_ind on lists(name);
+create unique index lists_name_ind on lists(name);
+create unique index lists_email_ind on lists(email);
 
 create table user_list (
 	user_id	int not null references users(id) on update cascade on delete cascade,
