[积分商城]商品管理-优化
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace app\common\model;
|
||||
|
||||
use app\common\model\traits\TimestampInteger;
|
||||
use support\think\Model;
|
||||
|
||||
/**
|
||||
@@ -9,12 +10,11 @@ use support\think\Model;
|
||||
*/
|
||||
class MallItem extends Model
|
||||
{
|
||||
// 表名
|
||||
use TimestampInteger;
|
||||
|
||||
protected $name = 'mall_item';
|
||||
|
||||
// 自动写入时间戳字段
|
||||
protected $autoWriteTimestamp = true;
|
||||
|
||||
protected bool $autoWriteTimestamp = true;
|
||||
|
||||
public function admin(): \think\model\relation\BelongsTo
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user