This commit is contained in:
ct
2025-06-08 04:39:38 +08:00
parent 862a6bb19e
commit 8d6e86ebb3
40 changed files with 838 additions and 1601 deletions

59
app/Models/MemeMedia.php Normal file
View File

@@ -0,0 +1,59 @@
<?php
/**
* Created by Reliese Model.
*/
namespace App\Models;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Pgvector\Laravel\HasNeighbors;
use Pgvector\Laravel\Vector;
/**
* Class MemeMedia
*
* @property int $id
* @property string $type
* @property string $sub_type
* @property string $name
* @property string $description
* @property string $keywords
* @property uuid $media_1_uuid
* @property uuid|null $media_2_uuid
* @property string $media_1_mime_type
* @property string|null $media_2_mime_type
* @property USER-DEFINED|null $embedding
* @property Carbon|null $created_at
* @property Carbon|null $updated_at
* @property string|null $deleted_at
*
* @package App\Models
*/
class MemeMedia extends Model
{
use SoftDeletes, HasNeighbors;
protected $table = 'meme_medias';
protected $casts = [
'media_1_uuid' => 'uuid',
'media_2_uuid' => 'uuid',
'embedding' => Vector::class,
];
protected $fillable = [
'type',
'sub_type',
'name',
'description',
'keywords',
'media_1_uuid',
'media_2_uuid',
'media_1_mime_type',
'media_2_mime_type',
'embedding'
];
}