-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
AI Phone Assistant #1190
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
AI Phone Assistant #1190
Changes from all commits
e4547ae
17c1740
324a0dc
b4ff123
5bf5d56
7c52eb8
96a610e
c3202d2
e066253
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| CREATE TABLE "mail0_jwks" ( | ||
| "id" text PRIMARY KEY NOT NULL, | ||
| "public_key" text NOT NULL, | ||
| "private_key" text NOT NULL, | ||
| "created_at" timestamp NOT NULL | ||
| ); | ||
| --> statement-breakpoint | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix invalid SQL comment syntax Proposed diff: ---> statement-breakpoint
+-- statement-breakpoint
🤖 Prompt for AI Agents |
||
| ALTER TABLE "mail0_user_settings" ALTER COLUMN "settings" SET DEFAULT '{"language":"en","timezone":"UTC","dynamicContent":false,"externalImages":true,"customPrompt":"","trustedSenders":[],"isOnboarded":false,"colorTheme":"system","zeroSignature":true}'::jsonb; | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Encrypt private keys at rest
Persisting
private_keyas plain text poses a security risk. Consider encrypting this column using Postgres’spgcrypto(e.g.pgp_sym_encrypt) or storing keys in a dedicated secrets manager/vault.🤖 Prompt for AI Agents
🛠️ Refactor suggestion
Use native UUID type for
idand default timestamp with timezoneSwitching
idtoUUIDwith a default generation function and usingTIMESTAMPTZforcreated_atwith a default ofnow()will improve consistency and avoid relying on external UUID generation.Proposed diff:
🤖 Prompt for AI Agents