Customer Database » History » Version 1
Ryan Supawarapong, 03/13/2026 02:23 AM
| 1 | 1 | Ryan Supawarapong | # Customer Database |
|---|---|---|---|
| 2 | |||
| 3 | |||
| 4 | ``` |
||
| 5 | Table verification { |
||
| 6 | id uuid |
||
| 7 | email_id int |
||
| 8 | mobile_id int |
||
| 9 | appman_id int |
||
| 10 | cdd_id int |
||
| 11 | step int |
||
| 12 | } |
||
| 13 | |||
| 14 | Table mobile { |
||
| 15 | id int |
||
| 16 | value string |
||
| 17 | } |
||
| 18 | |||
| 19 | Table email { |
||
| 20 | id int |
||
| 21 | value string |
||
| 22 | } |
||
| 23 | |||
| 24 | Table cdd { |
||
| 25 | id int |
||
| 26 | face_compare_pass bool |
||
| 27 | mule string |
||
| 28 | freeze_04 string |
||
| 29 | freeze_05 string |
||
| 30 | pep bool |
||
| 31 | pep_message string |
||
| 32 | dopa bool |
||
| 33 | } |
||
| 34 | |||
| 35 | Ref: mobile.id - verification.mobile_id |
||
| 36 | Ref: email.id - verification.email_id |
||
| 37 | Ref: appman.id - verification.appman_id |
||
| 38 | Ref: cdd.id - verification.cdd_id |
||
| 39 | |||
| 40 | |||
| 41 | Table appman { |
||
| 42 | id int |
||
| 43 | verification string |
||
| 44 | attribute_id int |
||
| 45 | } |
||
| 46 | |||
| 47 | Table appman_attribute { |
||
| 48 | id int |
||
| 49 | } |
||
| 50 | |||
| 51 | Ref: appman_attribute.id - appman.attribute_id |
||
| 52 | |||
| 53 | Table identity { |
||
| 54 | id uuid |
||
| 55 | customer_code int |
||
| 56 | fullname_id int |
||
| 57 | current_address_id int |
||
| 58 | register_address_id int |
||
| 59 | work_address_id int |
||
| 60 | suite_test_id int |
||
| 61 | customer_type int |
||
| 62 | } |
||
| 63 | |||
| 64 | Table fullname { |
||
| 65 | id int |
||
| 66 | th_first_name string |
||
| 67 | th_middle_name string |
||
| 68 | th_last_name string |
||
| 69 | en_first_name string |
||
| 70 | en_middle_name string |
||
| 71 | en_last_name string |
||
| 72 | } |
||
| 73 | |||
| 74 | Table occupation { |
||
| 75 | id int |
||
| 76 | education_id int |
||
| 77 | occupation_id int |
||
| 78 | } |
||
| 79 | |||
| 80 | Table address { |
||
| 81 | id int |
||
| 82 | house_number string |
||
| 83 | floor string |
||
| 84 | village_building string |
||
| 85 | sub_street strign |
||
| 86 | street strign |
||
| 87 | country_code string |
||
| 88 | location_id int |
||
| 89 | } |
||
| 90 | |||
| 91 | |||
| 92 | Table location { |
||
| 93 | id int |
||
| 94 | code int |
||
| 95 | zipcode string |
||
| 96 | } |
||
| 97 | |||
| 98 | Ref: location.id < address.location_id |
||
| 99 | |||
| 100 | Ref: fullname.id - identity.fullname_id |
||
| 101 | Ref: address.id - identity.current_address_id |
||
| 102 | Ref: address.id - identity.register_address_id |
||
| 103 | Ref: address.id - identity.work_address_id |
||
| 104 | Ref: suitetest.id - identity.suite_test_id |
||
| 105 | |||
| 106 | |||
| 107 | Table suitetest { |
||
| 108 | id int |
||
| 109 | question_id int |
||
| 110 | answer string |
||
| 111 | } |
||
| 112 | |||
| 113 | Table suitetest_question { |
||
| 114 | id int |
||
| 115 | value string |
||
| 116 | } |
||
| 117 | |||
| 118 | Ref: suitetest_question.id - suitetest.question_id |
||
| 119 | |||
| 120 | |||
| 121 | ``` |