Upload beautify
This commit is contained in:
37
app/Models/ArtworkEmbedding.php
Normal file
37
app/Models/ArtworkEmbedding.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
|
||||
final class ArtworkEmbedding extends Model
|
||||
{
|
||||
protected $table = 'artwork_embeddings';
|
||||
|
||||
protected $fillable = [
|
||||
'artwork_id',
|
||||
'model',
|
||||
'model_version',
|
||||
'algo_version',
|
||||
'dim',
|
||||
'embedding_json',
|
||||
'source_hash',
|
||||
'is_normalized',
|
||||
'generated_at',
|
||||
'meta',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'is_normalized' => 'boolean',
|
||||
'generated_at' => 'datetime',
|
||||
'meta' => 'array',
|
||||
];
|
||||
|
||||
public function artwork(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Artwork::class, 'artwork_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user