I'm trying to map an object that looks like this:
self.user = {lots of stuff in here}
self.timeStamp = i am a date object
self.coordinates = {lots of stuff in here}
self.tweet = {lots of stuff in here}
self.favourite = 0
self.reTweet = 0
the non dictionaries seem simple to map
__tablename__ = 'Tweet'
id = Column(Integer, primary_key=True)
timeStamp = Column(DateTime)
favourite = Column(Integer)
reTweet = Column(Integer)
however I have no idea how I can map the dictionary objects. Idealy those objects should proberly go into there own tables so we obey 3rd normal form. However I have no idea where to begin. Can someone point me in the right direction? should I turn these dictionaries into there own objects and map them as well?
many thanks