-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathobjects.py
48 lines (34 loc) · 1.07 KB
/
objects.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
from sqlalchemy import create_engine, Column, Integer, String, Text
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import create_engine
from sqlalchemy.orm import Session
Base = declarative_base()
class Solider(Base):
__tablename__ = "Soliders"
name = Column(String, primary_key=True)
type = Column(String)
unit_type = Column(String)
Parameters = Column(String)
points = Column(Integer)
wargear = Column(String)
Srules = Column(String)
Options = Column(String)
compos = Column(String)
d_transp = Column(String)
Legion = Column(String)
class Weapons(Base):
__tablename__ = "Weapons"
name = Column(String, primary_key=True)
Range = Column(String)
Str = Column(Integer)
AP = Column(String)
Type = Column(String)
Class = Column(String)
class Srules(Base):
__tablename__ = "Srules"
name = Column(String, primary_key=True)
ability = Column(String)
class Forming(Base):
__tablename__ = "Forming"
Name = Column(String, primary_key=True)
Rule = Column(String)