Skip to content

armgit / Vvveb

Public Imported from GitHub
0

Powerful and easy to use cms to build websites, blogs or ecommerce stores.

346 B
Raw Blame
DROP TABLE IF EXISTS user_wishlist;

CREATE TABLE user_wishlist (
  "user_id" int check ("user_id" > 0) NOT NULL,
  "product_id" int check ("product_id" > 0) NOT NULL,
  "created_at" timestamp(0) NOT NULL DEFAULT now(),
  PRIMARY KEY("user_id","product_id")
);

CREATE INDEX IF NOT EXISTS "user_wishlist_product" ON user_wishlist ("product_id");