1
0

0002_auto_20231229_0916.py 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # Generated by Django 3.2.23 on 2023-12-29 09:16
  2. from django.db import migrations, models
  3. import django.db.models.deletion
  4. class Migration(migrations.Migration):
  5. dependencies = [
  6. ('gest_clin', '0001_initial'),
  7. ]
  8. operations = [
  9. migrations.CreateModel(
  10. name='Clinique',
  11. fields=[
  12. ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  13. ('CLIN_Nom', models.CharField(max_length=64, unique=True, verbose_name='Nom de Clinique')),
  14. ('CLIN_Anag', models.CharField(max_length=3, unique=True, verbose_name='Anagrame de Clinique')),
  15. ],
  16. options={
  17. 'verbose_name': 'Clinique',
  18. 'verbose_name_plural': 'Cliniques',
  19. },
  20. ),
  21. migrations.AddField(
  22. model_name='batiments',
  23. name='BAT_Clin',
  24. field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.PROTECT, to='gest_clin.clinique'),
  25. preserve_default=False,
  26. ),
  27. migrations.AddField(
  28. model_name='services',
  29. name='SERVICE_Clin',
  30. field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.PROTECT, to='gest_clin.clinique'),
  31. preserve_default=False,
  32. ),
  33. ]