feat(user): menambahkan kolom entry_date ke table users dan mengubah tipe data untuk dob dari dateTime menjadi date

This commit is contained in:
Yoga Pangestu 2024-11-24 16:05:54 +07:00
parent 5f17beaab1
commit 1a020b3669
2 changed files with 2 additions and 1 deletions

View File

@ -41,6 +41,7 @@ public function up(): void
$table->decimal('base_salary', 10, 2)->default(0.00);
$table->text('sop')->nullable();
$table->enum('is_active', ['1', '0'])->default('1');
$table->date('entry_date');
$table->timestamps();
$table->softDeletes();
});

View File

@ -16,7 +16,7 @@ public function up(): void
$table->foreignId('user_id')->constrained()->cascadeOnDelete();
$table->string('full_name');
$table->string('pob', 75);
$table->dateTime('dob');
$table->date('dob');
$table->string('contact_number', 15);
$table->text('address');
$table->enum('gender', ['1', '2'])->comment('1:Laki-Laki 2:Perempuan');