|
|
@ -140,7 +140,7 @@ create table sos."delivery_hand_delivered" (
|
|
|
|
|
|
|
|
|
|
|
|
create table sos."order" (
|
|
|
|
create table sos."order" (
|
|
|
|
order_uuid uuid primary key default uuid_generate_v4(),
|
|
|
|
order_uuid uuid primary key default uuid_generate_v4(),
|
|
|
|
order_number int not null serial unique,
|
|
|
|
order_number serial not null unique,
|
|
|
|
order_start_time timestamptz not null default now(),
|
|
|
|
order_start_time timestamptz not null default now(),
|
|
|
|
order_user_uuid uuid references sos."user" (user_uuid),
|
|
|
|
order_user_uuid uuid references sos."user" (user_uuid),
|
|
|
|
order_address_uuid uuid references sos."address" (address_uuid),
|
|
|
|
order_address_uuid uuid references sos."address" (address_uuid),
|
|
|
|