Skip to content

Commit 52ea30c

Browse files
committed
Sql queries added
1 parent befacf1 commit 52ea30c

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

SQL Queries.sql

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
-- create a database a called 'routine_list' and enter the below queries in postgreSQL.
2+
CREATE TABLE
3+
users (
4+
id SERIAL PRIMARY KEY NOT NULL,
5+
user_name VARCHAR(30) NOT NULL UNIQUE,
6+
first_name VARCHAR(20) NOT NULL,
7+
last_name VARCHAR(20),
8+
password TEXT,
9+
email VARCHAR(50) UNIQUE NOT NULL
10+
);
11+
12+
CREATE TABLE
13+
todo_list (
14+
id SERIAL PRIMARY KEY NOT NULL,
15+
user_id INTEGER REFERENCES users (id),
16+
todo_title TEXT,
17+
time TIME
18+
);

0 commit comments

Comments
 (0)