63 lines
2.3 KiB
Python
63 lines
2.3 KiB
Python
|
# -*- coding: utf-8 -*-
|
||
|
# Generated by Django 1.11.2 on 2017-06-28 10:35
|
||
|
from __future__ import unicode_literals
|
||
|
|
||
|
from django.conf import settings
|
||
|
from django.db import migrations, models
|
||
|
import django.db.models.deletion
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
initial = True
|
||
|
|
||
|
dependencies = [
|
||
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.CreateModel(
|
||
|
name='Auteur',
|
||
|
fields=[
|
||
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||
|
('nom', models.CharField(max_length=255)),
|
||
|
],
|
||
|
),
|
||
|
migrations.CreateModel(
|
||
|
name='Emprunt',
|
||
|
fields=[
|
||
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||
|
('date_emprunt', models.DateTimeField(help_text='%d/%m/%y %H:%M:%S')),
|
||
|
('date_rendu', models.DateTimeField(help_text='%d/%m/%y %H:%M:%S')),
|
||
|
],
|
||
|
),
|
||
|
migrations.CreateModel(
|
||
|
name='Media',
|
||
|
fields=[
|
||
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||
|
('titre', models.CharField(max_length=255)),
|
||
|
('cote', models.CharField(max_length=31)),
|
||
|
],
|
||
|
),
|
||
|
migrations.AddField(
|
||
|
model_name='emprunt',
|
||
|
name='media',
|
||
|
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='media.Media'),
|
||
|
),
|
||
|
migrations.AddField(
|
||
|
model_name='emprunt',
|
||
|
name='permanencier_emprunt',
|
||
|
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='user_permanencier_emprunt', to=settings.AUTH_USER_MODEL),
|
||
|
),
|
||
|
migrations.AddField(
|
||
|
model_name='emprunt',
|
||
|
name='permanencier_rendu',
|
||
|
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='user_permanencier_rendu', to=settings.AUTH_USER_MODEL),
|
||
|
),
|
||
|
migrations.AddField(
|
||
|
model_name='emprunt',
|
||
|
name='user',
|
||
|
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL),
|
||
|
),
|
||
|
]
|