From 2101fe66608297228af286031910c33219397b33 Mon Sep 17 00:00:00 2001 From: FahrezaDaffa93 <117092951+FahrezaDaffa93@users.noreply.github.com> Date: Tue, 13 Feb 2024 09:05:26 +0700 Subject: [PATCH] push controller and model --- app/Models/Aturan.php | 11 +++++++ app/Models/Gejala.php | 11 +++++++ app/Models/Penyakit.php | 11 +++++++ .../2024_02_13_014922_create_gejala_table.php | 29 +++++++++++++++++ .../2024_02_13_015750_create_aturan_table.php | 27 ++++++++++++++++ ...024_02_13_015937_create_penyakit_table.php | 31 +++++++++++++++++++ 6 files changed, 120 insertions(+) create mode 100644 app/Models/Aturan.php create mode 100644 app/Models/Gejala.php create mode 100644 app/Models/Penyakit.php create mode 100644 database/migrations/2024_02_13_014922_create_gejala_table.php create mode 100644 database/migrations/2024_02_13_015750_create_aturan_table.php create mode 100644 database/migrations/2024_02_13_015937_create_penyakit_table.php 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'); + } +};