| | 5 | |
| | 6 | |
| | 7 | == Податочни побарувања == |
| | 8 | |
| | 9 | === Ентитети === |
| | 10 | |
| | 11 | ==== Strong Entities ==== |
| | 12 | |
| | 13 | Person |
| | 14 | |
| | 15 | * **Primary Key (PK):** person_id |
| | 16 | * **Attributes:** |
| | 17 | * name |
| | 18 | * surname |
| | 19 | * address |
| | 20 | * gender |
| | 21 | * date_of_birth |
| | 22 | * contact_phone |
| | 23 | * is_alive |
| | 24 | * is_stub |
| | 25 | |
| | 26 | Institution |
| | 27 | |
| | 28 | * **Primary Key (PK):** institution_id |
| | 29 | * **Attributes:** |
| | 30 | * name |
| | 31 | * address |
| | 32 | * type |
| | 33 | * year_established |
| | 34 | * city |
| | 35 | |
| | 36 | Report |
| | 37 | |
| | 38 | * **Primary Key (PK):** report_id |
| | 39 | * **Attributes: |
| | 40 | * report_type |
| | 41 | * date |
| | 42 | * notes |
| | 43 | * person_id (Foreign Key) |
| | 44 | |
| | 45 | CrimeType |
| | 46 | |
| | 47 | * **Primary Key (PK):** crime_type_id |
| | 48 | * **Attributes:** |
| | 49 | * label |
| | 50 | * severity_level |
| | 51 | |
| | 52 | Punishment |
| | 53 | |
| | 54 | * **Primary Key (PK):** punishment_id |
| | 55 | * **Attributes:** |
| | 56 | * value |
| | 57 | * value_unit |
| | 58 | * punishment_type |
| | 59 | |
| | 60 | Diagnosis |
| | 61 | |
| | 62 | * **Primary Key (PK):** diagnosis_id |
| | 63 | * **Attributes:** |
| | 64 | * description |
| | 65 | * therapy |
| | 66 | * severity |
| | 67 | * is_chronic |
| | 68 | |
| | 69 | Doctor |
| | 70 | |
| | 71 | * **Primary Key (PK):** doctor_id |
| | 72 | * **Attributes:** |
| | 73 | * surname |
| | 74 | * years_of_experience |
| | 75 | * specialization |
| | 76 | * name |
| | 77 | * is_active |
| | 78 | |
| | 79 | Role |
| | 80 | * **Primary Key (PK):** role_id |
| | 81 | * **Attributes:** |
| | 82 | * role_name |
| | 83 | * description |
| | 84 | |
| | 85 | ==== Weak Entities ==== |
| | 86 | |
| | 87 | FilterSession |
| | 88 | |
| | 89 | * **Primary Key (PK):** session_id |
| | 90 | * **Attributes:** |
| | 91 | * filter_description |
| | 92 | * searched_at |
| | 93 | * user_id (Foreign Key) |
| | 94 | |
| | 95 | ReportiumUser |
| | 96 | |
| | 97 | * **Primary Key (PK):** reportium_user_id |
| | 98 | * **Attributes:** |
| | 99 | * password_hash |
| | 100 | * is_active |
| | 101 | * email |
| | 102 | * surname |
| | 103 | |
| | 104 | UserProfile |
| | 105 | |
| | 106 | * **Primary Key (PK):** profile_id |
| | 107 | * **Attributes:** |
| | 108 | * profile_created_at |
| | 109 | * user_id (Foreign Key) |
| | 110 | * username |
| | 111 | * has_fs_own |
| | 112 | * has_fs_stored |
| | 113 | |
| | 114 | UserProfileLog |
| | 115 | |
| | 116 | * **Primary Key (PK):** log_id |
| | 117 | * **Attributes:** |
| | 118 | * change_description |
| | 119 | * profile_id (Foreign Key) |
| | 120 | * changed_at |
| | 121 | |
| | 122 | ==== Report Subtypes ==== |
| | 123 | |
| | 124 | AcademicReport |
| | 125 | * **Primary Key (PK):** report_id (inherited) |
| | 126 | * **Additional Attributes:** |
| | 127 | * field |
| | 128 | * description |
| | 129 | |
| | 130 | CriminalReport |
| | 131 | |
| | 132 | * **Primary Key (PK):** report_id (inherited) |
| | 133 | * **Additional Attributes:** |
| | 134 | * location |
| | 135 | * resolved |
| | 136 | * from_type |
| | 137 | |
| | 138 | MedicalReport |
| | 139 | |
| | 140 | * **Primary Key (PK):** report_id (inherited) |
| | 141 | * **Additional Attributes:** |
| | 142 | * doctor_surname |
| | 143 | * next_control_date |
| | 144 | |
| | 145 | EmploymentReport |
| | 146 | |
| | 147 | * **Primary Key (PK):** report_id (inherited) |
| | 148 | * **Additional Attributes:** |
| | 149 | * position_description |
| | 150 | * start_date |
| | 151 | * end_date |
| | 152 | * income_per_month |
| | 153 | |
| | 154 | ExportLog |
| | 155 | |
| | 156 | * **Primary Key (PK):** export_id |
| | 157 | * **Additional Attributes:** |
| | 158 | * export_date |
| | 159 | * export_format |
| | 160 | * filter_summary |
| | 161 | * file_name |
| | 162 | * session_id (Foreign Key) |