Skip to content

Commit

Permalink
feat: split out the chat migration and welcome message i18n (#191)
Browse files Browse the repository at this point in the history
Signed-off-by: Neko Ayaka <[email protected]>
  • Loading branch information
nekomeowww committed Mar 15, 2024
1 parent 9e3c8e2 commit 6a8a930
Show file tree
Hide file tree
Showing 24 changed files with 563 additions and 79 deletions.
18 changes: 17 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,23 @@
# IDE
.vscode/
.idea/

# Created by https://www.gitignore.io/api/visualstudiocode
# Edit at https://www.gitignore.io/?templates=visualstudiocode

### VisualStudioCode ###
# Maybe .vscode/**/* instead - see comments
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

### VisualStudioCode Patch ###
# Ignore all local history of files
**/.history

# End of https://www.gitignore.io/api/visualstudiocode

# Build / Release
*.exe
*.exe~
Expand Down
7 changes: 7 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"go.inferGopath": false,
"cSpell.words": [
"goopenai",
"telegramchatfeatureflags"
]
}
3 changes: 2 additions & 1 deletion ent/migrate/schema.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

56 changes: 55 additions & 1 deletion ent/mutation.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 10 additions & 2 deletions ent/runtime.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion ent/schema/telegramchatfeatureflags.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ func (TelegramChatFeatureFlags) Fields() []ent.Field {
field.Int64("chat_id").Unique(),
field.Text("chat_type"),
field.Text("chat_title").Default(""),
field.Bool("feature_chat_histories_recap"),
field.Bool("feature_chat_histories_recap").Default(false),
field.Text("feature_language").Default(""),
field.Int64("created_at").DefaultFunc(func() int64 { return time.Now().UnixMilli() }),
field.Int64("updated_at").DefaultFunc(func() int64 { return time.Now().UnixMilli() }),
}
Expand Down
13 changes: 12 additions & 1 deletion ent/telegramchatfeatureflags.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions ent/telegramchatfeatureflags/telegramchatfeatureflags.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

70 changes: 70 additions & 0 deletions ent/telegramchatfeatureflags/where.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6a8a930

Please sign in to comment.