-
Notifications
You must be signed in to change notification settings - Fork 0
/
0001_initial.py
94 lines (88 loc) · 3 KB
/
0001_initial.py
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# Generated by Django 4.1.4 on 2022-12-18 08:53
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
("generator", "0001_initial"),
]
operations = [
migrations.CreateModel(
name="Tag",
fields=[
(
"id",
models.BigAutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("name", models.CharField(max_length=255)),
("description", models.TextField()),
("created_at", models.DateTimeField(auto_now_add=True)),
("updated_at", models.DateTimeField(auto_now=True)),
(
"project",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
to="generator.project",
),
),
],
),
migrations.CreateModel(
name="Events",
fields=[
(
"id",
models.BigAutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("title", models.CharField(max_length=255)),
("description", models.TextField()),
("log_data", models.JSONField()),
(
"priority",
models.CharField(
choices=[
("P1", "P1"),
("P2", "P2"),
("P3", "P3"),
("P4", "P4"),
("P5", "P5"),
],
default="P4",
max_length=2,
),
),
(
"log_level",
models.CharField(
choices=[
("DEBUG", "DEBUG"),
("INFO", "INFO"),
("WARNING", "WARNING"),
("ERROR", "ERROR"),
],
default="INFO",
max_length=7,
),
),
("created_at", models.DateTimeField(auto_now_add=True)),
("updated_at", models.DateTimeField(auto_now=True)),
(
"source",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
to="generator.source",
),
),
],
),
]