Changes between Version 4 and Version 5 of ERModel
- Timestamp:
- 02/06/25 16:45:14 (2 weeks ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ERModel
v4 v5 1 [[Image(https://develop.finki.ukim.mk/projects/agency-os/raw-attachment/wiki/ERModel/AgencyOS .webp)]]1 [[Image(https://develop.finki.ukim.mk/projects/agency-os/raw-attachment/wiki/ERModel/AgencyOS%20(1).webp)]] 2 2 3 3 = Entities … … 8 8 Attributes: 9 9 - company_id: Numeric, primary key. 10 - name: Text, required.10 - company_name: Text, required. 11 11 - address: Text, optional. 12 12 - vat: Text, optional. … … 20 20 Attributes: 21 21 - user_id: Numeric, primary key. 22 - name: Text, required.23 - email: Text, unique, required.22 - user_name: Text, required. 23 - user_email: Text, unique, required. 24 24 - password: Text, required. 25 25 - role: Enum (Admin, HR, Finance Manager), required. … … 33 33 Attributes: 34 34 - employee_id: Numeric, primary key. 35 - name: Text, required.36 - em ail: Text, unique, required.35 - employee_name: Text, required. 36 - employee_email: Text, unique, required. 37 37 - status: Enum (Active, Inactive, Terminated), required. 38 38 - iban: Text, optional. … … 50 50 Attributes: 51 51 - candidate_id: Numeric, primary key. 52 - name: Text, required.53 - email: Text, unique, required.52 - candidate_name: Text, required. 53 - candidate_email: Text, unique, required. 54 54 - status: Enum (Applied, Interview, Offered, Rejected), required. 55 55 - cv: Text, optional (file path or URL). … … 65 65 Attributes: 66 66 - client_id: Numeric, primary key. 67 - name: Text, required.68 - representative: Text, required.69 - email: Text, unique, required.67 - client_name: Text, required. 68 - client_representative: Text, required. 69 - client_email: Text, unique, required. 70 70 - phone: Text, optional. 71 71 - address: Text, optional. … … 118 118 = Relations 119 119 120 - Company ↔ User : A company has many users; each user belongs to one company.121 - Company ↔ Employee : A company has many employees; each employee belongs to one company.122 - Company ↔ Candidate : A company has many candidates; each candidate belongs to one company.123 - Company ↔ Client : A company has many clients; each client belongs to one company.124 - Company ↔ Invoice : A company generates many invoices; each invoice belongs to one company.125 - Client ↔ Invoice : A client can have many invoices; each invoice is addressed to one client.126 - Invoice ↔ LineItem : An invoice has multiple line items; each line item belongs to one invoice.127 - Company ↔ EmailTemplate : A company has multiple email templates; each template belongs to one company.120 - Company ↔ User (company_user): A company has many users; each user belongs to one company. 121 - Company ↔ Employee (company_employee): A company has many employees; each employee belongs to one company. 122 - Company ↔ Candidate (company_candidate): A company has many candidates; each candidate belongs to one company. 123 - Company ↔ Client (company_client): A company has many clients; each client belongs to one company. 124 - Company ↔ Invoice (company_invoice): A company generates many invoices; each invoice belongs to one company. 125 - Client ↔ Invoice (client_invoice): A client can have many invoices; each invoice is addressed to one client. 126 - Invoice ↔ LineItem (invoice_lineitem): An invoice has multiple line items; each line item belongs to one invoice. 127 - Company ↔ EmailTemplate (company_emailtemplate): A company has multiple email templates; each template belongs to one company.