45 lines
1.2 KiB
Python
45 lines
1.2 KiB
Python
from django.db import models
|
|
|
|
|
|
class saldoModel(models.Model):
|
|
saldo = models.IntegerField()
|
|
|
|
|
|
class Timbres(models.Model):
|
|
uuid = models.CharField(max_length=36, unique=True)
|
|
rfcc = models.CharField(max_length=13)
|
|
rfcp = models.CharField(max_length=13)
|
|
fecha = models.CharField(max_length=55)
|
|
folio = models.CharField(max_length=55)
|
|
serie = models.CharField(max_length=10)
|
|
tipo = models.CharField(max_length=35)
|
|
|
|
created_at = models.DateTimeField(auto_now_add=True)
|
|
class Meta:
|
|
ordering = ('-created_at',)
|
|
|
|
|
|
class ErroresTimbres(models.Model):
|
|
uuid = models.CharField(max_length=36)
|
|
description = models.TextField()
|
|
rfcc = models.CharField(max_length=13)
|
|
folio = models.CharField(max_length=55)
|
|
|
|
created_at = models.DateTimeField(auto_now_add=True)
|
|
class Meta:
|
|
ordering = ('uuid',)
|
|
abstract = True
|
|
|
|
class Clientes(models.Model):
|
|
RFC = models.CharField(max_length=13, unique=True)
|
|
Nombre = models.CharField(max_length=100)
|
|
|
|
|
|
Activo = models.BooleanField(default=True)
|
|
fecha_baja = models.DateField(blank=True)
|
|
|
|
class Meta:
|
|
ordering = ('RFC',)
|
|
abstract =True
|
|
|