This commit is contained in:
2026-08-19 19:56:47 +08:00
parent 07a24c5297
commit d3866efcd8
11 changed files with 193 additions and 23 deletions

View File

@@ -16,7 +16,6 @@ class Tickets extends Model
protected $createTime = 'create_time';
protected $updateTime = 'update_time';
# 定义字段类型
protected $type = [
'id' => 'integer',
@@ -30,10 +29,17 @@ class Tickets extends Model
'remark' => 'string',
'lock_time' => 'integer',
'create_time' => 'integer',
'update_time' => 'integer',
'update_time' => 'integer',
];
# 定义状态常量
const STATUS_UNASSIGNED = 0;
const STATUS_PROCESSING = 1;
const STATUS_COMPLETED = 2;
const STATUS_CLOSED = 3;
/*
时间戳获取器
*/

View File

@@ -12,6 +12,10 @@ class User extends Model
{
protected $table = 'users';
protected $type = [
'can_view_all_tickets' => 'boolean',
];
public function company(){
return $this->belongsTo(Companys::class,'company_id','id');
}