bornhack-website/src/shop/migrations/0015_coinifyapiinvoice_coinifycallback.py

64 lines
2 KiB
Python
Raw Normal View History

2016-05-29 10:48:31 +00:00
# -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-05-29 10:47
2017-01-30 11:16:07 +00:00
2016-05-29 10:48:31 +00:00
import django.contrib.postgres.fields.jsonb
import django.db.models.deletion
from django.db import migrations, models
2016-05-29 10:48:31 +00:00
class Migration(migrations.Migration):
2019-06-16 12:32:24 +00:00
dependencies = [("shop", "0014_ticket_name")]
2016-05-29 10:48:31 +00:00
operations = [
migrations.CreateModel(
2019-06-16 12:32:24 +00:00
name="CoinifyAPIInvoice",
2016-05-29 10:48:31 +00:00
fields=[
2019-06-16 12:32:24 +00:00
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("created", models.DateTimeField(auto_now_add=True)),
("updated", models.DateTimeField(auto_now=True)),
("invoicejson", django.contrib.postgres.fields.jsonb.JSONField()),
(
"order",
models.OneToOneField(
on_delete=django.db.models.deletion.CASCADE, to="shop.Order"
),
),
2016-05-29 10:48:31 +00:00
],
2019-06-16 12:32:24 +00:00
options={"abstract": False},
2016-05-29 10:48:31 +00:00
),
migrations.CreateModel(
2019-06-16 12:32:24 +00:00
name="CoinifyCallback",
2016-05-29 10:48:31 +00:00
fields=[
2019-06-16 12:32:24 +00:00
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("created", models.DateTimeField(auto_now_add=True)),
("updated", models.DateTimeField(auto_now=True)),
("payload", django.contrib.postgres.fields.jsonb.JSONField()),
(
"order",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE, to="shop.Order"
),
),
2016-05-29 10:48:31 +00:00
],
2019-06-16 12:32:24 +00:00
options={"abstract": False},
2016-05-29 10:48:31 +00:00
),
]