0001_initial.py 893 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
# -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-05-24 01:16
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='CarRecord',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('carno', models.CharField(max_length=7)),
                ('reason', models.CharField(max_length=50)),
                ('date', models.DateTimeField(db_column='happen_date')),
                ('punlish', models.CharField(max_length=50)),
                ('isdone', models.BooleanField(default=False)),
            ],
            options={
                'db_table': 'tb_car_record',
            },
        ),
    ]