update
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user