60 lines
1.2 KiB
PHP
60 lines
1.2 KiB
PHP
<?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'
|
|
];
|
|
}
|