some more scaffolding

This commit is contained in:
Nabeel Shahzad
2017-06-08 13:54:12 -05:00
parent 106d6a6798
commit 28d3f4fec3
6 changed files with 66 additions and 21 deletions

View File

@@ -15,9 +15,21 @@ class CreateUsersTable extends Migration
{
Schema::create('users', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->string('first_name');
$table->string('last_name');
$table->string('email')->unique();
$table->string('password');
$table->string('code');
$table->string('location');
$table->string('hub');
$table->unsignedBigInteger('flights');
$table->float('hours');
$table->float('pay');
$table->boolean('confirmed');
$table->boolean('retired');
$table->dateTime('last_pirep');
$table->dateTime('created_at');
$table->dateTime('updated_at');
$table->rememberToken();
$table->timestamps();
});

View File

@@ -0,0 +1,42 @@
[
{
"name": "id",
"dbType": "increments",
"htmlType": "",
"validations": "",
"searchable": false,
"fillable": false,
"primary": true,
"inForm": false,
"inIndex": false
},
{
"name": "code",
"dbType": "string",
"htmlType": "text",
"validations": "required",
"searchable": true
},
{
"name": "created_at",
"dbType": "timestamp",
"htmlType": "",
"validations": "",
"searchable": false,
"fillable": false,
"primary": false,
"inForm": false,
"inIndex": false
},
{
"name": "updated_at",
"dbType": "timestamp",
"htmlType": "",
"validations": "",
"searchable": false,
"fillable": false,
"primary": false,
"inForm": false,
"inIndex": false
}
]