mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-05 04:03:26 +00:00
Started work on recurring transactions controller. [skip ci]
This commit is contained in:
@@ -18,10 +18,15 @@ class CreateRecurringTransactionsTable extends Migration {
|
||||
$table->timestamps();
|
||||
$table->integer('user_id')->unsigned();
|
||||
$table->string('name',50);
|
||||
$table->string('match',255);
|
||||
$table->decimal('amount_max',10,2);
|
||||
$table->decimal('amount_min',10,2);
|
||||
$table->date('date');
|
||||
$table->boolean('active');
|
||||
|
||||
$table->boolean('automatch');
|
||||
$table->enum('repeat_freq', ['daily', 'weekly','monthly','quarterly','half-year','yearly']);
|
||||
$table->smallInteger('skip')->unsigned();
|
||||
|
||||
$table->unique(['user_id','name']);
|
||||
|
||||
|
@@ -17,6 +17,7 @@ class RecurringTransactionsToComponents extends Migration {
|
||||
$table->increments('id');
|
||||
$table->integer('component_id')->unsigned();
|
||||
$table->integer('recurring_transaction_id')->unsigned();
|
||||
$table->boolean('optional');
|
||||
|
||||
// link components with component_id
|
||||
$table->foreign('component_id')
|
||||
|
Reference in New Issue
Block a user