0085_auto_20240806_1302.py 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # Generated by Django 3.2.23 on 2024-08-06 13:02
  2. from django.db import migrations, models
  3. import django.db.models.deletion
  4. class Migration(migrations.Migration):
  5. dependencies = [
  6. ('gest_user', '0022_auto_20240806_1302'),
  7. ('gest_clin', '0002_auto_20231229_0916'),
  8. ('parc_info', '0084_alter_pic_pic_adresse_ip'),
  9. ]
  10. operations = [
  11. migrations.CreateModel(
  12. name='VLAN',
  13. fields=[
  14. ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  15. ('VLAN_Nom', models.CharField(max_length=64, unique=True, verbose_name='Nom du VLAN')),
  16. ('VLAN_N_slugify', models.CharField(blank=True, editable=False, max_length=64, verbose_name='Nom du VLAN slugifié')),
  17. ('VLAN_IN', models.PositiveSmallIntegerField(default=0, verbose_name='Numéro uniq')),
  18. ('VLAN_Des', models.CharField(max_length=128, verbose_name='Déscription VLAN')),
  19. ('VLAN_Plag', models.CharField(blank=True, max_length=64, verbose_name='Plage VLAN')),
  20. ('VLAN_Route', models.CharField(blank=True, max_length=64, verbose_name='Route VLAN')),
  21. ('VLAN_Site', models.ForeignKey(null=True, on_delete=django.db.models.deletion.PROTECT, to='gest_clin.clinique', verbose_name='Clinique')),
  22. ],
  23. options={
  24. 'verbose_name': 'VLAN de la Clinique',
  25. 'verbose_name_plural': 'VLANs de la Clinique',
  26. 'ordering': ['VLAN_IN'],
  27. },
  28. ),
  29. migrations.DeleteModel(
  30. name='Services',
  31. ),
  32. migrations.AlterField(
  33. model_name='pic',
  34. name='PIC_NUnic',
  35. field=models.PositiveSmallIntegerField(default=0, verbose_name='ID Sérial'),
  36. ),
  37. ]