Integrate pgroups
for shipment data security
Added `pgroups` to secure and associate data with specific permission groups. Updated backend routers, database models, and API endpoints to handle authorization based on `pgroups`. Adjusted frontend components and hooks to support `pgroups` in data fetching and management workflows.
This commit is contained in:
@ -17,12 +17,13 @@ class Shipment(Base):
|
||||
__tablename__ = "shipments"
|
||||
|
||||
id = Column(Integer, primary_key=True, index=True, autoincrement=True)
|
||||
pgroups = Column(String(255), nullable=False)
|
||||
shipment_name = Column(String(255), index=True)
|
||||
shipment_date = Column(Date)
|
||||
shipment_status = Column(String(255))
|
||||
shipment_date = Column(Date, nullable=True)
|
||||
shipment_status = Column(String(255), nullable=True)
|
||||
comments = Column(String(200), nullable=True)
|
||||
contact_id = Column(Integer, ForeignKey("contacts.id"))
|
||||
return_address_id = Column(Integer, ForeignKey("addresses.id"))
|
||||
contact_id = Column(Integer, ForeignKey("contacts.id"), nullable=False)
|
||||
return_address_id = Column(Integer, ForeignKey("addresses.id"), nullable=False)
|
||||
proposal_id = Column(Integer, ForeignKey("proposals.id"), nullable=True)
|
||||
|
||||
contact = relationship("Contact", back_populates="shipments")
|
||||
|
Reference in New Issue
Block a user