This commit is contained in:
ct
2025-06-13 13:51:16 +08:00
parent 63a516b124
commit 248a717898
4 changed files with 338 additions and 1 deletions

View File

@@ -0,0 +1,48 @@
<?php
/**
* Created by Reliese Model.
*/
namespace App\Models;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Pgvector\Laravel\Vector;
/**
* Class BackgroundMedia
*
* @property int $id
* @property string $list_type
* @property string $area
* @property string $location_name
* @property string $status
* @property uuid|null $media_uuid
* @property string|null $media_url
* @property Vector|null $embedding
* @property Carbon|null $created_at
* @property Carbon|null $updated_at
* @property string|null $deleted_at
*/
class BackgroundMedia extends Model
{
use SoftDeletes;
protected $table = 'background_medias';
protected $casts = [
'embedding' => Vector::class,
];
protected $fillable = [
'list_type',
'area',
'location_name',
'status',
'media_uuid',
'media_url',
'embedding',
];
}