Initial project import for team collaboration.

Exclude local docs, MCP, and secrets via gitignore.

Made-with: Cursor
This commit is contained in:
taekyoungc
2026-03-25 12:05:33 +09:00
commit 4e557d4be1
153 changed files with 16198 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
<?php
namespace App\Models;
use CodeIgniter\Model;
class MemberApprovalRequestModel extends Model
{
public const STATUS_PENDING = 'pending';
public const STATUS_APPROVED = 'approved';
public const STATUS_REJECTED = 'rejected';
protected $table = 'member_approval_request';
protected $primaryKey = 'mar_idx';
protected $returnType = 'object';
protected $useTimestamps = false;
protected $allowedFields = [
'mb_idx',
'mar_requested_level',
'mar_status',
'mar_request_note',
'mar_reject_reason',
'mar_requested_at',
'mar_requested_by',
'mar_processed_at',
'mar_processed_by',
];
public function getLatestByMember(int $mbIdx): ?object
{
return $this->where('mb_idx', $mbIdx)
->orderBy('mar_idx', 'DESC')
->first();
}
}