Skip to content
Merged
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
54 changes: 54 additions & 0 deletions bun.lock

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion drizzle.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ import { type Config } from "drizzle-kit";
import { env } from "@/env";

export default {
schema: "./src/server/db/schema.ts",
schema: [
"./src/server/db/schema.ts",
// "./src/server/db/auth-schema.ts"
],
dialect: "postgresql",
dbCredentials: {
url: env.DATABASE_URL,
Expand Down
13 changes: 13 additions & 0 deletions drizzle/0000_classy_lilandra.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
CREATE TABLE "flipside_article" (
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
"user_id" text NOT NULL,
"url" text NOT NULL,
"image_url" text,
"title" text NOT NULL,
"description" text,
"tags" text,
"created_at" timestamp DEFAULT now() NOT NULL,
"updated_at" timestamp DEFAULT now() NOT NULL
);
--> statement-breakpoint
CREATE INDEX "title_idx" ON "flipside_article" USING btree ("title");
9 changes: 0 additions & 9 deletions drizzle/0000_harsh_iron_fist.sql

This file was deleted.

2 changes: 0 additions & 2 deletions drizzle/0001_glamorous_ben_parker.sql

This file was deleted.

5 changes: 0 additions & 5 deletions drizzle/0002_magical_nico_minoru.sql

This file was deleted.

1 change: 0 additions & 1 deletion drizzle/0003_perpetual_spectrum.sql

This file was deleted.

1 change: 0 additions & 1 deletion drizzle/0004_opposite_dark_phoenix.sql

This file was deleted.

43 changes: 36 additions & 7 deletions drizzle/meta/0000_snapshot.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"id": "d564ae8e-acdb-4f1d-8da9-325cc8bb8a5a",
"id": "a4eb6f81-6111-40ae-8ab1-f3b0c4148a2d",
"prevId": "00000000-0000-0000-0000-000000000000",
"version": "7",
"dialect": "postgresql",
"tables": {
"public.flipside_articles": {
"name": "flipside_articles",
"public.flipside_article": {
"name": "flipside_article",
"schema": "",
"columns": {
"id": {
Expand All @@ -17,7 +17,7 @@
},
"user_id": {
"name": "user_id",
"type": "uuid",
"type": "text",
"primaryKey": false,
"notNull": true
},
Expand All @@ -27,11 +27,17 @@
"primaryKey": false,
"notNull": true
},
"image_url": {
"name": "image_url",
"type": "text",
"primaryKey": false,
"notNull": false
},
"title": {
"name": "title",
"type": "text",
"primaryKey": false,
"notNull": false
"notNull": true
},
"description": {
"name": "description",
Expand All @@ -49,11 +55,34 @@
"name": "created_at",
"type": "timestamp",
"primaryKey": false,
"notNull": false,
"notNull": true,
"default": "now()"
},
"updated_at": {
"name": "updated_at",
"type": "timestamp",
"primaryKey": false,
"notNull": true,
"default": "now()"
}
},
"indexes": {},
"indexes": {
"title_idx": {
"name": "title_idx",
"columns": [
{
"expression": "title",
"isExpression": false,
"asc": true,
"nulls": "last"
}
],
"isUnique": false,
"concurrently": false,
"method": "btree",
"with": {}
}
},
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
Expand Down
92 changes: 0 additions & 92 deletions drizzle/meta/0001_snapshot.json

This file was deleted.

105 changes: 0 additions & 105 deletions drizzle/meta/0002_snapshot.json

This file was deleted.

Loading
Loading