**Commit Message:**
Enhance app with active pgroup handling and token updates Added active pgroup state management across the app for user-specific settings. Improved token handling with decoding, saving user data, and setting OpenAPI authorization. Updated components, API calls, and forms to support dynamic pgroup selection and user-specific features.
This commit is contained in:
@ -46,10 +46,14 @@ class Address(Base):
|
||||
__tablename__ = "addresses"
|
||||
|
||||
id = Column(Integer, primary_key=True, index=True, autoincrement=True)
|
||||
street = Column(String(255))
|
||||
city = Column(String(255))
|
||||
zipcode = Column(String(255))
|
||||
country = Column(String(255))
|
||||
status = Column(String(255), default="active")
|
||||
pgroups = Column(String(255), nullable=False)
|
||||
street = Column(String(255), nullable=False)
|
||||
house_number = Column(String(255), nullable=True)
|
||||
city = Column(String(255), nullable=False)
|
||||
state = Column(String(255), nullable=True)
|
||||
zipcode = Column(String(255), nullable=False)
|
||||
country = Column(String(255), nullable=False)
|
||||
|
||||
shipments = relationship("Shipment", back_populates="return_address")
|
||||
|
||||
|
Reference in New Issue
Block a user