feat: Face ID (scan, register, liveness) + role baru KS/Waka/Ketua Tim + notifikasi WA ortu + scoping wali kelas + error pages premium

This commit is contained in:
Novy San87
2026-08-02 20:57:11 +07:00
parent 0a5f471854
commit 6e256661dd
76 changed files with 5335 additions and 888 deletions
+47
View File
@@ -0,0 +1,47 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class FaceVerificationLog extends Model
{
public $timestamps = false;
protected $fillable = [
'user_id',
'student_id',
'violation_id',
'faceid_matched',
'faceid_ambiguous',
'faceid_reason',
'faceid_score',
'photo_hash',
'top_candidates',
'created_at',
];
protected $casts = [
'faceid_matched' => 'boolean',
'faceid_ambiguous' => 'boolean',
'faceid_score' => 'float',
'top_candidates' => 'array',
'created_at' => 'datetime',
];
public function user(): BelongsTo
{
return $this->belongsTo(User::class);
}
public function student(): BelongsTo
{
return $this->belongsTo(Student::class);
}
public function violation(): BelongsTo
{
return $this->belongsTo(Violation::class);
}
}