Skip to content
This repository was archived by the owner on May 8, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@ yarn-error.log*

# local env files
.env
.env.local
.env.development.local
.env.test.local
.env.production.local
*.local

# turbo
.turbo
Expand Down
13 changes: 13 additions & 0 deletions drizzle/0000_bored_wilson_fisk.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
DO $$ BEGIN
CREATE TYPE "answer_types" AS ENUM('string');
EXCEPTION
WHEN duplicate_object THEN null;
END $$;
--> statement-breakpoint
CREATE TABLE IF NOT EXISTS "answers" (
"response_id" uuid NOT NULL,
"question_id" integer NOT NULL,
"type" "answer_types" NOT NULL,
"string_answer" text,
CONSTRAINT answers_response_id_question_id PRIMARY KEY("response_id","question_id")
);
64 changes: 64 additions & 0 deletions drizzle/meta/0000_snapshot.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"version": "5",
"dialect": "pg",
"id": "e22302ec-18e1-489b-9775-323ebe663674",
"prevId": "00000000-0000-0000-0000-000000000000",
"tables": {
"answers": {
"name": "answers",
"schema": "",
"columns": {
"response_id": {
"name": "response_id",
"type": "uuid",
"primaryKey": false,
"notNull": true
},
"question_id": {
"name": "question_id",
"type": "integer",
"primaryKey": false,
"notNull": true
},
"type": {
"name": "type",
"type": "answer_types",
"primaryKey": false,
"notNull": true
},
"string_answer": {
"name": "string_answer",
"type": "text",
"primaryKey": false,
"notNull": false
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {
"answers_response_id_question_id": {
"name": "answers_response_id_question_id",
"columns": [
"response_id",
"question_id"
]
}
},
"uniqueConstraints": {}
}
},
"enums": {
"answer_types": {
"name": "answer_types",
"values": {
"string": "string"
}
}
},
"schemas": {},
"_meta": {
"schemas": {},
"tables": {},
"columns": {}
}
}
13 changes: 13 additions & 0 deletions drizzle/meta/_journal.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"version": "5",
"dialect": "pg",
"entries": [
{
"idx": 0,
"version": "5",
"when": 1695338435199,
"tag": "0000_bored_wilson_fisk",
"breakpoints": true
}
]
}
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"autoprefixer": "^10.4.14",
"drizzle-kit": "^0.19.13",
"eslint": "^8.28.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-svelte": "^2.30.0",
Expand All @@ -42,8 +43,10 @@
"dependencies": {
"bits-ui": "^0.5.7",
"clsx": "^2.0.0",
"drizzle-orm": "^0.28.6",
"formsnap": "^0.1.3",
"lucide-svelte": "^0.279.0",
"postgres": "^3.3.5",
"sveltekit-superforms": "^1.7.1",
"tailwind-merge": "^1.14.0",
"tailwind-variants": "^0.1.14",
Expand Down
Loading