From 6db108562dc8d2717916a8dfc7e98e27852f1aed Mon Sep 17 00:00:00 2001 From: oppiliappan Date: Thu, 18 Jun 2026 13:31:37 +0100 Subject: [PATCH] appview/db: add table for onboarding flow Signed-off-by: oppiliappan --- appview/db/db.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/appview/db/db.go b/appview/db/db.go index a9341edf..507104b5 100644 --- a/appview/db/db.go +++ b/appview/db/db.go @@ -692,6 +692,14 @@ func Make(ctx context.Context, dbPath string) (*DB, error) { check (did <> subject_did) ); + create table if not exists onboarding ( + did text primary key, + step integer not null default 0, + status text not null default 'in_progress' + check (status in ('in_progress','completed','skipped')), + created text not null default (strftime('%Y-%m-%dT%H:%M:%SZ', 'now')), + updated text not null default (strftime('%Y-%m-%dT%H:%M:%SZ', 'now')) + ); create table if not exists migrations ( id integer primary key autoincrement, -- 2.51.2