8297a3bf776a1f9caa52748a405fdb66970ac055
[ongolaboy.git] / projets_django / bacgl_django / messagerie / models.py
1 from django.db import models
2
3 CHOIX_BINAIRE = (
4 (1, "Actif"),
5 (0, "Inactif"),
6 )
7
8 class Auth(models.Model):
9 user = models.CharField(max_length=384)
10 password = models.CharField(max_length=384)
11 actif = models.IntegerField(choices=CHOIX_BINAIRE)
12 expire = models.IntegerField(choices=CHOIX_BINAIRE)
13 source = models.CharField(max_length=192)
14
15 def __unicode__():
16 return self.user