Refact: simplify model name
This commit is contained in:
parent
309e9627e7
commit
ba750989d8
@ -1,11 +1,11 @@
|
||||
from sqlalchemy import Column, MetaData, String, Table
|
||||
from sqlalchemy.orm import mapper
|
||||
|
||||
from backend.model.tribe import Tribe as TribeModel
|
||||
from backend.model.tribe import Tribe
|
||||
|
||||
metadata = MetaData()
|
||||
|
||||
tribes = Table(
|
||||
tribes_table = Table(
|
||||
"tribes",
|
||||
metadata,
|
||||
Column("name", String(255), primary_key=True),
|
||||
@ -14,4 +14,4 @@ tribes = Table(
|
||||
|
||||
|
||||
def start_mappers():
|
||||
tribes_mapper = mapper(TribeModel, tribes)
|
||||
tribes_mapper = mapper(Tribe, tribes_table)
|
||||
|
Loading…
Reference in New Issue
Block a user