| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <?php
- namespace App\Module\User\Models;
- use UCore\ModelCore;
- use App\Module\User\Enums\ACTION_STATUS;
- use App\Module\User\Enums\ACTION_TYPE;
- /**
- *
- * 用户操作记录
- *
- * field start
- * @property int $id
- * @property int $admin_id 做出操作的管理员ID
- * @property int $user_id 用户ID
- * @property \App\Module\User\Enums\ACTION_TYPE $type 类型
- * @property string $desc 描述
- * @property int $exp_time 有效期
- * @property int $re_id 关联操作-ID
- * @property string $re_type 关联操作-类型
- * @property \Carbon\Carbon $created_at
- * @property \Carbon\Carbon $updated_at
- * @property \Carbon\Carbon $deleted_at
- * @property \App\Module\User\Enums\ACTION_STATUS $status 状态
- * field end
- */
- class UserAction extends ModelCore
- {
- protected $casts = [
- 'type' => ACTION_TYPE::class,
- 'status' => ACTION_STATUS::class
- ];
- // attrlist start
- protected $fillable = [
- 'id',
- 'admin_id',
- 'user_id',
- 'type',
- 'desc',
- 'exp_time',
- 're_id',
- 're_type',
- 'status',
- ];
- // attrlist end
- }
|