forked from ietf-tools/datatracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path0001_initial.py
More file actions
78 lines (72 loc) · 2.43 KB
/
Copy path0001_initial.py
File metadata and controls
78 lines (72 loc) · 2.43 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
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
# Copyright The IETF Trust 2025, All Rights Reserved
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = []
operations = [
migrations.CreateModel(
name="Blob",
fields=[
(
"id",
models.BigAutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
(
"name",
models.CharField(help_text="Name of the blob", max_length=1024),
),
(
"bucket",
models.CharField(
help_text="Name of the bucket containing this blob",
max_length=1024,
),
),
(
"modified",
models.DateTimeField(
default=django.utils.timezone.now,
help_text="Last modification time of the blob",
),
),
("content", models.BinaryField(help_text="Content of the blob")),
(
"checksum",
models.CharField(
editable=False,
help_text="SHA-384 digest of the content",
max_length=96,
),
),
(
"mtime",
models.DateTimeField(
blank=True,
default=None,
help_text="mtime associated with the blob as a filesystem object",
null=True,
),
),
(
"content_type",
models.CharField(
blank=True,
help_text="content-type header value for the blob contents",
max_length=1024,
),
),
],
),
migrations.AddConstraint(
model_name="blob",
constraint=models.UniqueConstraint(
fields=("bucket", "name"), name="unique_name_per_bucket"
),
),
]