first commit

This commit is contained in:
brusnitsyn
2026-06-24 17:20:43 +09:00
commit 43499acf1c
165 changed files with 25929 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
/**
* История паролей пользователя для запрета повторного использования.
*
* Мера ФСТЭК: ИАФ.3 запрет повтора последних N паролей.
*
* @property int $user_id
* @property string $password_hash
*/
class PasswordHistory extends Model
{
public const UPDATED_AT = null;
protected $table = 'password_histories';
protected $fillable = ['user_id', 'password_hash'];
/**
* @return BelongsTo<User, $this>
*/
public function user(): BelongsTo
{
return $this->belongsTo(User::class);
}
}