Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CREATE TABLE IF NOT EXISTS vendors
- (
- id BIGSERIAL PRIMARY KEY,
- name VARCHAR(30) UNIQUE NOT NULL
- );
- CREATE TABLE IF NOT EXISTS categories
- (
- id BIGSERIAL PRIMARY KEY,
- vendor_id BIGINT REFERENCES vendors (id) NOT NULL,
- parent_id BIGINT
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement