Skip to content
Snippets Groups Projects
Commit 35820482 authored by Christophe de Vienne's avatar Christophe de Vienne
Browse files

models: regenerate

parent 9f0140ba
No related branches found
No related tags found
No related merge requests found
...@@ -175,6 +175,9 @@ ...@@ -175,6 +175,9 @@
// EmailIDColumn is the name of the column containing field "ID" data // EmailIDColumn is the name of the column containing field "ID" data
EmailIDColumn = "id" 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 is the name of the column containing field "CreatedAt" data
EmailCreatedAtColumn = "created_at" EmailCreatedAtColumn = "created_at"
...@@ -454,6 +457,7 @@ ...@@ -454,6 +457,7 @@
) )
// EmailDataColumns is the list of the columns for the Email structure, expect its primary key // EmailDataColumns is the list of the columns for the Email structure, expect its primary key
EmailDataColumns = []string{ EmailDataColumns = []string{
EmailMessageIDColumn,
EmailCreatedAtColumn, EmailCreatedAtColumn,
EmailFromColumn, EmailFromColumn,
EmailToColumn, EmailToColumn,
...@@ -922,6 +926,8 @@ ...@@ -922,6 +926,8 @@
switch column { switch column {
case "id": case "id":
values[i] = s.ID values[i] = s.ID
case "message_id":
values[i] = s.MessageID
case "created_at": case "created_at":
values[i] = s.CreatedAt values[i] = s.CreatedAt
case "from_": case "from_":
...@@ -953,6 +959,8 @@ ...@@ -953,6 +959,8 @@
switch column { switch column {
case "id": case "id":
values["id"] = s.ID values["id"] = s.ID
case "message_id":
values["message_id"] = s.MessageID
case "created_at": case "created_at":
values["created_at"] = s.CreatedAt values["created_at"] = s.CreatedAt
case "from_": case "from_":
...@@ -979,6 +987,7 @@ ...@@ -979,6 +987,7 @@
func NewEmailTableSchema() *EmailTableSchema { func NewEmailTableSchema() *EmailTableSchema {
t := EmailTableSchema{} t := EmailTableSchema{}
t.ID = NewColumn(&t, "id") t.ID = NewColumn(&t, "id")
t.MessageID = NewColumn(&t, "message_id")
t.CreatedAt = NewColumn(&t, "created_at") t.CreatedAt = NewColumn(&t, "created_at")
t.From = NewColumn(&t, "from_") t.From = NewColumn(&t, "from_")
t.To = NewColumn(&t, "to_") t.To = NewColumn(&t, "to_")
...@@ -994,6 +1003,7 @@ ...@@ -994,6 +1003,7 @@
type EmailTableSchema struct { type EmailTableSchema struct {
alias string alias string
ID Column ID Column
MessageID Column
CreatedAt Column CreatedAt Column
From Column From Column
To Column To Column
...@@ -1032,6 +1042,7 @@ ...@@ -1032,6 +1042,7 @@
func (t EmailTableSchema) As(name string) *EmailTableSchema { func (t EmailTableSchema) As(name string) *EmailTableSchema {
t.alias = name t.alias = name
t.ID = NewColumn(&t, "id") t.ID = NewColumn(&t, "id")
t.MessageID = NewColumn(&t, "message_id")
t.CreatedAt = NewColumn(&t, "created_at") t.CreatedAt = NewColumn(&t, "created_at")
t.From = NewColumn(&t, "from_") t.From = NewColumn(&t, "from_")
t.To = NewColumn(&t, "to_") t.To = NewColumn(&t, "to_")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment