bazzar/migrations/20230603073530_shippings.sql

25 lines
1.0 KiB
MySQL
Raw Normal View History

2023-06-09 07:21:40 +02:00
CREATE TABLE tracking_links
(
id uuid NOT NULL,
url character varying,
tracking_number character varying NOT NULL,
fulfillment_id uuid NOT NULL,
created_at timestamp with time zone DEFAULT now() NOT NULL,
updated_at timestamp with time zone DEFAULT now() NOT NULL,
deleted_at timestamp with time zone,
metadata jsonb,
idempotency_key character varying
);
CREATE TABLE custom_shipping_options
(
id uuid NOT NULL,
price integer NOT NULL,
shipping_option_id uuid NOT NULL,
cart_id uuid,
created_at timestamp with time zone DEFAULT now() NOT NULL,
updated_at timestamp with time zone DEFAULT now() NOT NULL,
deleted_at timestamp with time zone,
metadata jsonb
);