0001_initial.py
3.12 KB
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
66
67
68
# Generated by Django 4.1.9 on 2023-07-30 21:21
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.CreateModel(
name='Precio',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('precio', models.FloatField(max_length=50)),
('vigencia_desde', models.DateTimeField()),
('vigencia_hasta', models.DateTimeField()),
('moneda', models.CharField(max_length=50)),
('precio_ejemplar', models.FloatField(max_length=50)),
('usuario', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
options={
'verbose_name': 'Administrador',
'verbose_name_plural': 'Administradores',
},
),
migrations.CreateModel(
name='Edicto',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('cuerpo_edicto', models.TextField()),
('archivo', models.FileField(upload_to='uploads/%Y/%m/%d/')),
('dias_publicar', models.PositiveIntegerField()),
('cantidad_sellos', models.PositiveIntegerField()),
('estado', models.CharField(choices=[('iniciado', 'iniciado'), ('pendiente_de_pago', 'pendiente_de_pago'), ('publicado', 'publicado'), ('aprobado', 'aprobado'), ('rechazado', 'rechazado')], default='inciado', max_length=150)),
('cantidad_palabras', models.IntegerField()),
('cantidad_copias', models.PositiveIntegerField()),
('fecha_publicacion', models.DateField()),
('fecha_creacion', models.DateTimeField(auto_now_add=True)),
('fecha_modificacion', models.DateTimeField(auto_now_add=True)),
('usuario', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='Usuario')),
],
options={
'verbose_name': 'Edicto',
'verbose_name_plural': 'Edictos',
},
),
migrations.CreateModel(
name='ComprobantePago',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('resultado', models.FloatField()),
('numero_comprobante', models.CharField(max_length=300, null=True)),
('fecha_pago', models.DateTimeField(null=True)),
('edicto', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='edicto.edicto')),
],
options={
'verbose_name': 'ComprobantePago',
'verbose_name_plural': 'ComprobantesPagos',
},
),
]