Skip to content

Commit

Permalink
feat: nillable acc session
Browse files Browse the repository at this point in the history
  • Loading branch information
ernado committed Dec 8, 2024
1 parent 7a9bc1c commit 5f7c87d
Show file tree
Hide file tree
Showing 12 changed files with 20 additions and 198 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@ build:
check_generated: generate
git diff --exit-code
.PHONY: check_generated

forward_psql:
kubectl -n faster port-forward svc/postgresql 15432:5432
1 change: 0 additions & 1 deletion internal/ent/migrate/schema.go

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

58 changes: 2 additions & 56 deletions internal/ent/mutation.go

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

3 changes: 1 addition & 2 deletions internal/ent/schema/telegram_account.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@ func (TelegramAccount) Fields() []ent.Field {
field.String("id").Comment("Phone number without +"),
field.String("code"),
field.Time("code_at"),
field.Bytes("data"),
field.Enum("state").
Values("New", "CodeSent", "Active", "Error").Default("New"),
field.String("status"),
field.Bytes("session"),
field.Bytes("session").Nillable(),
}
}

Expand Down
23 changes: 7 additions & 16 deletions internal/ent/telegramaccount.go

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

3 changes: 0 additions & 3 deletions internal/ent/telegramaccount/telegramaccount.go

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

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

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

55 changes: 1 addition & 54 deletions internal/ent/telegramaccount_create.go

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

Loading

0 comments on commit 5f7c87d

Please sign in to comment.