Download app/Models/ChatCategory.php from pnacorp/magicai: direct link, hf CLI and curl.
- Browser
- Download file 381 Bytes
-
https://huggingface.co/pnacorp/magicai/resolve/main/app/Models/ChatCategory.php
- Command line
-
hf download hf://pnacorp/magicai/app/Models/ChatCategory.php
-
curl -L -o ChatCategory.php https://huggingface.co/pnacorp/magicai/resolve/main/app/Models/ChatCategory.php
381 Bytes
| namespace App\Models; | |
| use Illuminate\Database\Eloquent\Model; | |
| use Illuminate\Database\Eloquent\Relations\BelongsTo; | |
| class ChatCategory extends Model | |
| { | |
| protected $table = 'chat_category'; | |
| protected $fillable = [ | |
| 'name', | |
| 'user_id', | |
| ]; | |
| public function user(): BelongsTo | |
| { | |
| return $this->belongsTo(User::class, 'user_id'); | |
| } | |
| } | |