change types some columns in table YclientsServices
This commit is contained in:
parent
d439003980
commit
51b9acfc84
@ -18,4 +18,9 @@ ALTER COLUMN DatesSettings SET DEFAULT '{}'::jsonb;
|
||||
|
||||
UPDATE YclientsTimeSlots
|
||||
SET DatesSettings = '{}'::jsonb
|
||||
WHERE DatesSettings = '[]'::jsonb;
|
||||
WHERE DatesSettings = '[]'::jsonb;
|
||||
|
||||
ALTER TABLE YclientsServices
|
||||
ALTER COLUMN PriceMin TYPE TEXT,
|
||||
ALTER COLUMN PriceMax TYPE TEXT,
|
||||
ALTER COLUMN Discount TYPE TEXT;
|
||||
@ -10,4 +10,9 @@ ALTER COLUMN DatesSettings SET DEFAULT '[]'::jsonb;
|
||||
|
||||
UPDATE YclientsTimeSlots
|
||||
SET DatesSettings = '[]'::jsonb
|
||||
WHERE DatesSettings = '{}'::jsonb;
|
||||
WHERE DatesSettings = '{}'::jsonb;
|
||||
|
||||
ALTER TABLE YclientsServices
|
||||
ALTER COLUMN PriceMin TYPE FLOAT USING NULLIF(PriceMin, '')::FLOAT,
|
||||
ALTER COLUMN PriceMax TYPE FLOAT USING NULLIF(PriceMax, '')::FLOAT,
|
||||
ALTER COLUMN Discount TYPE INT USING NULLIF(Discount, '')::INT;
|
||||
@ -465,9 +465,9 @@ type Yclientsservice struct {
|
||||
Salonserviceid int32 `db:"salonserviceid" json:"salonserviceid"`
|
||||
Title string `db:"title" json:"title"`
|
||||
Categoryid int32 `db:"categoryid" json:"categoryid"`
|
||||
Pricemin string `db:"pricemin" json:"pricemin"`
|
||||
Pricemax string `db:"pricemax" json:"pricemax"`
|
||||
Discount string `db:"discount" json:"discount"`
|
||||
Pricemin float64 `db:"pricemin" json:"pricemin"`
|
||||
Pricemax float64 `db:"pricemax" json:"pricemax"`
|
||||
Discount int32 `db:"discount" json:"discount"`
|
||||
Comment string `db:"comment" json:"comment"`
|
||||
Active bool `db:"active" json:"active"`
|
||||
Apiid string `db:"apiid" json:"apiid"`
|
||||
|
||||
@ -150,9 +150,9 @@ type AddYclientsAccountServiceParams struct {
|
||||
Salonserviceid int32 `db:"salonserviceid" json:"salonserviceid"`
|
||||
Title string `db:"title" json:"title"`
|
||||
Categoryid int32 `db:"categoryid" json:"categoryid"`
|
||||
Pricemin string `db:"pricemin" json:"pricemin"`
|
||||
Pricemax string `db:"pricemax" json:"pricemax"`
|
||||
Discount string `db:"discount" json:"discount"`
|
||||
Pricemin float64 `db:"pricemin" json:"pricemin"`
|
||||
Pricemax float64 `db:"pricemax" json:"pricemax"`
|
||||
Discount int32 `db:"discount" json:"discount"`
|
||||
Comment string `db:"comment" json:"comment"`
|
||||
Active bool `db:"active" json:"active"`
|
||||
Apiid string `db:"apiid" json:"apiid"`
|
||||
@ -3952,9 +3952,9 @@ type GetServicesYclientsWithPaginationRow struct {
|
||||
Salonserviceid int32 `db:"salonserviceid" json:"salonserviceid"`
|
||||
Title string `db:"title" json:"title"`
|
||||
Categoryid int32 `db:"categoryid" json:"categoryid"`
|
||||
Pricemin string `db:"pricemin" json:"pricemin"`
|
||||
Pricemax string `db:"pricemax" json:"pricemax"`
|
||||
Discount string `db:"discount" json:"discount"`
|
||||
Pricemin float64 `db:"pricemin" json:"pricemin"`
|
||||
Pricemax float64 `db:"pricemax" json:"pricemax"`
|
||||
Discount int32 `db:"discount" json:"discount"`
|
||||
Comment string `db:"comment" json:"comment"`
|
||||
Active bool `db:"active" json:"active"`
|
||||
Apiid string `db:"apiid" json:"apiid"`
|
||||
@ -6520,9 +6520,9 @@ type UpdateYclientsAccountServicesParams struct {
|
||||
Salonserviceid int32 `db:"salonserviceid" json:"salonserviceid"`
|
||||
Title string `db:"title" json:"title"`
|
||||
Categoryid int32 `db:"categoryid" json:"categoryid"`
|
||||
Pricemin string `db:"pricemin" json:"pricemin"`
|
||||
Pricemax string `db:"pricemax" json:"pricemax"`
|
||||
Discount string `db:"discount" json:"discount"`
|
||||
Pricemin float64 `db:"pricemin" json:"pricemin"`
|
||||
Pricemax float64 `db:"pricemax" json:"pricemax"`
|
||||
Discount int32 `db:"discount" json:"discount"`
|
||||
Comment string `db:"comment" json:"comment"`
|
||||
Active bool `db:"active" json:"active"`
|
||||
Apiid string `db:"apiid" json:"apiid"`
|
||||
|
||||
@ -56,9 +56,9 @@ type YclientsServices struct {
|
||||
SalonServiceID int32 `json:"salon_service_id"`
|
||||
Title string `json:"title"`
|
||||
CategoryID int32 `json:"categoryID"`
|
||||
PriceMin string `json:"priceMin"`
|
||||
PriceMax string `json:"priceMax"`
|
||||
Discount string `json:"discount"`
|
||||
PriceMin float64 `json:"priceMin"`
|
||||
PriceMax float64 `json:"priceMax"`
|
||||
Discount int32 `json:"discount"`
|
||||
Comment string `json:"comment"`
|
||||
Active bool `json:"active"`
|
||||
ApiID string `json:"apiID"`
|
||||
@ -68,8 +68,8 @@ type YclientsServices struct {
|
||||
}
|
||||
|
||||
type YclientsServiceStaff struct {
|
||||
ID string `json:"id"`
|
||||
SeanceLength string `json:"seance_length"`
|
||||
ID int `json:"id"`
|
||||
SeanceLength int `json:"seance_length"`
|
||||
}
|
||||
type ServicesListYclientsResp struct {
|
||||
Count int64 `json:"count"`
|
||||
|
||||
Loading…
Reference in New Issue
Block a user