Skip to content

Instantly share code, notes, and snippets.

@hariadi
Last active May 23, 2016 16:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hariadi/709ce461f8c447914aaf577427f8bfa7 to your computer and use it in GitHub Desktop.
Save hariadi/709ce461f8c447914aaf577427f8bfa7 to your computer and use it in GitHub Desktop.
eluarnegara db schema
php artisan generate:migration create_users_table --fields="ic:string,name:string,email:string:unique,organization_id:integer:nullable,phone:string:nullable,position:string:nullable,grade:smallinteger:nullable,appointment_at,appointment_at_psd,"
php artisan generate:migration create_organizations_table --fields="parent_id:integer:nullable,name:string,director_id:integer,"
php artisan generate:migration create_applications_table --fields="user_id:integer,title:string,purpose:text:nullable,country:string:nullable,going_at,return_at,options:text:nullable,status:default('false'):index,approved_by:integer:index,"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment