Skip to content

Commit

Permalink
feat: dt_mod user_mod visibile laboratoriodatibase
Browse files Browse the repository at this point in the history
  • Loading branch information
revelis-vincenzo committed Oct 12, 2023
1 parent db335c7 commit 51ce921
Show file tree
Hide file tree
Showing 3 changed files with 331 additions and 55 deletions.
203 changes: 203 additions & 0 deletions ricerca_app/migrations/0150_auto_20231011_1140.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,203 @@
# Generated by Django 3.2.20 on 2023-10-11 11:40

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

dependencies = [
('ricerca_app', '0149_alter_laboratoriodatibase_nome_file_logo'),
]

operations = [
migrations.CreateModel(
name='TipologiaRischio',
fields=[
('id', models.AutoField(db_column='ID', primary_key=True, serialize=False)),
('descr_tipologia', models.CharField(db_column='DESCR_TIPOLOGIA', max_length=1000)),
],
options={
'db_table': 'TIPOLOGIA_RISCHIO',
'managed': True,
},
),
migrations.RemoveField(
model_name='laboratoriopersonaletecnico',
name='field_impegno',
),
migrations.RemoveField(
model_name='laboratoriotipologiarischio',
name='tipologia_rischio',
),
migrations.AddField(
model_name='laboratorioattivita',
name='descr_finalita_en',
field=models.TextField(blank=True, db_column='DESCR_FINALITA_EN', null=True),
),
migrations.AddField(
model_name='laboratorioattivita',
name='descr_finalita_it',
field=models.TextField(blank=True, db_column='DESCR_FINALITA_IT', null=True),
),
migrations.AddField(
model_name='laboratoriodatibase',
name='tipologia_attivita',
field=models.ManyToManyField(through='ricerca_app.LaboratorioAttivita', to='ricerca_app.LaboratorioTipologiaAttivita'),
),
migrations.AddField(
model_name='laboratoriopersonaletecnico',
name='percentuale_impegno',
field=models.FloatField(blank=True, db_column='PERCENTUALE_IMPEGNO', null=True),
),
migrations.AddField(
model_name='laboratoriotipologiarischio',
name='tipologia_rischio_origine',
field=models.CharField(blank=True, db_column='TIPOLOGIA_RISCHIO_ORIGINE', max_length=500, null=True),
),
migrations.AlterField(
model_name='laboratorioaltridipartimenti',
name='id_laboratorio_dati',
field=models.ForeignKey(blank=True, db_column='ID_LABORATORIO_DATI', null=True, on_delete=django.db.models.deletion.CASCADE, to='ricerca_app.laboratoriodatibase'),
),
migrations.AlterField(
model_name='laboratorioattivita',
name='id_laboratorio_dati',
field=models.ForeignKey(blank=True, db_column='ID_LABORATORIO_DATI', null=True, on_delete=django.db.models.deletion.CASCADE, to='ricerca_app.laboratoriodatibase'),
),
migrations.AlterField(
model_name='laboratorioattivita',
name='id_tipologia_attivita',
field=models.ForeignKey(db_column='ID_TIPOLOGIA_ATTIVITA', null=True, on_delete=django.db.models.deletion.CASCADE, to='ricerca_app.laboratoriotipologiaattivita'),
),
migrations.AlterField(
model_name='laboratorioattrezzature',
name='costo_unitario',
field=models.FloatField(db_column='COSTO_UNITARIO', null=True),
),
migrations.AlterField(
model_name='laboratorioattrezzature',
name='descrizione',
field=models.TextField(db_column='DESCRIZIONE', null=True),
),
migrations.AlterField(
model_name='laboratorioattrezzature',
name='fondi',
field=models.CharField(db_column='FONDI', max_length=500, null=True),
),
migrations.AlterField(
model_name='laboratorioattrezzature',
name='id_laboratorio_dati',
field=models.ForeignKey(blank=True, db_column='ID_LABORATORIO_DATI', null=True, on_delete=django.db.models.deletion.CASCADE, to='ricerca_app.laboratoriodatibase'),
),
migrations.AlterField(
model_name='laboratorioattrezzature',
name='quantita',
field=models.IntegerField(db_column='QUANTITA', null=True),
),
migrations.AlterField(
model_name='laboratorioattrezzature',
name='tipo_rischi',
field=models.CharField(db_column='TIPO_RISCHI', max_length=500, null=True),
),
migrations.AlterField(
model_name='laboratorioattrezzature',
name='tipologia',
field=models.CharField(db_column='TIPOLOGIA', max_length=500, null=True),
),
migrations.AlterField(
model_name='laboratoriodatierc1',
name='id_laboratorio_dati',
field=models.ForeignKey(blank=True, db_column='ID_LABORATORIO_DATI', null=True, on_delete=django.db.models.deletion.CASCADE, to='ricerca_app.laboratoriodatibase'),
),
migrations.AlterField(
model_name='laboratoriopersonalericerca',
name='id_laboratorio_dati',
field=models.ForeignKey(blank=True, db_column='ID_LABORATORIO_DATI', null=True, on_delete=django.db.models.deletion.CASCADE, to='ricerca_app.laboratoriodatibase'),
),
migrations.AlterField(
model_name='laboratoriopersonaletecnico',
name='id_laboratorio_dati',
field=models.ForeignKey(blank=True, db_column='ID_LABORATORIO_DATI', null=True, on_delete=django.db.models.deletion.CASCADE, to='ricerca_app.laboratoriodatibase'),
),
migrations.AlterField(
model_name='laboratorioservizierogati',
name='anno',
field=models.IntegerField(db_column='ANNO', null=True),
),
migrations.AlterField(
model_name='laboratorioservizierogati',
name='committenti',
field=models.CharField(db_column='COMMITTENTI', max_length=500, null=True),
),
migrations.AlterField(
model_name='laboratorioservizierogati',
name='descrizione',
field=models.TextField(db_column='DESCRIZIONE', null=True),
),
migrations.AlterField(
model_name='laboratorioservizierogati',
name='durata_mesi',
field=models.IntegerField(db_column='DURATA_MESI', null=True),
),
migrations.AlterField(
model_name='laboratorioservizierogati',
name='id_laboratorio_dati',
field=models.ForeignKey(blank=True, db_column='ID_LABORATORIO_DATI', null=True, on_delete=django.db.models.deletion.CASCADE, to='ricerca_app.laboratoriodatibase'),
),
migrations.AlterField(
model_name='laboratorioservizierogati',
name='importo_euro',
field=models.FloatField(db_column='IMPORTO_EURO', null=True),
),
migrations.AlterField(
model_name='laboratorioserviziofferti',
name='descrizione_servizio',
field=models.TextField(db_column='DESCRIZIONE_SERVIZIO', null=True),
),
migrations.AlterField(
model_name='laboratorioserviziofferti',
name='id_laboratorio_dati',
field=models.ForeignKey(blank=True, db_column='ID_LABORATORIO_DATI', null=True, on_delete=django.db.models.deletion.CASCADE, to='ricerca_app.laboratoriodatibase'),
),
migrations.AlterField(
model_name='laboratorioserviziofferti',
name='nome_servizio',
field=models.TextField(db_column='NOME_SERVIZIO', null=True),
),
migrations.AlterField(
model_name='laboratoriotipologiarischio',
name='id_laboratorio_dati',
field=models.ForeignKey(blank=True, db_column='ID_LABORATORIO_DATI', null=True, on_delete=django.db.models.deletion.CASCADE, to='ricerca_app.laboratoriodatibase'),
),
migrations.AlterField(
model_name='laboratorioubicazione',
name='edificio',
field=models.CharField(db_column='EDIFICIO', max_length=200, null=True),
),
migrations.AlterField(
model_name='laboratorioubicazione',
name='id_laboratorio_dati',
field=models.ForeignKey(blank=True, db_column='ID_LABORATORIO_DATI', null=True, on_delete=django.db.models.deletion.CASCADE, to='ricerca_app.laboratoriodatibase'),
),
migrations.AlterField(
model_name='laboratorioubicazione',
name='piano',
field=models.CharField(db_column='PIANO', max_length=100, null=True),
),
migrations.AlterField(
model_name='laboratorioubicazione',
name='sede_principale',
field=models.CharField(db_column='SEDE_PRINCIPALE', max_length=10, null=True),
),
migrations.AddField(
model_name='laboratoriodatibase',
name='tipologia_rischio',
field=models.ManyToManyField(through='ricerca_app.LaboratorioTipologiaRischio', to='ricerca_app.TipologiaRischio'),
),
migrations.AddField(
model_name='laboratoriotipologiarischio',
name='id_tipologia_rischio',
field=models.ForeignKey(blank=True, db_column='ID_TIPOLOGIA_RISCHIO', null=True, on_delete=django.db.models.deletion.CASCADE, to='ricerca_app.tipologiarischio'),
),
]
31 changes: 31 additions & 0 deletions ricerca_app/migrations/0151_auto_20231012_1123.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Generated by Django 3.2.20 on 2023-10-12 11:23

from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('ricerca_app', '0150_auto_20231011_1140'),
]

operations = [
migrations.AddField(
model_name='laboratoriodatibase',
name='dt_mod',
field=models.DateField(blank=True, db_column='DT_MOD', null=True),
),
migrations.AddField(
model_name='laboratoriodatibase',
name='user_mod',
field=models.ForeignKey(blank=True, db_column='USER_MOD', null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL),
),
migrations.AddField(
model_name='laboratoriodatibase',
name='visibile',
field=models.BooleanField(db_column='VISIBILE', default=False),
),
]
Loading

0 comments on commit 51ce921

Please sign in to comment.