-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(model): 添加了数据库模型的 列名 枚举,使用 database-columns 自动生成维护
- Loading branch information
Showing
6 changed files
with
140 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Generated by alioth-center database-columns. DO NOT EDIT. | ||
// Generated by alioth-center database-columns. DO NOT EDIT. | ||
// Generated by alioth-center database-columns. DO NOT EDIT. | ||
package model | ||
|
||
type accountCols struct { | ||
ID string | ||
Integration string | ||
UserID string | ||
Account string | ||
CreatedAt string | ||
UpdatedAt string | ||
} | ||
|
||
var AccountCols = &accountCols{ | ||
ID: "id", | ||
Integration: "integration", | ||
UserID: "user_id", | ||
Account: "account", | ||
CreatedAt: "created_at", | ||
UpdatedAt: "updated_at", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Generated by alioth-center database-columns. DO NOT EDIT. | ||
// Generated by alioth-center database-columns. DO NOT EDIT. | ||
// Generated by alioth-center database-columns. DO NOT EDIT. | ||
package model | ||
|
||
type clientCols struct { | ||
ID string | ||
Name string | ||
Secret string | ||
CreatedAt string | ||
UpdatedAt string | ||
} | ||
|
||
var ClientCols = &clientCols{ | ||
ID: "id", | ||
Name: "name", | ||
Secret: "secret", | ||
CreatedAt: "created_at", | ||
UpdatedAt: "updated_at", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Generated by alioth-center database-columns. DO NOT EDIT. | ||
// Generated by alioth-center database-columns. DO NOT EDIT. | ||
// Generated by alioth-center database-columns. DO NOT EDIT. | ||
package model | ||
|
||
type integrationCols struct { | ||
ID string | ||
Name string | ||
Secret1 string | ||
Secret2 string | ||
Secret3 string | ||
Secret4 string | ||
CreatedAt string | ||
UpdatedAt string | ||
} | ||
|
||
var IntegrationCols = &integrationCols{ | ||
ID: "id", | ||
Name: "name", | ||
Secret1: "secret1", | ||
Secret2: "secret2", | ||
Secret3: "secret3", | ||
Secret4: "secret4", | ||
CreatedAt: "created_at", | ||
UpdatedAt: "updated_at", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// Generated by alioth-center database-columns. DO NOT EDIT. | ||
// Generated by alioth-center database-columns. DO NOT EDIT. | ||
// Generated by alioth-center database-columns. DO NOT EDIT. | ||
package model | ||
|
||
type taskCols struct { | ||
ID string | ||
IntegrationID string | ||
UserID string | ||
ClientID string | ||
AccountID string | ||
TemplateID string | ||
Argument string | ||
Status string | ||
CreatedAt string | ||
UpdatedAt string | ||
} | ||
|
||
var TaskCols = &taskCols{ | ||
ID: "id", | ||
IntegrationID: "integration_id", | ||
UserID: "user_id", | ||
ClientID: "client_id", | ||
AccountID: "account_id", | ||
TemplateID: "template_id", | ||
Argument: "argument", | ||
Status: "status", | ||
CreatedAt: "created_at", | ||
UpdatedAt: "updated_at", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Generated by alioth-center database-columns. DO NOT EDIT. | ||
// Generated by alioth-center database-columns. DO NOT EDIT. | ||
// Generated by alioth-center database-columns. DO NOT EDIT. | ||
package model | ||
|
||
type templateCols struct { | ||
ID string | ||
Name string | ||
Content string | ||
Arguments string | ||
CreatedAt string | ||
UpdatedAt string | ||
} | ||
|
||
var TemplateCols = &templateCols{ | ||
ID: "id", | ||
Name: "name", | ||
Content: "content", | ||
Arguments: "arguments", | ||
CreatedAt: "created_at", | ||
UpdatedAt: "updated_at", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Generated by alioth-center database-columns. DO NOT EDIT. | ||
// Generated by alioth-center database-columns. DO NOT EDIT. | ||
// Generated by alioth-center database-columns. DO NOT EDIT. | ||
package model | ||
|
||
type userCols struct { | ||
ID string | ||
Type string | ||
Name string | ||
CreatedAt string | ||
UpdatedAt string | ||
} | ||
|
||
var UserCols = &userCols{ | ||
ID: "id", | ||
Type: "type", | ||
Name: "name", | ||
CreatedAt: "created_at", | ||
UpdatedAt: "updated_at", | ||
} |