2023-03-06 11:58:53 +01:00
|
|
|
# Generated by Django 4.1.6 on 2023-03-06 10:01
|
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-03-06 11:58:53 +01:00
|
|
|
("agent", "0001_initial"),
|
2023-01-16 18:50:12 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
2023-03-06 11:58:53 +01:00
|
|
|
name="BudgetGroup",
|
2023-01-16 18:50:12 +01:00
|
|
|
fields=[
|
2023-03-06 11:58:53 +01:00
|
|
|
(
|
|
|
|
"id",
|
|
|
|
models.BigAutoField(
|
|
|
|
auto_created=True,
|
|
|
|
primary_key=True,
|
|
|
|
serialize=False,
|
|
|
|
verbose_name="ID",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
("name", models.CharField(max_length=255, verbose_name="Intitulé")),
|
|
|
|
(
|
|
|
|
"description",
|
|
|
|
models.TextField(blank=True, verbose_name="Description"),
|
|
|
|
),
|
2023-01-16 18:50:12 +01:00
|
|
|
],
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
2023-03-06 11:58:53 +01:00
|
|
|
name="BudgetLine",
|
2023-01-16 18:50:12 +01:00
|
|
|
fields=[
|
2023-03-06 11:58:53 +01:00
|
|
|
(
|
|
|
|
"id",
|
|
|
|
models.BigAutoField(
|
|
|
|
auto_created=True,
|
|
|
|
primary_key=True,
|
|
|
|
serialize=False,
|
|
|
|
verbose_name="ID",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"amount",
|
|
|
|
models.DecimalField(
|
|
|
|
decimal_places=2, max_digits=12, verbose_name="Montant"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
("comment", models.TextField(blank=True, verbose_name="Commentaire")),
|
|
|
|
(
|
|
|
|
"date",
|
|
|
|
models.DateField(default=datetime.date.today, verbose_name="Date"),
|
|
|
|
),
|
|
|
|
("title", models.CharField(max_length=255, verbose_name="Libellé")),
|
|
|
|
(
|
|
|
|
"author",
|
|
|
|
models.ForeignKey(
|
|
|
|
on_delete=django.db.models.deletion.PROTECT,
|
|
|
|
to="agent.agent",
|
|
|
|
verbose_name="Auteur",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"group",
|
|
|
|
models.ForeignKey(
|
|
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
|
|
to="budget.budgetgroup",
|
|
|
|
verbose_name="Budget",
|
|
|
|
),
|
|
|
|
),
|
2023-01-16 18:50:12 +01:00
|
|
|
],
|
|
|
|
),
|
|
|
|
]
|