🗃️ Rendered 31-2 data, added shields

This commit is contained in:
zhbaor 2022-09-30 21:25:52 +08:00
parent 00e5928284
commit ac2a8e4d28
20 changed files with 98 additions and 8 deletions

16
data/convert/31-2/db.py Normal file → Executable file
View file

@ -1,3 +1,6 @@
#!/usr/bin/env python3
# # -*- coding: utf-8 -*-
from pony.orm import *
db = Database()
@ -9,3 +12,16 @@ class Melee(db.Entity):
mechanism = Optional(str)
icon = Required(bytes)
stats = Required(int)
class Shield(db.Entity):
name = Required(str)
description = Optional(str)
mechanism = Optional(str)
icon = Required(bytes)
stats = Required(int)
if __name__ == "__main__":
db.bind(provider="sqlite", filename="../../clean/31-2/data.sqlite3")
db.generate_mapping(create_tables=True)