Started work on recurring transactions controller. [skip ci]

This commit is contained in:
James Cole
2014-08-06 17:02:02 +02:00
parent 5e809633e3
commit 23d69c0dd9
12 changed files with 146 additions and 39 deletions

View File

@@ -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']);

View File

@@ -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')