-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path0004_promoactivationhistory.py
More file actions
52 lines (47 loc) · 1.54 KB
/
0004_promoactivationhistory.py
File metadata and controls
52 lines (47 loc) · 1.54 KB
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
# Generated by Django 5.2 on 2025-07-01 11:16
import django.db.models.deletion
import uuid
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("business", "0004_promo_comment_count"),
("user", "0003_promocomment"),
]
operations = [
migrations.CreateModel(
name="PromoActivationHistory",
fields=[
(
"id",
models.UUIDField(
default=uuid.uuid4,
editable=False,
primary_key=True,
serialize=False,
verbose_name="UUID",
),
),
("activated_at", models.DateTimeField(auto_now_add=True)),
(
"promo",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
related_name="activations_history",
to="business.promo",
),
),
(
"user",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
related_name="promo_activations",
to=settings.AUTH_USER_MODEL,
),
),
],
options={
"ordering": ["-activated_at"],
},
),
]