diff --git a/src/lib/server/db/schema.ts b/src/lib/server/db/schema.ts index 642e305..68f9680 100644 --- a/src/lib/server/db/schema.ts +++ b/src/lib/server/db/schema.ts @@ -215,6 +215,23 @@ export const employees = pgTable('employees', { taxId: text('tax_id'), bankName: text('bank_name'), bankAccount: text('bank_account'), + // Personal + dateOfBirth: date('date_of_birth'), + gender: text('gender'), + nationality: text('nationality'), + maritalStatus: text('marital_status'), + // Address (Thai-specific) + addressLine1: text('address_line_1'), + addressLine2: text('address_line_2'), + subdistrict: text('subdistrict'), + district: text('district'), + province: text('province'), + postalCode: text('postal_code'), + country: text('country'), + // Emergency contact + emergencyContactName: text('emergency_contact_name'), + emergencyContactPhone: text('emergency_contact_phone'), + emergencyContactRelationship: text('emergency_contact_relationship'), isActive: boolean('is_active').notNull().default(true), deletedAt: timestamp('deleted_at', { withTimezone: true }), createdAt: timestamp('created_at', { withTimezone: true }).notNull().defaultNow(),