35 lines
1.5 KiB
Python
35 lines
1.5 KiB
Python
# Generated by Django 6.0.1 on 2026-02-01 11:03
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('sheets', '0011_alter_betriebskosten_kostentyp_monthlysheet_cell_and_more'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='TableConfig',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('table_type', models.CharField(choices=[('top_left', 'Top Left Table'), ('top_right', 'Top Right Table'), ('bottom_1', 'Bottom Table 1'), ('bottom_2', 'Bottom Table 2'), ('bottom_3', 'Bottom Table 3')], max_length=20, unique=True)),
|
|
('calculations', models.JSONField(default=dict)),
|
|
],
|
|
),
|
|
migrations.CreateModel(
|
|
name='RowCalculation',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('table_type', models.CharField(choices=[('top_left', 'Top Left Table'), ('top_right', 'Top Right Table'), ('bottom_1', 'Bottom Table 1'), ('bottom_2', 'Bottom Table 2'), ('bottom_3', 'Bottom Table 3')], max_length=20)),
|
|
('row_index', models.IntegerField()),
|
|
('formula', models.TextField()),
|
|
('description', models.CharField(blank=True, max_length=200)),
|
|
],
|
|
options={
|
|
'unique_together': {('table_type', 'row_index')},
|
|
},
|
|
),
|
|
]
|