-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathmodels.py
More file actions
33 lines (24 loc) · 837 Bytes
/
Copy pathmodels.py
File metadata and controls
33 lines (24 loc) · 837 Bytes
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
from django.db import models
# Create your models here.
class Scan(models.Model):
created = models.DateTimeField(auto_now_add=True)
token = models.CharField(max_length=6)
solarSystem = models.TextField(null=True)
data = models.TextField()
summaryText = models.TextField(null=True)
DSCAN = 0
LOCALSCAN = 1
SCAN_TYPE_CHOICES = (
(DSCAN, 'DScan'),
(LOCALSCAN, 'Local Scan'),
)
type = models.IntegerField(choices=SCAN_TYPE_CHOICES)
raw = models.TextField(null=True)
class Corporation(models.Model):
corporationID = models.BigIntegerField()
ticker = models.TextField()
name = models.TextField()
class Alliance(models.Model):
allianceID = models.BigIntegerField()
ticker = models.TextField()
name = models.TextField()