Add personal application fields to members

This commit is contained in:
2026-01-25 05:52:40 +08:00
parent 65de7d9019
commit c2f0047ed9
10 changed files with 729 additions and 27 deletions

View File

@@ -0,0 +1,48 @@
<?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::table('members', function (Blueprint $table) {
$table->string('member_number', 50)->unique()->nullable();
$table->date('birth_date')->nullable();
$table->string('gender', 20)->nullable();
$table->string('occupation', 120)->nullable();
$table->string('employer', 255)->nullable();
$table->string('job_title', 120)->nullable();
$table->date('applied_at')->nullable();
$table->string('phone_home', 50)->nullable();
$table->string('phone_fax', 50)->nullable();
$table->string('identity_other_text', 255)->nullable();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('members', function (Blueprint $table) {
$table->dropColumn([
'member_number',
'birth_date',
'gender',
'occupation',
'employer',
'job_title',
'applied_at',
'phone_home',
'phone_fax',
'identity_other_text',
]);
});
}
};