๐ชช Identities
User Identity Entity
The following properties for idt_users table (associative table for Users and Access):
| Name | Type | Description | Unique | Required |
|---|---|---|---|---|
| user_id | String | Foreign key from Users table | โ | โ |
| idt_personal_id | INT | Foreign key from Access table | โ | โ |
Personal Identity Entity
The following properties for idt_personals table:
| Name | Type | Description | Unique | Required |
|---|---|---|---|---|
| id | INT | Primary key, unique record ID | โ | โ |
| user_id | INT | Foreign key from User table | โ | โ |
| agama | STRING | Religion of the individual | โ | โ |
| alamat | STRING | Address of the individual | โ | โ |
| berlaku_hingga | STRING | Validity period of the ID | โ | โ |
| golongan_darah | STRING | Blood type of the individual | โ | โ |
| jenis_kelamin | STRING | Gender of the individual | โ | โ |
| kecamatan | STRING | Sub-district of the individual's address | โ | โ |
| kelurahan_desa | STRING | Village/Urban village of the individual's address | โ | โ |
| kewarganegaraan | STRING | Nationality of the individual | โ | โ |
| kota_kabupaten | STRING | City/Regency of the individual's address | โ | โ |
| nama | STRING | Name of the individual | โ | โ |
| nik | STRING | National ID number | โ | โ |
| pekerjaan | STRING | Occupation of the individual | โ | โ |
| provinsi | STRING | Province of the individual's address | โ | โ |
| rt_rw | STRING | Neighborhood unit/community of the individual's address | โ | โ |
| status_perkawinan | STRING | Marital status of the individual | โ | โ |
| tanggal_lahir | DATE | Birth date of the individual | โ | โ |
| tempat_lahir | STRING | Place of birth of the individual | โ | โ |
| ktp_image_file | JSON | JSON object containing KTP image file | โ | โ |
| verified_at | DATETIME | Timestamp when the record was verified | โ | โ |
NOTE - Unique: Ensures the uniqueness of the values entered into a property of a database table. - Required: Ensures that the values entered a property of a database table can NOT be NULL.
Here is a sample of a identity data ... { "id": "00000001", "alamat": "JUS AGUNG WAY HALIM", "agama": "ISLAM", "berlaku_hingga": "SEUMUR HIDUP", "golongan_darah": "-", "jenis_kelamin": "LAKI-LAKI", "kecamatan": "KEDATON", "kelurahan_desa": "KEDATON", "kewarganegaraan": "WNI", "kota_kabupaten": "BANDAR LAMPUNG", "nama": "JOHN DOE", "nik": "1871010907930009", "pekerjaan": "PELAJAR / MAHASISWA", "provinsi": "LAMPUNG", "rt_rw": "014/000", "status_perkawinan": "BELUM KAWIN", "tanggal_lahir": "1993-07-09", "tempat_lahir": "BANDAR LAMPUNG", "ktp_image_file": { "photo": "/9j/4AAQSkZJRgABAQAAAQABAAD/...", "sign": "/9j/4AAQSkZJRgABAQAAAQABAAD/..." }, "verified_at": "2023-05-29T12:34:56", } ...