This commit is contained in:
pavel 2026-05-15 17:40:09 +02:00
commit 07522043b4
16 changed files with 870 additions and 38 deletions

View file

@ -41,6 +41,11 @@ func (a *App) migrate(ctx context.Context) error {
value TEXT NOT NULL,
UNIQUE(project_id, key)
);`,
`CREATE TABLE IF NOT EXISTS user_webhook_tokens (
user_id TEXT PRIMARY KEY,
token TEXT NOT NULL,
created_at TIMESTAMPTZ NOT NULL DEFAULT NOW()
);`,
}
for _, q := range ddl {
if _, err := a.db.ExecContext(ctx, q); err != nil {