add warehouse_request_source and warehouse_request_source_2 fields to deliveries table with validation and normalization logic
This commit is contained in:
@@ -9,27 +9,29 @@ import (
|
||||
)
|
||||
|
||||
type Delivery struct {
|
||||
ID pgtype.UUID `db:"id" json:"id"`
|
||||
Date pgtype.Date `db:"date" json:"date"`
|
||||
PickupLocation string `db:"pickup_location" json:"pickup_location"`
|
||||
ProductName string `db:"product_name" json:"product_name"`
|
||||
Address string `db:"address" json:"address"`
|
||||
Phone string `db:"phone" json:"phone"`
|
||||
AdditionalPhone pgtype.Text `db:"additional_phone" json:"additional_phone"`
|
||||
HasElevator bool `db:"has_elevator" json:"has_elevator"`
|
||||
Comment pgtype.Text `db:"comment" json:"comment"`
|
||||
Status string `db:"status" json:"status"`
|
||||
CreatedAt pgtype.Timestamptz `db:"created_at" json:"created_at"`
|
||||
UpdatedAt pgtype.Timestamptz `db:"updated_at" json:"updated_at"`
|
||||
CustomerName string `db:"customer_name" json:"customer_name"`
|
||||
ServiceInfo pgtype.Text `db:"service_info" json:"service_info"`
|
||||
PickupLocation2 pgtype.Text `db:"pickup_location_2" json:"pickup_location_2"`
|
||||
ProductName2 pgtype.Text `db:"product_name_2" json:"product_name_2"`
|
||||
Street string `db:"street" json:"street"`
|
||||
House string `db:"house" json:"house"`
|
||||
Apartment pgtype.Text `db:"apartment" json:"apartment"`
|
||||
Entrance pgtype.Text `db:"entrance" json:"entrance"`
|
||||
Floor pgtype.Text `db:"floor" json:"floor"`
|
||||
ID pgtype.UUID `db:"id" json:"id"`
|
||||
Date pgtype.Date `db:"date" json:"date"`
|
||||
PickupLocation string `db:"pickup_location" json:"pickup_location"`
|
||||
ProductName string `db:"product_name" json:"product_name"`
|
||||
Address string `db:"address" json:"address"`
|
||||
Phone string `db:"phone" json:"phone"`
|
||||
AdditionalPhone pgtype.Text `db:"additional_phone" json:"additional_phone"`
|
||||
HasElevator bool `db:"has_elevator" json:"has_elevator"`
|
||||
Comment pgtype.Text `db:"comment" json:"comment"`
|
||||
Status string `db:"status" json:"status"`
|
||||
CreatedAt pgtype.Timestamptz `db:"created_at" json:"created_at"`
|
||||
UpdatedAt pgtype.Timestamptz `db:"updated_at" json:"updated_at"`
|
||||
CustomerName string `db:"customer_name" json:"customer_name"`
|
||||
ServiceInfo pgtype.Text `db:"service_info" json:"service_info"`
|
||||
PickupLocation2 pgtype.Text `db:"pickup_location_2" json:"pickup_location_2"`
|
||||
ProductName2 pgtype.Text `db:"product_name_2" json:"product_name_2"`
|
||||
Street string `db:"street" json:"street"`
|
||||
House string `db:"house" json:"house"`
|
||||
Apartment pgtype.Text `db:"apartment" json:"apartment"`
|
||||
Entrance pgtype.Text `db:"entrance" json:"entrance"`
|
||||
Floor pgtype.Text `db:"floor" json:"floor"`
|
||||
WarehouseRequestSource pgtype.Text `db:"warehouse_request_source" json:"warehouse_request_source"`
|
||||
WarehouseRequestSource2 pgtype.Text `db:"warehouse_request_source_2" json:"warehouse_request_source_2"`
|
||||
}
|
||||
|
||||
type User struct {
|
||||
|
||||
Reference in New Issue
Block a user