wiki:ERdiagram

Version 12 (modified by 221007, 10 hours ago) ( diff )

--

Entity Relationship Diagram

ER дијаграмот ја прикажува структурата на податоците во апликацијата Reportium. Преку него се дефинираат ентитетите, нивните атрибути, како и релациите помеѓу нив. Овој дијаграм служи како основна водилка за дизајнирање на базата на податоци.

No image "er_diagram_reportium.jpg" attached to ERdiagram

Податочни побарувања

Ентитети

Strong Entities

  1. Person
  • Primary Key (PK): person_id
  • Attributes:
    • name
    • surname
    • address
    • gender
    • date_of_birth
    • contact_phone
    • is_alive
    • is_stub
  1. Institution
  • Primary Key (PK): institution_id
  • Attributes:
    • name
    • address
    • type
    • year_established
    • city
  1. Report
  • Primary Key (PK): report_id
  • Attributes:
    • report_type
    • date
    • notes
    • person_id (Foreign Key)
  1. CrimeType
  • Primary Key (PK): crime_type_id
  • Attributes:
    • label
    • severity_level
  1. Diagnosis
  • Primary Key (PK): diagnosis_id
  • Attributes:
    • description
    • therapy
    • severity
    • is_chronic
  1. Doctor
  • Primary Key (PK): doctor_id
  • Attributes:
    • surname
    • years_of_experience
    • specialization
    • name
    • is_active
  1. Role
  • Primary Key (PK): role_id
  • Attributes:
    • role_name
    • description
  1. FilterSession
  • Primary Key (PK): session_id
  • Attributes:
    • filter_description
    • searched_at
    • user_id (Foreign Key)
  1. ReportiumUser
  • Primary Key (PK): reportium_user_id
  • Attributes:
    • password_hash
    • is_active
    • email
    • surname
  1. UserProfile
  • Primary Key (PK): profile_id
  • Attributes:
    • profile_created_at
    • user_id (Foreign Key)
    • username
    • has_fs_own
    • has_fs_stored

Weak Entities

  1. Punishment
  • Primary Key (PK): punishment_id
  • Attributes:
    • value
    • value_unit
    • punishment_type
  1. UserProfileLog
  • Primary Key (PK): log_id
  • Attributes:
    • change_description
    • profile_id (Foreign Key)
    • changed_at
  1. ExportLog
  • Primary Key (PK): export_id
  • Additional Attributes:
    • export_date
    • export_format
    • filter_summary
    • file_name
    • session_id (Foreign Key)

Report Subtypes

  1. AcademicReport
  • Primary Key (PK): report_id (inherited)
  • Additional Attributes:
    • field
    • description
  1. CriminalReport
  • Primary Key (PK): report_id (inherited)
  • Additional Attributes:
    • location
    • resolved
    • from_type
  1. MedicalReport
  • Primary Key (PK): report_id (inherited)
  • Additional Attributes:
    • doctor_surname
    • next_control_date
  1. EmploymentReport
  • Primary Key (PK): report_id (inherited)
  • Additional Attributes:
    • position_description
    • start_date
    • end_date
    • income_per_month

Attachments (1)

Download all attachments as: .zip

Note: See TracWiki for help on using the wiki.