Skip to content

Commit

Permalink
chore(model): 添加了数据库模型的 列名 枚举,使用 database-columns 自动生成维护
Browse files Browse the repository at this point in the history
  • Loading branch information
sunist-c committed Aug 5, 2024
1 parent 7a6b30e commit 06c5686
Show file tree
Hide file tree
Showing 6 changed files with 140 additions and 0 deletions.
22 changes: 22 additions & 0 deletions app/model/account_cols.gen.go
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",
}
20 changes: 20 additions & 0 deletions app/model/client_cols.gen.go
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",
}
26 changes: 26 additions & 0 deletions app/model/integration_cols.gen.go
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",
}
30 changes: 30 additions & 0 deletions app/model/task_cols.gen.go
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",
}
22 changes: 22 additions & 0 deletions app/model/template_cols.gen.go
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",
}
20 changes: 20 additions & 0 deletions app/model/user_cols.gen.go
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",
}

0 comments on commit 06c5686

Please sign in to comment.