some more scaffolding
This commit is contained in:
@@ -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();
|
||||
});
|
||||
42
database/schema/airlines.json
Normal file
42
database/schema/airlines.json
Normal 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
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user