Homparty v1.0

This commit is contained in:
Kevin Adametz 2020-12-17 23:02:22 +01:00
parent ac0d5b781e
commit c73299e52e
40 changed files with 1234 additions and 908 deletions

View file

@ -58,6 +58,7 @@ class CreateShoppingUsersTable extends Migration
$table->boolean('subscribed')->default(false);
$table->text('notice')->default(false);
$table->unsignedInteger('homeparty_id')->nullable();
$table->char('mode', 4)->nullable();

View file

@ -23,6 +23,7 @@ class CreateShoppingOrdersTable extends Migration
$table->unsignedInteger('user_shop_id');
$table->unsignedInteger('member_id')->nullable();
$table->unsignedInteger('homeparty_id')->nullable();
$table->unsignedTinyInteger('payment_for')->nullable();

View file

@ -19,6 +19,7 @@ class CreateShoppingOrderItemsTable extends Migration
$table->unsignedInteger('shopping_order_id');
$table->string('row_id', 40)->nullable();
$table->unsignedInteger('product_id');
$table->unsignedInteger('homeparty_id')->nullable();
$table->unsignedTinyInteger('comp')->nullable();

View file

@ -31,6 +31,9 @@ class CreateHomepartiesTable extends Migration
$table->string('token')->nullable();
$table->boolean('token_active')->default(true);
$table->text('settings')->nullable();
$table->text('order')->nullable();
$table->timestamps();
});
}

View file

@ -54,6 +54,10 @@ class CreateHomepartyUsersTable extends Migration
$table->text('notice')->nullable();
$table->char('mode', 4)->nullable();
$table->char('delivery', 6)->nullable();
$table->text('settings')->nullable();
$table->timestamps();
$table->softDeletes();