-
Notifications
You must be signed in to change notification settings - Fork 1
/
person_struct.go
48 lines (46 loc) · 3.17 KB
/
person_struct.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package main
import (
"time"
)
type person struct {
ID int `db:"id_person" json:"id"`
ExternalID string `db:"external_id" json:"external_id"`
ExternalSystem string `db:"external_system" json:"external_system"`
ExternalTable string `db:"external_table" json:"external_table"`
SystCreatedDatetime *time.Time `db:"syst_created_datetime" json:"syst_created_datetime,omitempty"`
CreationSystemID *string `db:"creation_system_id" json:"creation_system_id,omitempty"`
CreatedByID int `db:"created_by_id" json:"created_by_id"`
CreationMethod *string `db:"creation_method" json:"creation_method,omitempty"`
SystUpdatedDatetime *time.Time `db:"syst_updated_datetime" json:"syst_updated_datetime,omitempty"`
UpdateSystemID *string `db:"update_system_id" json:"update_system_id,omitempty"`
UpdatedByID *int `db:"updated_by_id" json:"updated_by_id,omitempty"`
UpdateMethod *string `db:"update_method" json:"update_method,omitempty"`
PersonStatusID *int `db:"person_status_id" json:"person_status_id,omitempty"`
DupeID *int `db:"dupe_id" json:"dupe_id,omitempty"`
HandlerID *int `db:"handler_id" json:"handler_id,omitempty"`
IsUneeTAccountNeeded *int `db:"is_unee_t_account_needed" json:"is_unee_t_account_needed,omitempty"`
UneeTUserTypeID *int `db:"unee_t_user_type_id" json:"unee_t_user_type_id,omitempty"`
CountryCode *string `db:"country_code" json:"country_code,omitempty"`
Gender *int `db:"gender" json:"gender,omitempty"`
SalutationID *int `db:"salutation_id" json:"salutation_id,omitempty"`
GivenName string `db:"given_name" json:"given_name"`
Middlename *string `db:"middle_name" json:"mi_ddle_name,omitempty"`
FamilyName *string `db:"family_name" json:"family_name,omitempty"`
DateOfBirth *time.Time `db:"date_of_birth" json:"date_of_birth,omitempty"`
Alias *string `db:"alias" json:"alias,omitempty"`
JobTitle *string `db:"job_title" json:"job_title,omitempty"`
Organization *string `db:"organization" json:"organization,omitempty"`
Email *string `db:"email" json:"email,omitempty"`
Tel1 *string `db:"tel_1" json:"tel_1,omitempty"`
Tel2 *string `db:"tel_2" json:"tel_2,omitempty"`
Whatsapp *string `db:"whatsapp" json:"whatsapp,omitempty"`
Linkedin *string `db:"linkedin" json:"linkedin,omitempty"`
Facebook *string `db:"facebook" json:"facebook,omitempty"`
Adr1 *string `db:"adr1" json:"adr_1,omitempty"`
Adr2 *string `db:"adr2" json:"adr_2,omitempty"`
Adr3 *string `db:"adr3" json:"adr_3,omitempty"`
City *string `db:"City" json:"city,omitempty"`
ZipPostcode *string `db:"zip_postcode" json:"zip_postcode,omitempty"`
RegionOrState *string `db:"region_or_state" json:"region_or_state,omitempty"`
Country *string `db:"country" json:"country,omitempty"`
}