Initial commit: Struktur aplikasi ilycats
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('cats', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('nama_kucing');
|
||||
$table->string('ras')->nullable();
|
||||
$table->enum('jenis_kelamin', ['Jantan', 'Betina']);
|
||||
$table->date('tanggal_lahir')->nullable();
|
||||
$table->string('foto')->nullable();
|
||||
$table->decimal('berat_terakhir', 5, 2)->default(0);
|
||||
$table->string('lokasi')->nullable();
|
||||
$table->string('pic')->nullable();
|
||||
$table->text('riwayat_sakit_terakhir')->nullable(); // Menentukan warna card (Sehat/Sakit)
|
||||
|
||||
// Jadwal rutin
|
||||
$table->date('jadwal_vaksin')->nullable();
|
||||
$table->date('jadwal_obat_cacing')->nullable();
|
||||
$table->date('jadwal_obat_kutu')->nullable();
|
||||
$table->date('jadwal_grooming')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('cats');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user