-
-
Notifications
You must be signed in to change notification settings - Fork 614
Expand file tree
/
Copy path0001_initial.py
More file actions
70 lines (63 loc) · 2.18 KB
/
0001_initial.py
File metadata and controls
70 lines (63 loc) · 2.18 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
# Generated by Django 4.2.17 on 2025-01-22 08:59
from django.db import migrations, models
from django.utils.timezone import now
import api_app.defaults
class Migration(migrations.Migration):
initial = True
dependencies = []
operations = [
migrations.CreateModel(
name="Analyzable",
fields=[
(
"id",
models.BigAutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("md5", models.CharField(max_length=255, unique=True, editable=False)),
(
"sha256",
models.CharField(max_length=255, unique=True, editable=False),
),
("sha1", models.CharField(max_length=255, unique=True, editable=False)),
("name", models.CharField(max_length=255)),
(
"mimetype",
models.CharField(
blank=True, max_length=80, null=True, default=None
),
),
(
"file",
models.FileField(
null=True,
default=None,
blank=True,
upload_to=api_app.defaults.file_directory_path,
),
),
(
"classification",
models.CharField(
max_length=100,
choices=[
("ip", "Ip"),
("url", "Url"),
("domain", "Domain"),
("hash", "Hash"),
("generic", "Generic"),
("file", "File"),
],
),
),
("discovery_date", models.DateTimeField(default=now)),
],
options={
"abstract": False,
},
),
]