e3f810df420d418f6bfb175d9e138bd3f994a6fd
1 """The application's model objects"""
2 import sqlalchemy
as sa
3 from sqlalchemy
import orm
5 from floof
.model
import meta
7 # Tables are defined in separate files and imported to here
8 from floof
.model
.users
import *
10 def init_model(engine
):
11 """Call me before using any of the tables or classes in the model"""
12 ## Reflected tables must be defined and mapped here
13 #global reflected_table
14 #reflected_table = sa.Table("Reflected", meta.metadata, autoload=True,
15 # autoload_with=engine)
16 #orm.mapper(Reflected, reflected_table)
18 meta
.Session
.configure(bind
=engine
)