Files
cunkebao_v3/Server/application/common/model/Attachment.php

23 lines
458 B
PHP
Raw Normal View History

<?php
2025-04-16 16:10:37 +08:00
namespace app\common\model;
use think\Model;
class Attachment extends Model
{
// 设置表名
protected $name = 'attachments';
// 自动写入时间戳
protected $autoWriteTimestamp = true;
protected $createTime = 'createTime';
protected $updateTime = 'updateTime';
2025-04-29 11:04:41 +08:00
protected $defaultSoftDelete = 0;
2025-06-12 11:00:49 +08:00
public static function addAttachment($attachmentData)
{
return self::create($attachmentData);
}
}