feat: implement AI styling foundation and billing scope rework
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled
tests / ui (push) Has been cancelled

This commit is contained in:
Codex Agent
2026-02-06 20:01:58 +01:00
parent df00deb0df
commit 36bed12ff9
80 changed files with 8944 additions and 49 deletions

View File

@@ -0,0 +1,51 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class AiEditOutput extends Model
{
use HasFactory;
protected $fillable = [
'request_id',
'photo_id',
'storage_disk',
'storage_path',
'mime_type',
'width',
'height',
'bytes',
'checksum',
'provider_asset_id',
'provider_url',
'is_primary',
'safety_state',
'safety_reasons',
'generated_at',
'metadata',
];
protected function casts(): array
{
return [
'is_primary' => 'boolean',
'safety_reasons' => 'array',
'metadata' => 'array',
'generated_at' => 'datetime',
];
}
public function request(): BelongsTo
{
return $this->belongsTo(AiEditRequest::class, 'request_id');
}
public function photo(): BelongsTo
{
return $this->belongsTo(Photo::class);
}
}