30 lines
1.1 KiB
Python
30 lines
1.1 KiB
Python
# -*- coding: utf-8 -*-
|
|
# Generated by Django 1.11.4 on 2018-08-01 11:32
|
|
from __future__ import unicode_literals
|
|
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
('carts', '0002_cart_subtotal'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Order',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('order_id', models.CharField(max_length=100)),
|
|
('status', models.CharField(choices=[('created', 'Created'), ('paid', 'Paid'), ('shipped', 'Shipped'), ('refunded', 'Refunded')], default='created', max_length=120)),
|
|
('shipping_total', models.DecimalField(decimal_places=2, default=5.99, max_digits=100)),
|
|
('total', models.DecimalField(decimal_places=2, default=0.0, max_digits=100)),
|
|
('cart', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='carts.Cart')),
|
|
],
|
|
),
|
|
]
|