Officially documented release

This commit is contained in:
2025-11-10 10:10:46 +11:00
parent 1bb7661f94
commit 4c58351635
23 changed files with 282 additions and 214 deletions

View File

@@ -2,6 +2,19 @@ package models
import "time"
// DBAmendment is used to store any changes made to interpreter or client processed calls in the database, although theoretically it could be tailored to any table, as long as the amendments queue handles the application logic..
//
// - Id is an auto-incrementing integer, with no practical application.
// - ConversationId references the conversation ID of either the client or interpreter processed call.
// - AmendmentColumn is the name of the column to be amended.
// - AmendmentValue is the value to overwrite the amendment column's existing value with.
// - Requestor is a string reference as to who created the amendment.
// - RequestedAt is the creation time of the amendment.
//
// Table Schema:
//
// Primary Key: Id
// Indexes: Id, ConversationId, RequestedAt
type DBAmendment struct {
Id int `gorm:"primaryKey;autoIncrement"`
ConversationId string `gorm:"index"`