Hi
Im in the process of designing a job board from scratch. I am new to all of this but one of the things I want to do is make sure I have a good database schema. I customized one I found online which is as follows:
Code:
jobsite_users:
id: ~
username: { type: varchar(255), required: true, index: unique }
password:
jobsite_category:
id: ~
name: { type: varchar(255), required: true, index: unique }
jobsite_job:
id: ~
category_id: { type: integer, foreignTable: jobsite_category, foreignReference: id, required: true }
type: { type: varchar(255) }
company: { type: varchar(255), required: true }
logo: { type: varchar(255) }
url: { type: varchar(255) }
position: { type: varchar(255), required: true }
location: { type: varchar(255), required: true }
description: { type: longvarchar, required: true }
how_to_apply: { type: longvarchar, required: true }
token: { type: varchar(255), required: true, index: unique }
is_public: { type: boolean, required: true, default: 1 }
is_activated: { type: boolean, required: true, default: 0 }
is_premium: { type: boolean, required: true, default: 0 }
email: { type: varchar(255), required: true }
created_at: { type: timestamp, required: true }
Could anyone give me any input on this? Does it seem sensible? I would like to use this as a starting point and integrate "keywords" "industry" filters to the jobs.
Any feedback would be much appreciated as this is my first schema.
James