diff --git a/app/Models/Tenants/TenantUserProfile.php b/app/Models/Tenants/TenantUserProfile.php index 4d4763b..12f20c2 100644 --- a/app/Models/Tenants/TenantUserProfile.php +++ b/app/Models/Tenants/TenantUserProfile.php @@ -44,6 +44,7 @@ class TenantUserProfile extends Model 'employee_status', 'manager_user_id', 'json_extra', + 'worker_type', 'profile_photo_path', 'display_name', ]; diff --git a/database/migrations/2026_02_27_000000_add_worker_type_to_tenant_user_profiles_table.php b/database/migrations/2026_02_27_000000_add_worker_type_to_tenant_user_profiles_table.php new file mode 100644 index 0000000..6f8a31e --- /dev/null +++ b/database/migrations/2026_02_27_000000_add_worker_type_to_tenant_user_profiles_table.php @@ -0,0 +1,25 @@ +string('worker_type', 20)->default('employee')->after('employee_status') + ->comment('근로자유형: employee(사원), business_income(사업소득자)'); + $table->index(['tenant_id', 'worker_type'], 'idx_tenant_worker_type'); + }); + } + + public function down(): void + { + Schema::table('tenant_user_profiles', function (Blueprint $table) { + $table->dropIndex('idx_tenant_worker_type'); + $table->dropColumn('worker_type'); + }); + } +};