<?php

namespace AutoAdmin\Bundle\Admin\Model;

use AutoAdmin\Bundle\Admin\Model\Traits\AdministratorTrait;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;

#[UniqueEntity(fields: 'email', message: 'Email déjà pris')]
#[UniqueEntity(fields: 'username', message: 'Username déjà pris')]
#[ORM\MappedSuperclass]
#[ORM\HasLifecycleCallbacks]
class AdministratorModel implements AdministratorInterface
{
    use AdministratorTrait;
}
