From 00f47ba4cd6ba3488fa8d35a7fe8f16c4c99a298 Mon Sep 17 00:00:00 2001 From: Fortern Date: Fri, 31 Oct 2025 01:00:53 +0800 Subject: [PATCH] update --- PostgreSQL/person/person.sql | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/PostgreSQL/person/person.sql b/PostgreSQL/person/person.sql index 0e5e0f4..0f20a74 100644 --- a/PostgreSQL/person/person.sql +++ b/PostgreSQL/person/person.sql @@ -10,12 +10,12 @@ create table sku.person sequence_number smallint not null, gender_coder smallint not null, check_code smallint not null, - sex boolean not null, + gender boolean not null, name varchar(30) not null, name_initials varchar(30) not null, address varchar(150) not null default '', phone_number varchar(25), - update_time integer not null + update_time timestamp not null ); comment on table sku.person is 'person'; comment on column sku.person.address1 is 'address1'; @@ -25,7 +25,7 @@ comment on column sku.person.birthday is 'birthday'; comment on column sku.person.sequence_number is 'sequence number'; comment on column sku.person.gender_coder is 'gender coder'; comment on column sku.person.check_code is 'check code'; -comment on column sku.person.sex is 'Biological sex'; +comment on column sku.person.gender is 'Biological sex'; comment on column sku.person.name is 'name'; comment on column sku.person.name_initials is 'name initials'; comment on column sku.person.address is 'full address text'; @@ -33,4 +33,4 @@ comment on column sku.person.phone_number is 'phone number'; create index person_birthday_index on sku.person (birthday); create unique index person_id_code_index on sku.person (address1, address2, address3, birthday, sequence_number, gender_coder); create index person_name_initials_index on sku.person (name_initials); -create index person_sex_index on sku.person (sex); +create index person_sex_index on sku.person (gender);