update person entity
This commit is contained in:
No files matched your search
@@ -0,0 +1,6 @@
|
|||||||
|
-- Modify "Person" table
|
||||||
|
ALTER TABLE "public"."Person" DROP CONSTRAINT "uni_Person_DrivingLicenseNumber", DROP CONSTRAINT "uni_Person_PassportNumber", ALTER COLUMN "ResidentIdentityNumber" TYPE character varying(16), ALTER COLUMN "Nationality" TYPE character varying(50);
|
||||||
|
-- Create index "idx_driver_license" to table: "Person"
|
||||||
|
CREATE UNIQUE INDEX "idx_driver_license" ON "public"."Person" ("DrivingLicenseNumber") WHERE ("DeletedAt" IS NULL);
|
||||||
|
-- Create index "idx_passport" to table: "Person"
|
||||||
|
CREATE UNIQUE INDEX "idx_passport" ON "public"."Person" ("PassportNumber") WHERE ("DeletedAt" IS NULL);
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
h1:UhULOHIbuhMYkKVWh97sQJdSpsgfHegvn8gwivFk6YQ=
|
h1:f+74L4+GTfxWUjGdRBK4+cl+dMKS9xAWE2a+KlI27MY=
|
||||||
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=
|
||||||
@@ -120,4 +120,5 @@ h1:UhULOHIbuhMYkKVWh97sQJdSpsgfHegvn8gwivFk6YQ=
|
|||||||
20251114062746.sql h1:FInLaEFQByESEwFJKuKnuUSTKmcDpi3ZXaxkKwz2+D8=
|
20251114062746.sql h1:FInLaEFQByESEwFJKuKnuUSTKmcDpi3ZXaxkKwz2+D8=
|
||||||
20251117005942.sql h1:wD3BWrUSmo1HlW16V3lkaBkJvbAZ0fNk77te7J9NhOc=
|
20251117005942.sql h1:wD3BWrUSmo1HlW16V3lkaBkJvbAZ0fNk77te7J9NhOc=
|
||||||
20251117075427.sql h1:TqU9VKZa3I8YNXUGQWY3WVBYN+1FvyyaKy0hB1jgAho=
|
20251117075427.sql h1:TqU9VKZa3I8YNXUGQWY3WVBYN+1FvyyaKy0hB1jgAho=
|
||||||
20251119063438.sql h1:7BCr8Pr2doQT2BmsKYpyGa7gap4pWH711vClDw/VQ6s=
|
20251119063438.sql h1:esk+Su7PqfQmRmRv7aDlGvzollkNAA3UK27W430xFHI=
|
||||||
|
20251119065730.sql h1:pYEs4zblH2NuhGSsM+9iPKCkAV7w81KQWdnUIifD1rk=
|
||||||
@@ -25,16 +25,16 @@ type Person struct {
|
|||||||
BirthRegency_Code *string `json:"birthRegency_code" gorm:"size:4"`
|
BirthRegency_Code *string `json:"birthRegency_code" gorm:"size:4"`
|
||||||
BirthRegency *er.Regency `json:"birthRegency,omitempty" gorm:"foreignKey:BirthRegency_Code;references:Code"`
|
BirthRegency *er.Regency `json:"birthRegency,omitempty" gorm:"foreignKey:BirthRegency_Code;references:Code"`
|
||||||
Gender_Code *erp.GenderCode `json:"gender_code" gorm:"size:10"`
|
Gender_Code *erp.GenderCode `json:"gender_code" gorm:"size:10"`
|
||||||
ResidentIdentityNumber *string `json:"residentIdentityNumber" gorm:"uniqueIndex:idx_resident_identity,where:\"DeletedAt\" IS NULL"`
|
ResidentIdentityNumber *string `json:"residentIdentityNumber" gorm:"uniqueIndex:idx_resident_identity,where:\"DeletedAt\" IS NULL;size:16"`
|
||||||
PassportNumber *string `json:"passportNumber" gorm:"unique;size:20"`
|
PassportNumber *string `json:"passportNumber" gorm:"uniqueIndex:idx_passport,where:\"DeletedAt\" IS NULL;size:20"`
|
||||||
DrivingLicenseNumber *string `json:"drivingLicenseNumber" gorm:"unique;size:20"`
|
DrivingLicenseNumber *string `json:"drivingLicenseNumber" gorm:"uniqueIndex:idx_driver_license,where:\"DeletedAt\" IS NULL;size:20"`
|
||||||
Religion_Code *erp.ReligionCode `json:"religion_code" gorm:"size:10"`
|
Religion_Code *erp.ReligionCode `json:"religion_code" gorm:"size:10"`
|
||||||
Confidence *string `json:"confidence" gorm:"size:512"`
|
Confidence *string `json:"confidence" gorm:"size:512"`
|
||||||
Education_Code *erp.EducationCode `json:"education_code" gorm:"size:10"`
|
Education_Code *erp.EducationCode `json:"education_code" gorm:"size:10"`
|
||||||
Ocupation_Code *erp.OcupationCode `json:"occupation_code" gorm:"size:15"`
|
Ocupation_Code *erp.OcupationCode `json:"occupation_code" gorm:"size:15"`
|
||||||
Ocupation_Name *string `json:"occupation_name" gorm:"size:50"`
|
Ocupation_Name *string `json:"occupation_name" gorm:"size:50"`
|
||||||
MaritalStatus_Code *erp.MaritalStatusCode `json:"maritalStatus_code" gorm:"size:10"`
|
MaritalStatus_Code *erp.MaritalStatusCode `json:"maritalStatus_code" gorm:"size:10"`
|
||||||
Nationality *string `json:"nationality": gorm:"size:50"`
|
Nationality *string `json:"nationality" gorm:"size:50"`
|
||||||
Ethnic_Code *string `json:"ethnic_code" gorm:"size:20"`
|
Ethnic_Code *string `json:"ethnic_code" gorm:"size:20"`
|
||||||
Ethnic *ee.Ethnic `json:"ethnic,omitempty" gorm:"foreignKey:Ethnic_Code;references:Code"`
|
Ethnic *ee.Ethnic `json:"ethnic,omitempty" gorm:"foreignKey:Ethnic_Code;references:Code"`
|
||||||
Language_Code *string `json:"language_code" gorm:"size:10"`
|
Language_Code *string `json:"language_code" gorm:"size:10"`
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ type MPasien struct {
|
|||||||
Sim *string `json:"sim" gorm:"column:sim"`
|
Sim *string `json:"sim" gorm:"column:sim"`
|
||||||
Paspor *string `json:"paspor" gorm:"column:paspor"`
|
Paspor *string `json:"paspor" gorm:"column:paspor"`
|
||||||
Disabilitas *string `json:"disabilitas" gorm:"column:disabilitas"`
|
Disabilitas *string `json:"disabilitas" gorm:"column:disabilitas"`
|
||||||
Bahasa string `json:"bahasa" json:"bahasa"`
|
Bahasa string `json:"bahasa" gorm:"column:bahasa"`
|
||||||
HambatanKomunikasi string `json:"hambatan_komunikasi" gorm:"column:hambatan_komunikasi"`
|
HambatanKomunikasi string `json:"hambatan_komunikasi" gorm:"column:hambatan_komunikasi"`
|
||||||
Kebangsaan string `json:"kebangsaan" gorm:"column:kebangsaan"`
|
Kebangsaan string `json:"kebangsaan" gorm:"column:kebangsaan"`
|
||||||
Notelprumah1 string `json:"notelprumah1" gorm:"column:notelprumah1"`
|
Notelprumah1 string `json:"notelprumah1" gorm:"column:notelprumah1"`
|
||||||
|
|||||||
Reference in New Issue
Block a user