Add finance controller; morphable expense type so they can be applied to any model #130
This commit is contained in:
@@ -20,7 +20,11 @@ class CreateExpensesTable extends Migration
|
||||
$table->unsignedInteger('amount');
|
||||
$table->unsignedTinyInteger('type');
|
||||
$table->boolean('multiplier')->nullable()->default(0);
|
||||
$table->boolean('active')->nullable()->default(1);
|
||||
$table->boolean('active')->nullable()->default(true);
|
||||
|
||||
# Internal fields are expenses tied to some system object
|
||||
# EG, the airports has an internal expense for gate costs
|
||||
$table->nullableMorphs('expensable');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user