from django.db import models



class PAM(models.Model):
    """Modèle pour Le PAM
    """
    pam_id = models.CharField(primary_key=True,max_length=100, default=False)
    pam_date = models.CharField(max_length=100)
    pam_libelle = models.CharField(max_length=100)
    pam_statut = models.CharField(max_length=100)

    def as_dict(self):
        return {
            "pam_id": self.pam_id,
            "pam_libelle": self.pam_libelle,
            "pam_statut": self.pam_statut,
        }