Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
rednerd
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
orus-io
rednerd
Commits
35820482
Commit
35820482
authored
3 months ago
by
Christophe de Vienne
Browse files
Options
Downloads
Patches
Plain Diff
models: regenerate
parent
9f0140ba
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
models/db_helpers.go
+11
-0
11 additions, 0 deletions
models/db_helpers.go
with
11 additions
and
0 deletions
models/db_helpers.go
+
11
−
0
View file @
35820482
...
@@ -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_"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment