pramodmisra commited on
Commit
b2253b1
·
verified ·
1 Parent(s): a742c80

Update app/models.py

Browse files
Files changed (1) hide show
  1. app/models.py +2 -0
app/models.py CHANGED
@@ -160,6 +160,7 @@ class Producer(Base):
160
  suffix = Column(Integer, nullable=False) # 1 or 2
161
  name = Column(String(200), nullable=False) # display name
162
  is_active = Column(Boolean, default=True)
 
163
 
164
 
165
  class Client(Base):
@@ -208,6 +209,7 @@ class Approval(Base):
208
  status = Column(String(20), default="pending") # pending | approved | rejected
209
  responded_at = Column(DateTime, nullable=True)
210
  reminder_sent = Column(DateTime, nullable=True)
 
211
 
212
  submission = relationship("IntakeSubmission", back_populates="approvals")
213
 
 
160
  suffix = Column(Integer, nullable=False) # 1 or 2
161
  name = Column(String(200), nullable=False) # display name
162
  is_active = Column(Boolean, default=True)
163
+ email = Column(String(255), nullable=True)
164
 
165
 
166
  class Client(Base):
 
209
  status = Column(String(20), default="pending") # pending | approved | rejected
210
  responded_at = Column(DateTime, nullable=True)
211
  reminder_sent = Column(DateTime, nullable=True)
212
+ approval_token = Column(String(64), unique=True, nullable=True, index=True)
213
 
214
  submission = relationship("IntakeSubmission", back_populates="approvals")
215