forked from yahya-khalaf/Registration-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDatabase.sql
More file actions
18 lines (18 loc) · 669 Bytes
/
Copy pathDatabase.sql
File metadata and controls
18 lines (18 loc) · 669 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
create table users
(
user_id serial
primary key,
user_email varchar(255) not null
constraint users_email_key
unique,
user_password_hash varchar(255) not null,
user_phone_number varchar(20),
user_gender varchar(10)
constraint users_gender_check
check ((user_gender)::text = ANY
(ARRAY [('Male'::character varying)::text, ('Female'::character varying)::text])),
user_first_name varchar(255),
user_last_name varchar(255),
created_at timestamp default CURRENT_TIMESTAMP,
updated_at timestamp default CURRENT_TIMESTAMP
);