id(); $table->string("name"); $table->text("annotation")->nullable(); $table->string("isbn")->nullable(); $table->year("year")->nullable(); $table->smallInteger("pagecount")->unsigned()->nullable(); $table->foreignId("author_id")->constrained(); $table->timestamps(); $table->softDeletes(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('books'); } };