ecommerce/addresses/migrations/0001_initial.py
2018-09-10 23:16:35 +03:00

32 lines
1.1 KiB
Python

# -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2018-08-02 13:03
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('billing', '0002_auto_20180801_1339'),
]
operations = [
migrations.CreateModel(
name='Address',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('address_type', models.CharField(choices=[('billing', 'Billing'), ('shipping', 'Shipping')], max_length=120)),
('adress_line_1', models.CharField(max_length=120)),
('adress_line_2', models.CharField(blank=True, max_length=120, null=True)),
('city', models.CharField(max_length=120)),
('country', models.CharField(max_length=120)),
('code', models.CharField(max_length=120)),
('billing_profile', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='billing.BillingProfile')),
],
),
]