Skip to content

Commit

Permalink
feat: support to define auto recap rates
Browse files Browse the repository at this point in the history
Signed-off-by: Neko Ayaka <[email protected]>
  • Loading branch information
nekomeowww committed Dec 10, 2023
1 parent 90a5005 commit 868ef7f
Show file tree
Hide file tree
Showing 22 changed files with 807 additions and 185 deletions.
1 change: 1 addition & 0 deletions ent/migrate/schema.go

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

89 changes: 88 additions & 1 deletion ent/mutation.go

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

8 changes: 6 additions & 2 deletions ent/runtime.go

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

1 change: 1 addition & 0 deletions ent/schema/telegramchatautorecapsoptions.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ func (TelegramChatRecapsOptions) Fields() []ent.Field {
field.Int64("chat_id").Unique(),
field.Int("auto_recap_send_mode").Default(0),
field.Int64("manual_recap_rate_per_seconds").Default(0),
field.Int("auto_recap_rates_per_day").Default(0),
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/telegramchatrecapsoptions.go

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

10 changes: 10 additions & 0 deletions ent/telegramchatrecapsoptions/telegramchatrecapsoptions.go

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

45 changes: 45 additions & 0 deletions ent/telegramchatrecapsoptions/where.go

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

25 changes: 25 additions & 0 deletions ent/telegramchatrecapsoptions_create.go

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

Loading

0 comments on commit 868ef7f

Please sign in to comment.