1
0

0001_initial.py 1.5 KB

12345678910111213141516171819202122232425262728293031
  1. # Generated by Django 3.2.7 on 2022-07-12 10:18
  2. from django.db import migrations, models
  3. class Migration(migrations.Migration):
  4. initial = True
  5. dependencies = [
  6. ]
  7. operations = [
  8. migrations.CreateModel(
  9. name='Taches',
  10. fields=[
  11. ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  12. ('Tache_Statut', models.CharField(choices=[('NOUVELLE', 'Nouvelle'), ('PROGRAMEE', 'Programmée'), ('ENCOUR', 'En cours'), ('FINI', 'Terminée')], default='NOUVELLE', max_length=16, verbose_name='Statut')),
  13. ('Taches_Nom', models.CharField(max_length=128, verbose_name='Nom de la tache')),
  14. ('Taches_Commentaires', models.TextField(verbose_name='Explication')),
  15. ('Taches_Tech', models.CharField(choices=[('-', '* A def *'), ('LH', 'Laurent'), ('CM', '* A def *'), ('PG', 'Philippe')], default='-', max_length=16, verbose_name='Technicien')),
  16. ('Tache_Date_Cree', models.DateTimeField(auto_now_add=True, verbose_name='Date crée')),
  17. ('Tache_Date_Programee', models.DateTimeField(blank=True, null=True, verbose_name='Date programmé')),
  18. ('Tache_Date_Terminee', models.DateTimeField(blank=True, editable=False, null=True, verbose_name='Date terminée')),
  19. ],
  20. options={
  21. 'verbose_name': 'Tache',
  22. 'verbose_name_plural': 'Taches',
  23. },
  24. ),
  25. ]