-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodels.py
67 lines (52 loc) · 1.17 KB
/
models.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
from django.db import models
from django.contrib.auth.models import User
class Usuario(models.Model):
id_tipo_usuario = models.IntegerField(
verbose_name='id-tipo-usuario',
default= 1,
null= False,
blank= True,
)
tipo_usuario = models.TextField(
verbose_name='tipo-usuario',
null= False,
blank= True
)
username = models.TextField(
null= False,
blank= False
)
password = models.TextField(
default= 'user.2021',
null= False,
blank= False,
)
email = models.TextField(
null= False,
blank= False,
)
nome = models.TextField(
null= False,
blank= True
)
telefone = models.TextField(
null= False,
blank= True,
)
cpf = models.TextField(
null= False,
blank= True,
)
data_nascimento = models.DateField(
verbose_name= 'data-nascimento',
null= True,
blank= True,
)
# endereco
# metodos_pagamento
# carrinho
# lista_desejo
# historico_pedidos
# lista_chamados
def __str__(self):
return self.username