File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ CREATE TABLE IF NOT EXISTS orders (
99 amount numeric (10 ,2 ) DEFAULT 0 .00
1010);
1111
12+ COMMENT ON TABLE orders IS ' Customer orders' ;
13+
1214COMMENT ON COLUMN orders.user_id IS ' Reference to user' ;
1315
1416--
Original file line number Diff line number Diff line change 44
55CREATE TABLE IF NOT EXISTS users (
66 id integer PRIMARY KEY ,
7- email text NOT NULL ,
8- name text NOT NULL ,
9- city text NOT NULL
7+ email text NOT NULL CHECK (email LIKE ' %@%' ),
8+ name text NOT NULL
109);
1110
1211COMMENT ON TABLE users IS ' User accounts' ;
Original file line number Diff line number Diff line change 7676CREATE TABLE IF NOT EXISTS users (
7777 id integer PRIMARY KEY ,
7878 email text NOT NULL CHECK (email LIKE ' %@%' ),
79- name text NOT NULL ,
80- city text NOT NULL
79+ name text NOT NULL
8180);
8281
8382COMMENT ON TABLE users IS ' User accounts' ;
You can’t perform that action at this time.
0 commit comments