0001_initial.py 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. # -*- coding: utf-8 -*-
  2. # Generated by Django 1.11.5 on 2018-04-06 12:22
  3. from __future__ import unicode_literals
  4. from django.db import migrations, models
  5. class Migration(migrations.Migration):
  6. initial = True
  7. dependencies = [
  8. ]
  9. operations = [
  10. migrations.CreateModel(
  11. name='Book',
  12. fields=[
  13. ('ID', models.AutoField(primary_key=True, serialize=False)),
  14. ('name', models.TextField(max_length=128)),
  15. ('description', models.TextField(max_length=256, null=True)),
  16. ('category', models.TextField(max_length=32)),
  17. ('status', models.TextField(max_length=32)),
  18. ('borrower', models.TextField(max_length=128, null=True)),
  19. ('borrow_time', models.DateField(null=True)),
  20. ],
  21. ),
  22. migrations.CreateModel(
  23. name='User',
  24. fields=[
  25. ('ID', models.AutoField(primary_key=True, serialize=False)),
  26. ('name', models.TextField(max_length=32)),
  27. ('phone', models.IntegerField()),
  28. ],
  29. ),
  30. ]