auth+cli
This commit is contained in:
parent
314cbd37c7
commit
07522043b4
16 changed files with 870 additions and 38 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue