25 lines
1.0 KiB
MySQL
25 lines
1.0 KiB
MySQL
|
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
|
||
|
);
|