# -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2019-04-06 08:49
from __future__ import unicode_literals

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    dependencies = [
        ('activity', '0030_auto_20190405_2033'),
    ]

    operations = [
        migrations.CreateModel(
            name='Conpontype',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=100, null=True, verbose_name='奖品类型')),
            ],
            options={
                'db_table': 'Conpontype',
                'verbose_name': '奖品类型',
                'verbose_name_plural': '奖品类型',
            },
        ),
        migrations.CreateModel(
            name='Couponpool',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=30, verbose_name='券池名称')),
                ('activityId', models.CharField(max_length=50, null=True, verbose_name='活动编码')),
                ('activitySecretKey', models.CharField(max_length=100, null=True, verbose_name='活动密钥')),
                ('memo', models.CharField(max_length=200, null=True, verbose_name='券池描述')),
                ('provider', models.CharField(max_length=100, null=True, verbose_name='优惠券提供方')),
                ('quantity', models.IntegerField(null=True, verbose_name='库存')),
                ('number', models.FloatField(null=True, verbose_name='面额')),
                ('type', models.CharField(max_length=20, null=True, verbose_name='单位')),
                ('startTime', models.IntegerField(default=0, verbose_name='开始时间')),
                ('endTime', models.IntegerField(default=0, verbose_name='结束时间')),
                ('prizeType', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='activity.Conpontype')),
            ],
            options={
                'db_table': 'Conponpool',
                'verbose_name': '券池信息',
                'verbose_name_plural': '券池信息',
            },
        ),
    ]
