comet/comet/account/migrations/0001_initial.py
2018-12-14 00:06:54 +01:00

43 lines
1.7 KiB
Python

# Generated by Django 2.1.4 on 2018-12-13 21:05
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Account',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('balance', models.DecimalField(decimal_places=2, max_digits=4, verbose_name='Solde')),
('firstname', models.CharField(max_length=255, verbose_name='Nom')),
('lastname', models.CharField(max_length=255, verbose_name='Prénom')),
('email', models.EmailField(max_length=254, verbose_name='Email')),
],
),
migrations.CreateModel(
name='Article',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('price', models.DecimalField(decimal_places=2, max_digits=4, verbose_name='Prix unitaire')),
('name', models.CharField(max_length=255, verbose_name='Désignation')),
],
),
migrations.CreateModel(
name='Sale',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('price', models.DecimalField(decimal_places=2, max_digits=4, verbose_name='Prix')),
('title', models.CharField(max_length=255, verbose_name='Intitulé')),
('account', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='account.Account')),
],
),
]