|
| | id = Column(Integer, primary_key=True, nullable=False) |
| |
| | cityID = Column(Integer, ForeignKey('city.id'), nullable=False) |
| |
| | city = relationship('City') |
| |
| | vertices = Column(BLOB, nullable=False) |
| |
| | uv = Column(BLOB, nullable=False) |
| |
| | textureID = Column(Integer, ForeignKey('texture.id'), nullable=False) |
| |
| | texture = relationship('Texture') |
| |
The data model of a city in the database.
Every Polygon has a list of vertices, a list of uv(to map a texture on it), a unique Texture(that might not exist in the database), and belongs to a specific City.