添加事项模版功能

This commit is contained in:
meimei
2025-04-15 11:37:51 +08:00
parent 24c924dddb
commit 5073ffccba
24 changed files with 1172 additions and 0 deletions

View File

@@ -0,0 +1,56 @@
<?php
namespace app\admin\model;
use think\Model;
class Mattertemplatecategorization extends Model
{
// 表名
protected $name = 'mattertemplatecategorization';
// 自动写入时间戳字段
protected $autoWriteTimestamp = false;
// 定义时间戳字段名
protected $createTime = false;
protected $updateTime = false;
protected $deleteTime = false;
// 追加属性
protected $append = [
];
public function mattertemplate()
{
return $this->belongsTo('Mattertemplate', 'mattertemplate_id', 'id', [], 'LEFT')->setEagerlyType(0);
}
public function firmstoreprojectsone()
{
return $this->belongsTo('Firmstoreprojectsone', 'firmstoreprojectsone_id', 'id', [], 'LEFT')->setEagerlyType(0);
}
public function firmstoreprojectstwo()
{
return $this->belongsTo('Firmstoreprojectstwo', 'id', 'id', [], 'LEFT')->setEagerlyType(0);
}
}