Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class User(BASE, CeilometerBase):
- __tablename__ = 'user'
- id = Column(Integer, primary_key=True)
- sources = relationship("UserSource")
- class UserSource(BASE, CeilometerBase):
- __tablename__ = 'user_source'
- id = Column(Integer, primary_key=True)
- name = Column(String(255))
- user_id = Column(Integer, ForeignKey('user.id'))
Add Comment
Please, Sign In to add comment