Better table structure
This commit is contained in:
@@ -17,7 +17,10 @@ class CreateComponentsTable extends Migration {
|
||||
$table->increments('id');
|
||||
$table->string('name');
|
||||
$table->string('description')->nullable()->default(null);
|
||||
$table->tinyInteger('status', 1)->default(1);
|
||||
$table->timestamps();
|
||||
|
||||
$table->index('status');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user