id(); $table->timestamps(); $table->string('name'); $table->text('content')->nullable(); $table->foreignIdFor(User::class); $table->string('todoable_type')->nullable(); $table->integer('todoable_id')->nullable(); $table->date('due_date')->nullable(); $table->date('done_date')->nullable(); $table->date('follow_up')->nullable(); $table->boolean('review')->nullable(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('todos'); } };