Add 'opmerking' column to assessments and implement related functionality
All checks were successful
Build & Push / Build & Push image (push) Successful in 38s
All checks were successful
Build & Push / Build & Push image (push) Successful in 38s
- Updated the database migration to include an 'opmerking' column in the assessments table. - Modified the Assessment model to include the new 'opmerking' field. - Enhanced the API to handle saving and retrieving remarks associated with assessments. - Updated the frontend to display and edit remarks in the assessments table.
This commit is contained in:
@@ -151,6 +151,7 @@ class Assessment(db.Model):
|
||||
vak_id = db.Column(db.String(50), nullable=False)
|
||||
goal_id = db.Column(db.String(50), nullable=False)
|
||||
status = db.Column(db.String(10), nullable=False)
|
||||
opmerking = db.Column(db.String(500), nullable=True)
|
||||
updated_at = db.Column(db.DateTime, default=datetime.utcnow, onupdate=datetime.utcnow)
|
||||
|
||||
user = db.relationship('User')
|
||||
@@ -167,6 +168,7 @@ class Assessment(db.Model):
|
||||
'vak_id': self.vak_id,
|
||||
'goal_id': self.goal_id,
|
||||
'status': self.status,
|
||||
'opmerking': self.opmerking,
|
||||
'updated_at': self.updated_at.isoformat() if self.updated_at else None,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user