All checks were successful
DEPLOY_MULTI_BRACH/pipeline/head This commit looks good
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
27 lines
888 B
Python
27 lines
888 B
Python
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = []
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Promocion',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('nombre', models.CharField(max_length=255)),
|
|
('fecha_inicio', models.DateField(blank=True, null=True)),
|
|
('fecha_modificacion', models.DateField(blank=True, null=True)),
|
|
('descripcion', models.TextField(blank=True, null=True)),
|
|
('activo', models.BooleanField(default=True)),
|
|
('categoria_id', models.IntegerField(blank=True, null=True)),
|
|
],
|
|
options={
|
|
'db_table': 'promociones',
|
|
},
|
|
),
|
|
]
|