You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Gestor_pagos/tasks/migrations/0001_initial.py

39 lines
1.8 KiB

# Generated by Django 5.1.4 on 2024-12-19 04:48
import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.CreateModel(
name='RegistrarCompra',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('nombre_compra', models.CharField(max_length=100)),
('monto_pago', models.DecimalField(decimal_places=2, default=0.0, max_digits=10)),
('observacion', models.TextField(blank=True)),
('estado', models.CharField(choices=[('Pendiente', 'Pendiente'), ('Progreso', 'En Progreso'), ('Completado', 'Completado')], default='Pendiente', max_length=20)),
],
),
migrations.CreateModel(
name='RegistroPagos',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('fecha_pago', models.DateField(auto_now_add=True)),
('monto_pagado', models.DecimalField(decimal_places=2, default=0.0, max_digits=10)),
('monto_extra', models.DecimalField(decimal_places=2, default=0.0, max_digits=10)),
('observaciones', models.TextField(blank=True)),
('registro_compra', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='pagos', to='tasks.registrarcompra')),
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
),
]