| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <?php
- namespace App\Module\System\Models;
- use UCore\ModelCore;
- use Illuminate\Database\Eloquent\SoftDeletes;
- /**
- * 后台操作日志
- *
- * Class AdminActionlog
- *
- * field start
- * @property int $id
- * @property string $type1
- * @property string $unid
- * @property int $admin_id 操作的Admin ID
- * @property string $object_class 操作对象
- * @property string $url 网址
- * @property string $before 操作之前
- * @property string $after 操作之后
- * @property int $status 状态
- * @property string $p1 参数1
- * @property \Carbon\Carbon $updated_at 更新 时间戳
- * @property \Carbon\Carbon $created_at 创建 时间戳
- * field end
- *
- */
- class AdminActionlog extends ModelCore
- {
- protected $casts = [
- 'before' => 'array',
- 'after' => 'array'
- ];
- public function admin()
- {
- return $this->hasOne(Administrator::class, 'id', 'admin_id');
- }
- }
|