room ids into codes
This commit is contained in:
No files matched your search
@@ -0,0 +1,2 @@
|
|||||||
|
-- Modify "Room" table
|
||||||
|
ALTER TABLE "public"."Room" ADD COLUMN "Infra_Coode" character varying(10) NULL, ADD COLUMN "Unit_Code" character varying(10) NULL, ADD COLUMN "Specialist_Code" character varying(10) NULL, ADD COLUMN "Subspecialist_Code" character varying(10) NULL;
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
-- Rename a column from "Infra_Coode" to "Infra_Code"
|
||||||
|
ALTER TABLE "public"."Room" RENAME COLUMN "Infra_Coode" TO "Infra_Code";
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
h1:3ftGXqIy9GWTwv7IK2HRZfSfwoKU5tLlKS8C1O91tDM=
|
h1:jXSMbKW9P12r6gmXKCW2NR6uOlJDF5wR2bjF61lxk94=
|
||||||
20250904105930.sql h1:MEM6blCgke9DzWQSTnLzasbPIrcHssNNrJqZpSkEo6k=
|
20250904105930.sql h1:MEM6blCgke9DzWQSTnLzasbPIrcHssNNrJqZpSkEo6k=
|
||||||
20250904141448.sql h1:J8cmYNk4ZrG9fhfbi2Z1IWz7YkfvhFqTzrLFo58BPY0=
|
20250904141448.sql h1:J8cmYNk4ZrG9fhfbi2Z1IWz7YkfvhFqTzrLFo58BPY0=
|
||||||
20250908062237.sql h1:Pu23yEW/aKkwozHoOuROvHS/GK4ngARJGdO7FB7HZuI=
|
20250908062237.sql h1:Pu23yEW/aKkwozHoOuROvHS/GK4ngARJGdO7FB7HZuI=
|
||||||
@@ -84,4 +84,6 @@ h1:3ftGXqIy9GWTwv7IK2HRZfSfwoKU5tLlKS8C1O91tDM=
|
|||||||
20251106082844.sql h1:Dmi5A8i9frQZvdXYPwc7f8CisZtBH8liSXq1rI6z1iM=
|
20251106082844.sql h1:Dmi5A8i9frQZvdXYPwc7f8CisZtBH8liSXq1rI6z1iM=
|
||||||
20251106090021.sql h1:4JwdKgO8T46YhyWVJUxpRIwudBDlG8QN1brSOYmgQ20=
|
20251106090021.sql h1:4JwdKgO8T46YhyWVJUxpRIwudBDlG8QN1brSOYmgQ20=
|
||||||
20251106144745.sql h1:nqnQCzGrVJaq8ilOEOGXeRUL1dolj+OPWKuP8A92FRA=
|
20251106144745.sql h1:nqnQCzGrVJaq8ilOEOGXeRUL1dolj+OPWKuP8A92FRA=
|
||||||
20251107012049.sql h1:JoINgSA4u4SUeF+rfTqTUDEWyZBpKMDULDfVdbE5g9E=
|
20251107012049.sql h1:Pff4UqltGS3clSlGr0qq8CQM56L29wyxY0FC/N/YAhU=
|
||||||
|
20251107064812.sql h1:jjpcAi0B/geEOKWmmR6+1UhWMhjstWhWQcz9lUWrtTY=
|
||||||
|
20251107064937.sql h1:1nPu0THBf+YquFIJSE4pc1dA7r3EydH92cpp26ozysw=
|
||||||
@@ -8,14 +8,18 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type Basic struct {
|
type Basic struct {
|
||||||
ecore.SmallMain // adjust this according to the needs
|
ecore.SmallMain // adjust this according to the needs
|
||||||
Infra_Id *uint16 `json:"infra_id"`
|
Infra_Id *uint16 `json:"infra_id"`
|
||||||
Unit_Id *uint16 `json:"unit_id"`
|
Infra_Code *string `json:"infra_code" gorm:"size:10"`
|
||||||
Unit *eu.Unit `json:"unit,omitempty" gorm:"foreignKey:Unit_Id"`
|
Unit_Id *uint16 `json:"unit_id"`
|
||||||
Specialist_Id *uint16 `json:"specialist_id"`
|
Unit_Code *string `json:"unit_code" gorm:"size:10"`
|
||||||
Specialist *es.Specialist `json:"specialist,omitempty" gorm:"foreignKey:Specialist_Id"`
|
Unit *eu.Unit `json:"unit,omitempty" gorm:"foreignKey:Unit_Id"`
|
||||||
Subspecialist_Id *uint16 `json:"subspecialist_id"`
|
Specialist_Id *uint16 `json:"specialist_id"`
|
||||||
Subspecialist *ess.Subspecialist `json:"subspecialist,omitempty" gorm:"foreignKey:Subspecialist_Id"`
|
Specialist_Code *string `json:"specialist_code" gorm:"size:10"`
|
||||||
|
Specialist *es.Specialist `json:"specialist,omitempty" gorm:"foreignKey:Specialist_Id"`
|
||||||
|
Subspecialist_Id *uint16 `json:"subspecialist_id"`
|
||||||
|
Subspecialist_Code *string `json:"subspecialist_code" gorm:"size:10"`
|
||||||
|
Subspecialist *ess.Subspecialist `json:"subspecialist,omitempty" gorm:"foreignKey:Subspecialist_Id"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (Basic) TableName() string {
|
func (Basic) TableName() string {
|
||||||
|
|||||||
@@ -36,7 +36,9 @@ import (
|
|||||||
|
|
||||||
/******************** actor ********************/
|
/******************** actor ********************/
|
||||||
|
|
||||||
|
doctor "simrs-vx/internal/interface/main-handler/doctor"
|
||||||
employee "simrs-vx/internal/interface/main-handler/employee"
|
employee "simrs-vx/internal/interface/main-handler/employee"
|
||||||
|
nurse "simrs-vx/internal/interface/main-handler/nurse"
|
||||||
nutritionist "simrs-vx/internal/interface/main-handler/nutritionist"
|
nutritionist "simrs-vx/internal/interface/main-handler/nutritionist"
|
||||||
patient "simrs-vx/internal/interface/main-handler/patient"
|
patient "simrs-vx/internal/interface/main-handler/patient"
|
||||||
person "simrs-vx/internal/interface/main-handler/person"
|
person "simrs-vx/internal/interface/main-handler/person"
|
||||||
@@ -267,6 +269,8 @@ func SetRoutes() http.Handler {
|
|||||||
hc.RegCrud(r, "/v1/person-contact", personcontact.O)
|
hc.RegCrud(r, "/v1/person-contact", personcontact.O)
|
||||||
hc.RegCrud(r, "/v1/person-insurance", personinsurance.O)
|
hc.RegCrud(r, "/v1/person-insurance", personinsurance.O)
|
||||||
hc.RegCrud(r, "/v1/employee", employee.O)
|
hc.RegCrud(r, "/v1/employee", employee.O)
|
||||||
|
hc.RegCrudByCode(r, "/v1/doctor", doctor.O)
|
||||||
|
hc.RegCrudByCode(r, "/v1/nurse", nurse.O)
|
||||||
hc.RegCrud(r, "/v1/nutritionist", nutritionist.O)
|
hc.RegCrud(r, "/v1/nutritionist", nutritionist.O)
|
||||||
hc.RegCrud(r, "/v1/pharmacist", pharmacist.O)
|
hc.RegCrud(r, "/v1/pharmacist", pharmacist.O)
|
||||||
hk.GroupRoutes("/v1/user", r, hk.MapHandlerFunc{
|
hk.GroupRoutes("/v1/user", r, hk.MapHandlerFunc{
|
||||||
|
|||||||
Reference in New Issue
Block a user