This commit is contained in:
Your Name
2026-07-22 10:18:59 +08:00
parent 2530ddada6
commit 0fb03d0bca
618 changed files with 19445 additions and 3 deletions
+23
View File
@@ -0,0 +1,23 @@
<?php
namespace app\model;
use think\Model;
class Conversation extends Model
{
protected $name = 'conversations';
protected $autoWriteTimestamp = true;
protected $createTime = 'created_at';
protected $updateTime = 'updated_at';
public function user()
{
return $this->belongsTo(User::class, 'user_id');
}
public function aiModel()
{
return $this->belongsTo(AiModel::class, 'model_id');
}
}