54 lines
2.3 KiB
Python
54 lines
2.3 KiB
Python
# Generated by Django 2.2.10 on 2020-02-18 15:01
|
|
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='JournalEntry',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('entry_text', models.CharField(max_length=500, verbose_name='Détail entrée')),
|
|
('entry_date', models.DateTimeField(verbose_name='Date')),
|
|
('cofeux_id', models.CharField(max_length=8, verbose_name='Trigramme')),
|
|
('entry_amount', models.FloatField(verbose_name='Montant')),
|
|
('payment_type', models.CharField(choices=[('Espèces', 'Espèces'), ('CB', 'CB'), ('Chèque', 'Chèque')], max_length=20, verbose_name='Moyen de paiement')),
|
|
],
|
|
options={
|
|
'verbose_name': 'Entrée du JDC',
|
|
'verbose_name_plural': 'Entrées du JDC',
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name='Option',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('name', models.CharField(max_length=100, verbose_name='Nom')),
|
|
],
|
|
),
|
|
migrations.CreateModel(
|
|
name='Produit',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('Produit', models.CharField(max_length=100, verbose_name='Nom')),
|
|
('option_1_value', models.CharField(max_length=100, verbose_name='Option 1 Valeur')),
|
|
('option_1', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='journaldecaisse.Option')),
|
|
],
|
|
),
|
|
migrations.CreateModel(
|
|
name='ProduitStock',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('Amount', models.IntegerField(verbose_name='Nombre en Stock')),
|
|
('ProduitTaille', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='journaldecaisse.Produit')),
|
|
],
|
|
),
|
|
]
|