This commit is contained in:
frederikpyt
2020-08-17 15:06:55 +02:00
17 changed files with 428 additions and 109 deletions
@@ -26,7 +26,7 @@ class CreateUsersTable extends Migration
$table->string('email')->unique();
$table->timestamp('email_verified_at')->nullable();
$table->string('password');
$table->integer("phone")->unique();
$table->string("phone", 8)->unique();
$table->rememberToken();
$table->foreignId("resource_id")->nullable()->constrained("resources", "id");
$table->boolean("wants_emails")->default(true);
@@ -17,9 +17,11 @@ class CreateMenuPlans extends Migration
{
Schema::create('menu_plans', function (Blueprint $table) {
$table->id();
$table->string('week', 2);
$table->longText('menu');
$table->unique('week');
$table->integer('week')->unique();
$table->string('monday', 255);
$table->string('tuesday', 255);
$table->string('wednesday', 255);
$table->string('thursday', 255);
$table->timestamps();
//$table->text('description');
});