Skip to content

Commit

Permalink
Grumble: fixed import error (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
signebedi committed Mar 23, 2024
1 parent b79aa11 commit 4182733
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions libreforms_fastapi/utils/sqlalchemy_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
Integer,
String,
DateTime,
JSON,
)
from sqlalchemy.orm import relationship, declarative_base

Expand Down Expand Up @@ -68,6 +69,14 @@ class Group(Base):
name = Column(String(1000), unique=True)
permissions = Column(JSON)

# Allow custom approval chains to be defined here
class ApprovalChains(Base):
__tablename__ = 'approval_chains'
id = Column(Integer, primary_key=True)
form_name = Column(String(1000))
apply_to_single_group = Column(String(100), nullable=True) # Maybe we allow admins to route approvals based on the group of the sender...
send_to_users_manager = Column(Boolean) # I think that this is probably going to be difficult to implement ...


# Create a custom Signing class from sqlalchemy_signing
Signing = create_signing_class(Base, tz_aware_datetime)

0 comments on commit 4182733

Please sign in to comment.