Skip to content
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

feat (api): create forms and retrieve form data programmatically #64

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ services:
- POSTGRES_PASSWORD=password
- POSTGRES_DB=formbase
ports:
- "54321:5432"
- "5432:5432"
volumes:
- formbase-db:/var/lib/postgresql/data

Expand Down
9 changes: 9 additions & 0 deletions drizzle/0001_sudden_crusher_hogan.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
CREATE TABLE IF NOT EXISTS "formbase_api_keys" (
"id" text PRIMARY KEY NOT NULL,
"user_id" text NOT NULL,
"key" text NOT NULL,
"name" text NOT NULL,
"created_at" timestamp DEFAULT now() NOT NULL
);
--> statement-breakpoint
CREATE INDEX IF NOT EXISTS "api_key_user_idx" ON "formbase_api_keys" ("user_id");
Loading
Loading