mirror of
https://github.com/rgrgogu/new_starr.git
synced 2026-09-27 00:12:54 +08:00
adjusted
This commit is contained in:
@@ -4,12 +4,14 @@ const excludeAttributes = [
|
||||
"personal_info.name.middle_name",
|
||||
"personal_info.name.last_name",
|
||||
"personal_info.name.extension_name",
|
||||
"personal_info.addresses[]",
|
||||
"personal_info.addresses[].city",
|
||||
"personal_info.addresses[].country",
|
||||
"personal_info.addresses[].street",
|
||||
"personal_info.addresses[].zip",
|
||||
"personal_info.addresses[].address_type",
|
||||
"personal_info.addresses[].state",
|
||||
"personal_info.phone_number[]",
|
||||
"personal_info.phone_number[].country_code",
|
||||
"personal_info.phone_number[].number",
|
||||
"personal_info.phone_number[].phone_type",
|
||||
@@ -18,16 +20,16 @@ const excludeAttributes = [
|
||||
const jsonbSchemas = {
|
||||
personal_info: {
|
||||
name: {
|
||||
full_name: { type: "text", label: "Full Name" },
|
||||
},
|
||||
date_of_birth: { type: "date", label: "Date of Birth" },
|
||||
occupation: { type: "text", label: "Occupation" },
|
||||
addresses: {
|
||||
full_address: { type: "text", label: "Full Address" },
|
||||
},
|
||||
phone_number: {
|
||||
full_number: { type: "text", label: "Phone Number" },
|
||||
full_name: { type: "text", label: "Full Name", order: 2 }, // ← slot 2
|
||||
},
|
||||
date_of_birth: { type: "date", label: "Date of Birth", order: 4 },
|
||||
occupation: { type: "text", label: "Occupation", order: 5 },
|
||||
// addresses: {
|
||||
// full_address: { type: "text", label: "Full Address" },
|
||||
// },
|
||||
// phone_number: {
|
||||
// full_number: { type: "text", label: "Phone Number" },
|
||||
// },
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user