1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Generated by Django 5.0.4 on 2024-09-04 19:01
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("payments", "0002_subscriptionplan_and_more"),
]
operations = [
migrations.CreateModel(
name="Product",
fields=[
(
"id",
models.BigAutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("name", models.CharField(max_length=255)),
("stripe_product_id", models.CharField(max_length=100)),
],
),
migrations.CreateModel(
name="Price",
fields=[
(
"id",
models.BigAutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("price", models.IntegerField(default=0)),
("stripe_product_id", models.CharField(max_length=100)),
(
"product",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
to="payments.product",
),
),
],
),
]
|