initial commit

This commit is contained in:
2026-04-13 08:16:56 +08:00
parent 610676a668
commit 273c8e8153
1270 changed files with 331207 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class UserEmailTemplate extends Model
{
protected $fillable = [
'template_id',
'user_id',
'is_active',
];
protected $casts = [
'is_active' => 'boolean',
];
public function emailTemplate(): BelongsTo
{
return $this->belongsTo(EmailTemplate::class, 'template_id');
}
}