text: # Generated by Django 2.1.7 on 2019-04-14 09:42
  
  from django.db import migrations, models
  import django.db.models.deletion
  
  
  class Migration(migrations.Migration):
  
      initial = True
  
      dependencies = [
      ]
  
      operations = [
          migrations.CreateModel(
              name='Commande',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('prixTotal', models.FloatField(default=0)),
                  ('dateCommande', models.DateTimeField(verbose_name='date commande')),
              ],
              options={
                  'verbose_name': 'Commande',
                  'verbose_name_plural': 'Commandes',
              },
          ),
          migrations.CreateModel(
              name='Enfant',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('nom', models.CharField(max_length=50)),
                  ('prenom', models.CharField(max_length=50)),
                  ('solde', models.FloatField(default=0)),
                  ('idtag', models.CharField(max_length=50)),
                  ('etatCompte', models.CharField(max_length=50)),
                  ('photo', models.CharField(max_length=1000)),
              ],
              options={
                  'verbose_name': 'Enfant',
                  'verbose_name_plural': 'Enfants',
              },
          ),
          migrations.CreateModel(
              name='LigneCommande',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('prix', models.FloatField(default=0)),
                  ('Quantite', models.FloatField(default=0)),
                  ('Commande', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, to='KidsPay.Commande')),
              ],
              options={
                  'verbose_name': 'LigneCommande',
                  'verbose_name_plural': 'LigneCommandes',
              },
          ),
          migrations.CreateModel(
              name='Produit',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('nom', models.CharField(max_length=50)),
                  ('code', models.CharField(max_length=50)),
                  ('photo', models.CharField(max_length=1000)),
                  ('genre', models.CharField(max_length=50)),
              ],
              options={
                  'verbose_name': 'Produit',
                  'verbose_name_plural': 'Produits',
              },
          ),
          migrations.CreateModel(
              name='Store',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('nom', models.CharField(max_length=50)),
                  ('adresse', models.CharField(default='', max_length=50)),
              ],
              options={
                  'verbose_name': 'Store',
                  'verbose_name_plural': 'Stores',
              },
          ),
          migrations.CreateModel(
              name='User',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('nom', models.CharField(max_length=50)),
                  ('prenom', models.CharField(max_length=50)),
                  ('numTel', models.CharField(max_length=50)),
                  ('role', models.CharField(max_length=50)),
                  ('cin', models.CharField(max_length=50)),
                  ('email', models.CharField(max_length=50)),
                  ('password', models.CharField(default='', max_length=50)),
                  ('balance', models.FloatField(default=0)),
                  ('photo', models.CharField(max_length=1000)),
              ],
              options={
                  'verbose_name': 'User',
                  'verbose_name_plural': 'Users',
              },
          ),
          migrations.AddField(
              model_name='store',
              name='Commercant',
              field=models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, to='KidsPay.User'),
          ),
          migrations.AddField(
              model_name='produit',
              name='Store',
              field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='KidsPay.Store'),
          ),
          migrations.AddField(
              model_name='lignecommande',
              name='Enfant',
              field=models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, to='KidsPay.User'),
          ),
          migrations.AddField(
              model_name='lignecommande',
              name='Produit',
              field=models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, to='KidsPay.Produit'),
          ),
          migrations.AddField(
              model_name='lignecommande',
              name='Store',
              field=models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, to='KidsPay.Store'),
          ),
          migrations.AddField(
              model_name='enfant',
              name='parent',
              field=models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, to='KidsPay.User'),
          ),
          migrations.AddField(
              model_name='commande',
              name='Enfant',
              field=models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, to='KidsPay.Enfant'),
          ),
          migrations.AddField(
              model_name='commande',
              name='Store',
              field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='KidsPay.Store'),
          ),
      ]
  