Aug 7 - Update: knowledge base MT19
This commit is contained in:
@@ -69,6 +69,11 @@ class SupportKnowledge(db.Model):
|
||||
title = db.Column(db.String(200), nullable=False)
|
||||
body = db.Column(db.Text, nullable=False)
|
||||
active = db.Column(db.Boolean, default=True, nullable=False)
|
||||
# MT-19 — admin-controlled ordering. Entries are injected into the support
|
||||
# chat's system prompt in this order, so a low sort_order is how an admin
|
||||
# promotes the guidance the assistant should reach for first. Ties break on
|
||||
# id, keeping the order stable.
|
||||
sort_order = db.Column(db.Integer, nullable=False, default=0)
|
||||
created_by = db.Column(db.Integer, db.ForeignKey('users.id', ondelete='SET NULL'), nullable=True)
|
||||
created_at = db.Column(db.DateTime, default=now_eastern, nullable=False)
|
||||
updated_at = db.Column(db.DateTime, default=now_eastern, nullable=False)
|
||||
|
||||
Reference in New Issue
Block a user