move email address to the members table
This commit is contained in:
parent
596deb2803
commit
68d9aff0d0
|
@ -60,11 +60,13 @@ use marketdb;
|
||||||
if not exists (select * from sysobjects where name='members')
|
if not exists (select * from sysobjects where name='members')
|
||||||
CREATE TABLE members (
|
CREATE TABLE members (
|
||||||
member_id int not null,
|
member_id int not null,
|
||||||
|
email_address varchar(50) not null,
|
||||||
password varchar(50) not null,
|
password varchar(50) not null,
|
||||||
member_status_id int not null,
|
member_status_id int not null,
|
||||||
date_of_registration date not null,
|
date_of_registration date not null,
|
||||||
person_id int,
|
person_id int,
|
||||||
constraint member_pk primary key (member_id)
|
constraint member_pk primary key (member_id)
|
||||||
|
constraint constraint_email_address unique (email_address)
|
||||||
);
|
);
|
||||||
|
|
||||||
use marketdb;
|
use marketdb;
|
||||||
|
@ -75,13 +77,11 @@ if not exists (select * from sysobjects where name='persons')
|
||||||
firstname varchar(50) not null,
|
firstname varchar(50) not null,
|
||||||
lastname varchar(50) not null,
|
lastname varchar(50) not null,
|
||||||
date_of_birth date not null,
|
date_of_birth date not null,
|
||||||
email_address varchar(50) not null,
|
|
||||||
streetname varchar(50) not null,
|
streetname varchar(50) not null,
|
||||||
streetnumber int,
|
streetnumber int,
|
||||||
city_id int not null,
|
city_id int not null,
|
||||||
country_id int not null,
|
country_id int not null,
|
||||||
constraint person_pk primary key (person_id),
|
constraint person_pk primary key (person_id),
|
||||||
constraint constraint_email_address unique (email_address)
|
|
||||||
);
|
);
|
||||||
|
|
||||||
use marketdb;
|
use marketdb;
|
||||||
|
|
Loading…
Reference in New Issue