My favorites
▼
|
Sign in
django-eve-db
A wrapper around EVE Online's CCP-provided data dump.
Project Home
Export to GitHub
READ-ONLY: This project has been
archived
. For more information see
this post
.
Search
Search within:
All issues
Open issues
New issues
Issues to verify
for
Advanced search
Search tips
Subscriptions
Issue
1
attachment: model.station.py
(4.1 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
from django.db import models
class EVEResearchAndMfgActivity(models.Model):
"""
Research and Manufacturing activities.
"""
name = models.CharField(max_length=75, blank=True)
description = models.CharField(max_length=100, blank=True)
# Name of the file, should be two numbers separated by underscore, no extension.
icon_filename = models.CharField(max_length=50, blank=True)
is_published = models.BooleanField(default=True)
class Meta:
app_label = 'eve_db'
ordering = ['id']
verbose_name = 'Research and Mfg activity'
verbose_name_plural = 'Research and Mfg activities'
def __unicode__(self):
return self.name
def __str__(self):
return self.__unicode__()
class EVEStationService(models.Model):
"""
staServices
"""
name = models.CharField(max_length=100)
description = models.TextField(blank=True)
class Meta:
app_label = 'eve_db'
ordering = ['id']
verbose_name = 'Station Service'
verbose_name_plural = 'Station Services'
def __unicode__(self):
return self.name
def __str__(self):
return self.__unicode__()
class EVEStationType(models.Model):
"""
staStationTypes
"""
docking_bay_graphic = models.ForeignKey('EVEGraphic',
related_name='docking_bay_graphic', blank=True, null=True)
hangar_graphic = models.ForeignKey('EVEGraphic',
related_name='hangar_graphic', blank=True, null=True)
dock_entry_x = models.FloatField(blank=True, null=True)
dock_orientation_x = models.FloatField(blank=True, null=True)
dock_entry_y = models.FloatField(blank=True, null=True)
dock_orientation_y = models.FloatField(blank=True, null=True)
dock_entry_z = models.FloatField(blank=True, null=True)
dock_orientation_z = models.FloatField(blank=True, null=True)
operation = models.ForeignKey('EVEStationOperation', blank=True, null=True)
office_slots = models.IntegerField(blank=True, null=True)
reprocessing_efficiency = models.FloatField(blank=True, null=True)
is_conquerable = models.BooleanField(default=False)
class Meta:
app_label = 'eve_db'
ordering = ['id']
verbose_name = 'Station Type'
verbose_name_plural = 'Station Types'
def __unicode__(self):
return self.name
def __str__(self):
return self.__unicode__()
class EVEStationOperation(models.Model):
"""
staOperations
"""
activity_id = models.IntegerField(blank=True, null=True)
name = models.CharField(max_length=255, blank=True)
description = models.TextField(blank=True)
fringe = models.IntegerField(blank=True, null=True)
corridor = models.IntegerField(blank=True, null=True)
hub = models.IntegerField(blank=True, null=True)
border = models.IntegerField(blank=True, null=True)
ratio = models.IntegerField(blank=True, null=True)
caldari_station_type = models.ForeignKey(EVEStationType,
related_name='caldari_station_type', blank=True, null=True)
minmatar_station_type = models.ForeignKey(EVEStationType,
related_name='minmatar_station_type', blank=True, null=True)
amarr_station_type = models.ForeignKey(EVEStationType,
related_name='amarr_station_type', blank=True, null=True)
gallente_station_type = models.ForeignKey(EVEStationType,
related_name='gallente_station_type', blank=True, null=True)
jove_station_type = models.ForeignKey(EVEStationType,
related_name='jove_station_type', blank=True, null=True)
class Meta:
app_label = 'eve_db'
ordering = ['id']
verbose_name = 'Station Operation'
verbose_name_plural = 'Station Operations'
def __unicode__(self):
return self.name
def __str__(self):
return self.__unicode__()
Powered by
Google Project Hosting