# HG changeset patch
# User Christophe de Vienne <christophe@cdevienne.info>
# Date 1736285000 -3600
#      Tue Jan 07 22:23:20 2025 +0100
# Node ID 35820482e5c8b1ecd7579d7bd4bfd4a808fa0c88
# Parent  9f0140baa028570a1d5f54c430bb28874c128825
models: regenerate

diff --git a/models/db_helpers.go b/models/db_helpers.go
--- a/models/db_helpers.go
+++ b/models/db_helpers.go
@@ -175,6 +175,9 @@
 	// EmailIDColumn is the name of the column containing field "ID" data
 	EmailIDColumn = "id"
 
+	// EmailMessageIDColumn is the name of the column containing field "MessageID" data
+	EmailMessageIDColumn = "message_id"
+
 	// EmailCreatedAtColumn is the name of the column containing field "CreatedAt" data
 	EmailCreatedAtColumn = "created_at"
 
@@ -454,6 +457,7 @@
 	)
 	// EmailDataColumns is the list of the columns for the Email structure, expect its primary key
 	EmailDataColumns = []string{
+		EmailMessageIDColumn,
 		EmailCreatedAtColumn,
 		EmailFromColumn,
 		EmailToColumn,
@@ -922,6 +926,8 @@
 		switch column {
 		case "id":
 			values[i] = s.ID
+		case "message_id":
+			values[i] = s.MessageID
 		case "created_at":
 			values[i] = s.CreatedAt
 		case "from_":
@@ -953,6 +959,8 @@
 		switch column {
 		case "id":
 			values["id"] = s.ID
+		case "message_id":
+			values["message_id"] = s.MessageID
 		case "created_at":
 			values["created_at"] = s.CreatedAt
 		case "from_":
@@ -979,6 +987,7 @@
 func NewEmailTableSchema() *EmailTableSchema {
 	t := EmailTableSchema{}
 	t.ID = NewColumn(&t, "id")
+	t.MessageID = NewColumn(&t, "message_id")
 	t.CreatedAt = NewColumn(&t, "created_at")
 	t.From = NewColumn(&t, "from_")
 	t.To = NewColumn(&t, "to_")
@@ -994,6 +1003,7 @@
 type EmailTableSchema struct {
 	alias string
 	ID Column
+	MessageID Column
 	CreatedAt Column
 	From Column
 	To Column
@@ -1032,6 +1042,7 @@
 func (t EmailTableSchema) As(name string) *EmailTableSchema {
 	t.alias = name
 	t.ID = NewColumn(&t, "id")
+	t.MessageID = NewColumn(&t, "message_id")
 	t.CreatedAt = NewColumn(&t, "created_at")
 	t.From = NewColumn(&t, "from_")
 	t.To = NewColumn(&t, "to_")