# Path: pynYNAB/KeyGenerator.py
# def generateuuid():
# 
# Path: pynYNAB/schema/RootEntity.py
# class RootEntity(BaseModel):
#     previous_map = {}
# 
#     def __init__(self):
#         super(BaseModel, self).__init__()
# 
#     @declared_attr
#     def knowledge_id(self):
#         return Column(ForeignKey('knowledge.id'))
# 
#     @declared_attr
#     def knowledge(self):
#         return relationship('Knowledge')


from sqlalchemy import Column, ForeignKey, Table
from sqlalchemy import Date
from sqlalchemy import String, Integer
from sqlalchemy.orm import relationship, remote, backref
from pynYNAB import KeyGenerator
from pynYNAB.schema.Entity import Base, Entity
from pynYNAB.schema.RootEntity import RootEntity



class Catalog(Base, RootEntity):
    ce_user_budgets = relationship('UserBudget')
    ce_user_settings = relationship('UserSetting')
    ce_budget_versions = relationship('BudgetVersion')
    ce_users = relationship('User')
    ce_budgets = relationship('CatalogBudget')



# Path: pynYNAB/KeyGenerator.py
# def generateuuid():
# 
# Path: pynYNAB/schema/RootEntity.py
# class RootEntity(BaseModel):
#     previous_map = {}
# 
#     def __init__(self):
#         super(BaseModel, self).__init__()
# 
#     @declared_attr
#     def knowledge_id(self):
#         return Column(ForeignKey('knowledge.id'))
# 
#     @declared_attr
#     def knowledge(self):
#         return relationship('Knowledge')


# Path: pynYNAB/schema/roots.py
from sqlalchemy import Column, ForeignKey, Table
from sqlalchemy import Date
from sqlalchemy import String, Integer
from sqlalchemy.orm import relationship, remote, backref
from pynYNAB import KeyGenerator
from pynYNAB.schema.Entity import Base, Entity
from pynYNAB.schema.RootEntity import RootEntity




class Catalog(Base, RootEntity):
    ce_user_budgets = relationship('UserBudget')
    ce_user_settings = relationship('UserSetting')
    ce_budget_versions = relationship('BudgetVersion')
    ce_users = relationship('User')
    ce_budgets = relationship('CatalogBudget')



class Budget(Base, RootEntity):