If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Database Schema for Job Board

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-17-11, 06:10
Spadez Spadez is offline
Registered User
 
Join Date: Nov 2011
Posts: 9
Database Schema for Job Board

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
Reply With Quote
  #2 (permalink)  
Old 11-17-11, 07:16
healdem healdem is online now
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,250
do you really want us to vet your homework
if you have doubts then talk to your peers or lecturer. after all your peers know what you should be designing, your lecturer knows what they are expecting.

the problem of asking for validation of your model here is
..we don't do homework assignments.... we may help if you have a specific problem you are grappling with
..when presented with a problem we try to see the whole picture and woudl look at a datamodel such as you have presented and try to work out why 'stuff' is missing. bear in minds the needs of a datamodel for homework is often radically different to a real word requirement
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
Reply With Quote
  #3 (permalink)  
Old 11-17-11, 07:20
Spadez Spadez is offline
Registered User
 
Join Date: Nov 2011
Posts: 9
I know my question some what stinks of a typical homework question, but you might have to believe me when I say this really isn’t homework. Im 22, I work as an engineer during the day and I really do genuinely want to design my own job board software for my website.

Perhaps a better question if I cant get specific help on this model, is, is there somewhere I can see how a schema *should* be designed, so I can compare it to my own effort.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On