2022-09-30 08:25:52 -05:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
# # -*- coding: utf-8 -*-
|
|
|
|
|
2022-09-30 07:53:40 -05:00
|
|
|
from pony.orm import *
|
|
|
|
|
|
|
|
db = Database()
|
|
|
|
|
|
|
|
|
|
|
|
class Melee(db.Entity):
|
|
|
|
name = Required(str)
|
|
|
|
description = Optional(str)
|
|
|
|
mechanism = Optional(str)
|
|
|
|
icon = Required(bytes)
|
|
|
|
stats = Required(int)
|
2022-09-30 08:25:52 -05:00
|
|
|
|
|
|
|
|
|
|
|
class Shield(db.Entity):
|
|
|
|
name = Required(str)
|
|
|
|
description = Optional(str)
|
|
|
|
mechanism = Optional(str)
|
|
|
|
icon = Required(bytes)
|
|
|
|
stats = Required(int)
|
|
|
|
|
|
|
|
|
2022-10-02 22:17:04 -05:00
|
|
|
class Ranged(db.Entity):
|
|
|
|
name = Required(str)
|
|
|
|
description = Optional(str)
|
|
|
|
mechanism = Optional(str)
|
|
|
|
icon = Required(bytes)
|
|
|
|
stats = Required(int)
|
|
|
|
|
|
|
|
|
2022-10-06 22:37:25 -05:00
|
|
|
class Outfit(db.Entity):
|
|
|
|
name = Required(str)
|
|
|
|
name_en = Required(str)
|
|
|
|
description = Optional(str)
|
|
|
|
icon = Required(bytes)
|
|
|
|
preview = Optional(bytes)
|
|
|
|
cell_cost = Required(int)
|
|
|
|
|
|
|
|
|
2022-09-30 08:25:52 -05:00
|
|
|
if __name__ == "__main__":
|
|
|
|
db.bind(provider="sqlite", filename="../../clean/31-2/data.sqlite3")
|
|
|
|
db.generate_mapping(create_tables=True)
|