- ai_voice_recordings 테이블 마이그레이션 생성 - AiVoiceRecording 모델 추가 (Tenants 네임스페이스) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
47 lines
1017 B
PHP
47 lines
1017 B
PHP
<?php
|
|
|
|
namespace App\Models\Tenants;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
|
class AiVoiceRecording extends Model
|
|
{
|
|
use SoftDeletes;
|
|
|
|
protected $table = 'ai_voice_recordings';
|
|
|
|
protected $fillable = [
|
|
'tenant_id',
|
|
'user_id',
|
|
'title',
|
|
'interview_template_id',
|
|
'audio_file_path',
|
|
'audio_gcs_uri',
|
|
'transcript_text',
|
|
'analysis_text',
|
|
'status',
|
|
'duration_seconds',
|
|
'file_expiry_date',
|
|
];
|
|
|
|
protected $casts = [
|
|
'duration_seconds' => 'integer',
|
|
'file_expiry_date' => 'datetime',
|
|
];
|
|
|
|
public const STATUS_PENDING = 'PENDING';
|
|
|
|
public const STATUS_PROCESSING = 'PROCESSING';
|
|
|
|
public const STATUS_COMPLETED = 'COMPLETED';
|
|
|
|
public const STATUS_FAILED = 'FAILED';
|
|
|
|
public function user(): BelongsTo
|
|
{
|
|
return $this->belongsTo(\App\Models\Members\User::class);
|
|
}
|
|
}
|