Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DROP TYPE IF EXISTS grocery;
- CREATE TYPE grocery AS ENUM (
- 'Main',
- 'Snack',
- 'Lunch',
- 'Breakfast'
- );
- CREATE TABLE IF NOT EXISTS shopping_list (
- id SERIAL PRIMARY KEY,
- name TEXT NOT NULL,
- price decimal(10, 2) NOT NULL,
- date_added TIMESTAMP DEFAULT now() NOT NULL,
- checked BOOLEAN DEFAULT false,
- category grocery NOT NULL
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement