class City(Model): id = Property(str, name='geonameid', primary_key=True) name = Property(str) country = Property(str) subcountry = Property(str)
class Album(Model): class Options: slots = True id = Property(int, primary_key=True) artist = Property(Artist) title = Property(str)
class User(Model): id = Property(int, primary_key=True) username = Property(str) password = Property(str) created_at = Property(datetime, default=lambda: datetime.now()) updated_at = Property(datetime, default=lambda: datetime.now())
class Album(Model): id = Property(int, primary_key=True) artist = Property(Artist) title = Property(str)
class Track(Model): id = Property(int, primary_key=True) artist = Property(Artist) album = Property(Album) title = Property(str)
class Artist(Model): id = Property(int, primary_key=True) title = Property(str)