EZMY - Database Design v.1
EZMY - Database Design v.1
PK job_type_id int NOT NULL PK job_id int NOT NULL PK job_requirement_id int NOT NULL PK course_id int NOT NULL PK content_id int NOT NULL
job_type_name varchar(255) NOT NULL job_name varchar(255) NOT NULL job_requirement_name varchar(255) NOT NULL title varchar(255) NOT NULL title varchar(255) NOT NULL
created_at timestamp NULL job_description text NULL FK job_vacancy_id int NOT NULL thumbnail varchar(255) NOT NULL type enum('video','pdf','quiz','post-test','pre-test','forum') NOT NULL
updated_at timestamp NULL job_address text NULL created_at timestamp NULL description text NOT NULL url varchar(255) NULL
job_phone varchar(255) NULL updated_at timestamp NULL certificate_completion varchar(255) NOT NULL status boolean default(false) NOT NULL
job_status enum('active', 'expired', 'inactive') NULL certificate_excellence varchar(255) NOT NULL FK course_id int NOT NULL
job_industries
reviews
job_min_salary varchar(255) NULL price int NOT NULL created_at timestamp NULL
PK job_industry_id int NOT NULL
PK review_id int NOT NULL
job_max_salary varchar(255) NULL discount int NULL updated_at timestamp NULL
job_industry_name varchar(255) NOT NULL
title varchar(255) NOT NULL
job_quota int NULL status boolean default(false) NOT NULL
created_at timestamp NULL
body text NOT NULL course_categories
FK job_type_id int NOT NULL rating double NULL
updated_at timestamp NULL
like int NULL PK id int NOT NULL
FK job_industry_id int NOT NULL created_at timestamp NULL
unlike int NULL FK course_id int NOT NULL
FK job_country_id int NOT NULL updated_at timestamp NULL
job_owners
FK course_id int NOT NULL FK category_id int NOT NULL
FK job_owner_id int NOT NULL
PK job_owner_id int NOT NULL
FK user_id int NOT NULL user_courses created_at timestamp NULL
created_at timestamp NULL
job_name varchar(255) NOT NULL
created_at timestamp NULL PK id int NOT NULL updated_at timestamp NULL
updated_at timestamp NULL
created_at timestamp NULL
updated_at timestamp NULL FK course_id int NOT NULL
updated_at timestamp NULL
FK user_id int NOT NULL
categories
created_at timestamp NULL
PK category_id int NOT NULL
updated_at timestamp NULL
religions users countries name varchar(255) NOT NULL
PK religion_id int NOT NULL PK user_id int NOT NULL PK country_id int NOT NULL status boolean default(false) NOT NULL
user_course_certificates
religion_name varchar(255) NOT NULL id_card int NOT NULL country_name varchar(255) NOT NULL created_at timestamp NULL
PK id int NOT NULL
created_at timestamp NULL family_card int NULL created_at timestamp NULL updated_at timestamp NULL
url varchar(255) NOT NULL
updated_at timestamp NULL fullname varchar(255) NULL updated_at timestamp NULL
FK course_id int NOT NULL
username varchar(255) NOT NULL quizzes questions
roles provinces FK user_id int NOT NULL
email varchar(255) NULL PK quiz_id int NOT NULL PK question_id int NOT NULL
PK role_id int NOT NULL PK province_id int NOT NULL created_at timestamp NULL
password varchar(255) NOT NULL title varchar(255) NOT NULL number int NOT NULL
role_name varchar(255) NOT NULL country_code int NOT NUL updated_at timestamp NULL
phone_number varchar(255) NULL min_score double NOT NULL question text NOT NULL
guard_name varchar(255) NOT NULL province_name varchar(255) NOT NULL
gender enum('male', 'female') NULL duration int NOT NULL shuffle boolean default(true) NOT NULL
created_at timestamp NULL created_at timestamp NULL course_progress
born_place varchar(255) NULL shuffle boolean default(true) NOT NULL FK quiz_id int NOT NULL
updated_at timestamp NULL updated_at timestamp NULL PK id int NOT NULL
born_date date NULL type enum('quiz','pre-test','post-test') NOT NULL created_at timestamp NULL
PK user_exp_id int NOT NULL PK city_id int NOT NULL score double NOT NULL
photo varchar(255) NULL created_at timestamp NULL
FK user_id int NOT NULL province_code int NOT NULL correct_answer int NOT NULL answers
photo_url varchar(255) NULL updated_at timestamp NULL
company varchar(255) NOT NULL city_name varchar(255) NOT NULL complete boolean default(false) NOT NULL PK answer_id int NOT NULL
email_verfied_at timestamp NULL
position varchar(255) NOT NULL created_at timestamp NULL FK quiz_id int NULL number int NOT NULL
FK religion_id int NOT NULL
job_description text NOT NULL updated_at timestamp NULL FK content_id int NULL answer text NOT NULL
FK document_id int NOT NULL
salary int NOT NULL FK user_id int NOT NULL correct_answer boolean NOT NULL
FK family_id int NULL sectors
start_date date NOT NULL created_at timestamp NULL FK question_id int NOT NULL
FK destination_country_id int NOT NULL PK sector_id int NOT NULL
end_date date NOT NULL created_at timestamp NULL created_at timestamp NULL
FK country_id int NOT NULL city_code int NOT NULL
currently_work boolean NULL updated_at timestamp NULL updated_at timestamp NULL
FK province_id int NOT NULL sector_name varchar(255) NOT NULL
country_id int NOT NULL
FK city_id int NOT NULL created_at timestamp NULL
created_at timestamp NULL forums
FK sector_id int NOT NULL updated_at timestamp NULL
updated_at timestamp NULL PK forum_id int NOT NULL
FK village_id int NOT NULL
villages
title varchar(255) NOT NULL
FK education_id int NOT NULL
PK village_id int NOT NULL
body text NOT NULL
address text NULL
sector_code int NOT NULL
like int NULL
post_code varchar(255) NULL
village_name varchar(255) NOT NULL
unlike int NULL
created_at timestamp NULL
created_at timestamp NULL
FK content_id int NOT NULL
updated_at timestamp NULL
updated_at timestamp NULL
FK user_id int NOT NULL