move email address to the members table

This commit is contained in:
Andreas Zweili 2017-07-03 21:47:34 +02:00
parent 596deb2803
commit 68d9aff0d0
1 changed files with 2 additions and 2 deletions

View File

@ -60,11 +60,13 @@ use marketdb;
if not exists (select * from sysobjects where name='members')
CREATE TABLE members (
member_id int not null,
email_address varchar(50) not null,
password varchar(50) not null,
member_status_id int not null,
date_of_registration date not null,
person_id int,
constraint member_pk primary key (member_id)
constraint constraint_email_address unique (email_address)
);
use marketdb;
@ -75,13 +77,11 @@ if not exists (select * from sysobjects where name='persons')
firstname varchar(50) not null,
lastname varchar(50) not null,
date_of_birth date not null,
email_address varchar(50) not null,
streetname varchar(50) not null,
streetnumber int,
city_id int not null,
country_id int not null,
constraint person_pk primary key (person_id),
constraint constraint_email_address unique (email_address)
);
use marketdb;