# -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2018-07-03 20:32
from __future__ import unicode_literals

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


class Migration(migrations.Migration):

    dependencies = [
        ('membership', '0007_auto_20180213_0128'),
        ('hosting', '0045_auto_20180701_2028'),
    ]

    operations = [
        migrations.CreateModel(
            name='UserCardDetail',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('last4', models.CharField(max_length=4)),
                ('brand', models.CharField(max_length=10)),
                ('card_id', models.CharField(blank=True, default='', max_length=100)),
                ('fingerprint', models.CharField(max_length=100)),
                ('exp_month', models.IntegerField()),
                ('exp_year', models.IntegerField()),
                ('preferred', models.BooleanField(default=False)),
                ('stripe_customer', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='membership.StripeCustomer')),
            ],
            options={
                'permissions': (('view_usercarddetail', 'View User Card'),),
            },
            bases=(utils.mixins.AssignPermissionsMixin, models.Model),
        ),
    ]
