workend on update and create employee functions + validator
This commit is contained in:
@@ -12,9 +12,9 @@ export default class Employees extends BaseSchema {
|
||||
*/
|
||||
table.timestamp('created_at', { useTz: true })
|
||||
table.timestamp('updated_at', { useTz: true })
|
||||
table.string('first_name ')
|
||||
table.string('first_name').notNullable()
|
||||
table.string('last_name')
|
||||
table.string('shorthand').unique()
|
||||
table.string('shorthand').unique().notNullable()
|
||||
table.string('email')
|
||||
table.string('phone')
|
||||
table.string('mobile')
|
||||
|
||||
Reference in New Issue
Block a user