Advertisement
Guest User

Untitled

a guest
May 22nd, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. DROP TYPE IF EXISTS grocery;
  2. CREATE TYPE grocery AS ENUM (
  3. 'Main',
  4. 'Snack',
  5. 'Lunch',
  6. 'Breakfast'
  7. );
  8.  
  9. CREATE TABLE IF NOT EXISTS shopping_list (
  10. id SERIAL PRIMARY KEY,
  11. name TEXT NOT NULL,
  12. price decimal(10, 2) NOT NULL,
  13. date_added TIMESTAMP DEFAULT now() NOT NULL,
  14. checked BOOLEAN DEFAULT false,
  15. category grocery NOT NULL
  16. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement