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
|
UPDATE YclientsTimeSlots
|
||||||
SET DatesSettings = '{}'::jsonb
|
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
|
UPDATE YclientsTimeSlots
|
||||||
SET DatesSettings = '[]'::jsonb
|
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"`
|
Salonserviceid int32 `db:"salonserviceid" json:"salonserviceid"`
|
||||||
Title string `db:"title" json:"title"`
|
Title string `db:"title" json:"title"`
|
||||||
Categoryid int32 `db:"categoryid" json:"categoryid"`
|
Categoryid int32 `db:"categoryid" json:"categoryid"`
|
||||||
Pricemin string `db:"pricemin" json:"pricemin"`
|
Pricemin float64 `db:"pricemin" json:"pricemin"`
|
||||||
Pricemax string `db:"pricemax" json:"pricemax"`
|
Pricemax float64 `db:"pricemax" json:"pricemax"`
|
||||||
Discount string `db:"discount" json:"discount"`
|
Discount int32 `db:"discount" json:"discount"`
|
||||||
Comment string `db:"comment" json:"comment"`
|
Comment string `db:"comment" json:"comment"`
|
||||||
Active bool `db:"active" json:"active"`
|
Active bool `db:"active" json:"active"`
|
||||||
Apiid string `db:"apiid" json:"apiid"`
|
Apiid string `db:"apiid" json:"apiid"`
|
||||||
|
|||||||
@ -150,9 +150,9 @@ type AddYclientsAccountServiceParams struct {
|
|||||||
Salonserviceid int32 `db:"salonserviceid" json:"salonserviceid"`
|
Salonserviceid int32 `db:"salonserviceid" json:"salonserviceid"`
|
||||||
Title string `db:"title" json:"title"`
|
Title string `db:"title" json:"title"`
|
||||||
Categoryid int32 `db:"categoryid" json:"categoryid"`
|
Categoryid int32 `db:"categoryid" json:"categoryid"`
|
||||||
Pricemin string `db:"pricemin" json:"pricemin"`
|
Pricemin float64 `db:"pricemin" json:"pricemin"`
|
||||||
Pricemax string `db:"pricemax" json:"pricemax"`
|
Pricemax float64 `db:"pricemax" json:"pricemax"`
|
||||||
Discount string `db:"discount" json:"discount"`
|
Discount int32 `db:"discount" json:"discount"`
|
||||||
Comment string `db:"comment" json:"comment"`
|
Comment string `db:"comment" json:"comment"`
|
||||||
Active bool `db:"active" json:"active"`
|
Active bool `db:"active" json:"active"`
|
||||||
Apiid string `db:"apiid" json:"apiid"`
|
Apiid string `db:"apiid" json:"apiid"`
|
||||||
@ -3952,9 +3952,9 @@ type GetServicesYclientsWithPaginationRow struct {
|
|||||||
Salonserviceid int32 `db:"salonserviceid" json:"salonserviceid"`
|
Salonserviceid int32 `db:"salonserviceid" json:"salonserviceid"`
|
||||||
Title string `db:"title" json:"title"`
|
Title string `db:"title" json:"title"`
|
||||||
Categoryid int32 `db:"categoryid" json:"categoryid"`
|
Categoryid int32 `db:"categoryid" json:"categoryid"`
|
||||||
Pricemin string `db:"pricemin" json:"pricemin"`
|
Pricemin float64 `db:"pricemin" json:"pricemin"`
|
||||||
Pricemax string `db:"pricemax" json:"pricemax"`
|
Pricemax float64 `db:"pricemax" json:"pricemax"`
|
||||||
Discount string `db:"discount" json:"discount"`
|
Discount int32 `db:"discount" json:"discount"`
|
||||||
Comment string `db:"comment" json:"comment"`
|
Comment string `db:"comment" json:"comment"`
|
||||||
Active bool `db:"active" json:"active"`
|
Active bool `db:"active" json:"active"`
|
||||||
Apiid string `db:"apiid" json:"apiid"`
|
Apiid string `db:"apiid" json:"apiid"`
|
||||||
@ -6520,9 +6520,9 @@ type UpdateYclientsAccountServicesParams struct {
|
|||||||
Salonserviceid int32 `db:"salonserviceid" json:"salonserviceid"`
|
Salonserviceid int32 `db:"salonserviceid" json:"salonserviceid"`
|
||||||
Title string `db:"title" json:"title"`
|
Title string `db:"title" json:"title"`
|
||||||
Categoryid int32 `db:"categoryid" json:"categoryid"`
|
Categoryid int32 `db:"categoryid" json:"categoryid"`
|
||||||
Pricemin string `db:"pricemin" json:"pricemin"`
|
Pricemin float64 `db:"pricemin" json:"pricemin"`
|
||||||
Pricemax string `db:"pricemax" json:"pricemax"`
|
Pricemax float64 `db:"pricemax" json:"pricemax"`
|
||||||
Discount string `db:"discount" json:"discount"`
|
Discount int32 `db:"discount" json:"discount"`
|
||||||
Comment string `db:"comment" json:"comment"`
|
Comment string `db:"comment" json:"comment"`
|
||||||
Active bool `db:"active" json:"active"`
|
Active bool `db:"active" json:"active"`
|
||||||
Apiid string `db:"apiid" json:"apiid"`
|
Apiid string `db:"apiid" json:"apiid"`
|
||||||
|
|||||||
@ -56,9 +56,9 @@ type YclientsServices struct {
|
|||||||
SalonServiceID int32 `json:"salon_service_id"`
|
SalonServiceID int32 `json:"salon_service_id"`
|
||||||
Title string `json:"title"`
|
Title string `json:"title"`
|
||||||
CategoryID int32 `json:"categoryID"`
|
CategoryID int32 `json:"categoryID"`
|
||||||
PriceMin string `json:"priceMin"`
|
PriceMin float64 `json:"priceMin"`
|
||||||
PriceMax string `json:"priceMax"`
|
PriceMax float64 `json:"priceMax"`
|
||||||
Discount string `json:"discount"`
|
Discount int32 `json:"discount"`
|
||||||
Comment string `json:"comment"`
|
Comment string `json:"comment"`
|
||||||
Active bool `json:"active"`
|
Active bool `json:"active"`
|
||||||
ApiID string `json:"apiID"`
|
ApiID string `json:"apiID"`
|
||||||
@ -68,8 +68,8 @@ type YclientsServices struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type YclientsServiceStaff struct {
|
type YclientsServiceStaff struct {
|
||||||
ID string `json:"id"`
|
ID int `json:"id"`
|
||||||
SeanceLength string `json:"seance_length"`
|
SeanceLength int `json:"seance_length"`
|
||||||
}
|
}
|
||||||
type ServicesListYclientsResp struct {
|
type ServicesListYclientsResp struct {
|
||||||
Count int64 `json:"count"`
|
Count int64 `json:"count"`
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user