feat: GeneralAccessLog table 준비
- general 테이블에서 유저 접속과 관련한 로그만 분리 - ip 정보는 api 접속부에서 기록하므로 제외
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
namespace sammo\DTO;
|
||||
|
||||
use LDTO\Attr\Convert;
|
||||
use LDTO\Attr\NullIsUndefined;
|
||||
use LDTO\Attr\RawName;
|
||||
use LDTO\Converter\DateTimeConverter;
|
||||
|
||||
class GeneralAccessLog extends \LDTO\DTO
|
||||
{
|
||||
public function __construct(
|
||||
#[NullIsUndefined]
|
||||
public ?int $id,
|
||||
|
||||
#[RawName('general_id')]
|
||||
public int $generalID,
|
||||
|
||||
#[RawName('user_id')]
|
||||
public ?int $userID,
|
||||
|
||||
#[RawName('nation_id')]
|
||||
public int $nationID,
|
||||
|
||||
#[RawName('last_refresh')]
|
||||
#[Convert(DateTimeConverter::class)]
|
||||
public \DateTimeImmutable $lastRefresh,
|
||||
|
||||
#[RawName('last_connect')]
|
||||
#[Convert(DateTimeConverter::class)]
|
||||
public \DateTimeImmutable $lastConnect,
|
||||
|
||||
#[RawName('login_total')]
|
||||
public int $loginTotal,
|
||||
|
||||
public int $refresh,
|
||||
|
||||
#[RawName('refresh_total')]
|
||||
public int $refreshTotal,
|
||||
) {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user