-
Notifications
You must be signed in to change notification settings - Fork 5
/
models.py
54 lines (40 loc) · 1.6 KB
/
models.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
from django.db import models
class Activity(models.Model):
url = models.TextField(default="")
method = models.TextField(default="")
ua = models.TextField(default="")
ip = models.TextField(max_length=39)
okind = models.TextField()
oid = models.TextField()
ekind = models.TextField()
data = models.JSONField(default=dict)
uid = models.TextField(null=True)
sid = models.TextField(null=True)
vid = models.TextField(default="")
vid_created = models.BooleanField(default=False)
tid = models.TextField(default="")
tid_created = models.BooleanField(default=False)
when = models.DateTimeField(auto_now_add=True)
duration = models.IntegerField(default=-1)
response = models.JSONField(default=dict)
outcome = models.TextField(default="")
code = models.TextField(default="")
trace = models.JSONField(default=dict)
hash = models.TextField(default="")
rust_trace = models.TextField(null=True)
utm_source = models.TextField(null=True)
utm_medium = models.TextField(null=True)
utm_campaign = models.TextField(null=True)
utm_term = models.TextField(null=True)
utm_content = models.TextField(null=True)
site_version = models.TextField()
class Task(models.Model):
path = models.TextField()
method = models.TextField()
data = models.JSONField(default=dict)
cookies = models.JSONField(default=dict)
priority = models.IntegerField()
status = models.TextField()
number_tries = models.IntegerField()
created_on = models.DateTimeField(auto_now_add=True)
updated_on = models.DateTimeField(auto_now=True)