hackens-orga/hackens_orga/budget/migrations/0001_initial.py

39 lines
1.4 KiB
Python
Raw Normal View History

2023-02-08 02:04:34 +01:00
# Generated by Django 3.2.16 on 2023-02-08 00:51
2023-01-16 18:50:12 +01:00
import datetime
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
2023-02-08 02:04:34 +01:00
('agent', '0001_initial'),
2023-01-16 18:50:12 +01:00
]
operations = [
migrations.CreateModel(
name='BudgetGroup',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=255)),
('description', models.TextField(blank=True)),
],
),
migrations.CreateModel(
name='BudgetLine',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('amount', models.DecimalField(decimal_places=2, max_digits=12)),
('comment', models.TextField(blank=True)),
('date', models.DateField(default=datetime.date.today)),
('facture', models.FileField(blank=True, null=True, upload_to='factures/')),
('title', models.CharField(max_length=255)),
2023-02-08 02:04:34 +01:00
('author', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='agent.agent')),
('group', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='budget.budgetgroup')),
2023-01-16 18:50:12 +01:00
],
),
]