mirror of
https://github.com/10h30/MoveMate.git
synced 2026-07-18 22:23:28 +09:00
Implemented TaskController
This commit is contained in:
@@ -15,8 +15,8 @@ return new class extends Migration
|
||||
{
|
||||
Schema::create('tasks', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignIdFor(User::class);
|
||||
$table->foreignIdFor(Category::class);
|
||||
$table->foreignIdFor(User::class)->constrained()->cascadeOnDelete();
|
||||
$table->foreignIdFor(Category::class)->constrained()->cascadeOnDelete();
|
||||
$table->string('name');
|
||||
$table->longText('description');
|
||||
$table->string('location');
|
||||
|
||||
Reference in New Issue
Block a user