I would like to implement the classes that I made into database,
I have a class like
Class Person {
firstname ;
lastname;
email
etc
}
Class Teacher extends Person {
salary;
graduatedFrom ;
etc ...
hasMany: [classess, experiences] ;
}
Class Student extends Person{
tuitionFee ;
parentName ;
etc ...
}
I am going to use mysql database for this project, Should I create one table named Person and store all information there or should I create different table for each class (like Teacher, Student, etc) ?
note: i am going to implement this using YII Framework and MYSQL database.