0001_initial.py 778 字节
Newer Older
1
# Generated by Django 2.0.5 on 2018-05-25 06:28
骆昊的技术专栏's avatar
骆昊的技术专栏 已提交
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

from django.db import migrations, models


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Goods',
            fields=[
                ('id', models.AutoField(db_column='gid', primary_key=True, serialize=False)),
                ('name', models.CharField(db_column='gname', max_length=50)),
                ('price', models.DecimalField(db_column='gprice', decimal_places=2, max_digits=10)),
                ('image', models.CharField(db_column='gimage', max_length=255)),
            ],
            options={
                'db_table': 'tb_goods',
                'ordering': ('id',),
            },
        ),
    ]