Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JAA DB Migrations #3

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Conversation

eltonina
Copy link

@eltonina eltonina commented Sep 8, 2024

Resultado final del modelo de datos:

erDiagram
    Candidate {
        Int id PK
        String firstName
        String lastName
        String email
        String phone
        String address
    }
    Education {
        Int id PK
        String institution
        String title
        DateTime startDate
        DateTime endDate
        Int candidateId FK
    }
    WorkExperience {
        Int id PK
        String company
        String position
        String description
        DateTime startDate
        DateTime endDate
        Int candidateId FK
    }
    Resume {
        Int id PK
        String filePath
        String fileType
        DateTime uploadDate
        Int candidateId FK
    }
    Application {
        Int id PK
        Int position_id FK
        Int candidate_id FK
        DateTime application_date
        String status
        String notes
    }
    Position {
        Int id PK
        String title
        String description
        Int interview_flow_id FK
    }
    InterviewFlow {
        Int id PK
        String description
    }
    InterviewStep {
        Int id PK
        Int interview_flow_id FK
        Int interview_type_id FK
        String name
        Int order_index
    }
    InterviewType {
        Int id PK
        String name
        String description
    }
    Interview {
        Int id PK
        Int application_id FK
        Int interview_step_id FK
        Int employee_id FK
        DateTime interview_date
        String result
        Int score
        String notes
    }
    Employee {
        Int id PK
        Int companyId FK
        String name
        String email
        String role
        Boolean isActive
    }
    Company {
        Int id PK
        String name
        String address
    }

    Candidate ||--o{ Education : has
    Candidate ||--o{ WorkExperience : has
    Candidate ||--o{ Resume : has
    Candidate ||--o{ Application : applies
    Application ||--o| Position : for
    Application ||--o| Candidate : by
    Position ||--o| InterviewFlow : uses
    InterviewFlow ||--o{ InterviewStep : contains
    InterviewStep ||--o| InterviewType : of
    Interview ||--o| Application : for
    Interview ||--o| InterviewStep : at
    Interview ||--o| Employee : conducted_by
    Employee ||--o| Company : works_for
    Company ||--o{ Position : offers
Loading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant