Skip to content

feat: split out the chat migration and welcome message i18n #191

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading