init
This commit is contained in:
18
backend-django/backend/models/pam.py
Normal file
18
backend-django/backend/models/pam.py
Normal file
@@ -0,0 +1,18 @@
|
||||
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,
|
||||
}
|
||||
Reference in New Issue
Block a user