diff --git a/app/Models/Aturan.php b/app/Models/Aturan.php new file mode 100644 index 0000000..6cf5d0f --- /dev/null +++ b/app/Models/Aturan.php @@ -0,0 +1,11 @@ +id('id_gejala'); + $table->string('kode_gejala'); + $table->string('gejala'); + + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('gejalas'); + } +}; diff --git a/database/migrations/2024_02_13_015750_create_aturan_table.php b/database/migrations/2024_02_13_015750_create_aturan_table.php new file mode 100644 index 0000000..c5284c6 --- /dev/null +++ b/database/migrations/2024_02_13_015750_create_aturan_table.php @@ -0,0 +1,27 @@ +id('id_aturan'); + + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('aturans'); + } +}; diff --git a/database/migrations/2024_02_13_015937_create_penyakit_table.php b/database/migrations/2024_02_13_015937_create_penyakit_table.php new file mode 100644 index 0000000..5f81b06 --- /dev/null +++ b/database/migrations/2024_02_13_015937_create_penyakit_table.php @@ -0,0 +1,31 @@ +id('id_penyakit'); + $table->string('kode_penyakit'); + $table->string('nama_penyakit'); + $table->string('deskripsi_penyakit'); + $table->string('solusi_penyakit'); + + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('penyakit'); + } +};