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
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bun run test
bun test
Copy link

Copilot AI Jan 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test script has been removed from package.json at the root level but the pre-commit hook still references 'bun test'. While 'bun test' will still work (it's a built-in Bun command), this creates an inconsistency in how tests are run. Consider either keeping the test script for consistency or documenting why it was removed.

Copilot uses AI. Check for mistakes.
bun lint-staged
2 changes: 1 addition & 1 deletion backend/drizzle.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { defineConfig } from 'drizzle-kit'

export default defineConfig({
dialect: 'sqlite',
schema: './src/db/schema/index.ts',
schema: './src/db/tables/**/*.table.ts',
out: './drizzle',
dbCredentials: {
url: Bun.env.DB_URL,
Expand Down

This file was deleted.

122 changes: 0 additions & 122 deletions backend/drizzle/20251230205121_perpetual_captain_britain/snapshot.json

This file was deleted.

37 changes: 37 additions & 0 deletions backend/drizzle/20260101190033_fantastic_spectrum/migration.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
CREATE TABLE `communities` (
`id` integer PRIMARY KEY AUTOINCREMENT,
`owner_id` integer NOT NULL,
`name` text NOT NULL,
`created_at` integer DEFAULT (unixepoch()) NOT NULL,
CONSTRAINT `fk_communities_owner_id_users_id_fk` FOREIGN KEY (`owner_id`) REFERENCES `users`(`id`)
);
--> statement-breakpoint
CREATE TABLE `community_members` (
`id` integer PRIMARY KEY AUTOINCREMENT,
`community_id` integer NOT NULL,
`user_id` integer NOT NULL,
`role` text DEFAULT 'member' NOT NULL,
`created_at` integer DEFAULT (unixepoch()) NOT NULL,
CONSTRAINT `fk_community_members_community_id_communities_id_fk` FOREIGN KEY (`community_id`) REFERENCES `communities`(`id`) ON DELETE CASCADE,
CONSTRAINT `fk_community_members_user_id_users_id_fk` FOREIGN KEY (`user_id`) REFERENCES `users`(`id`) ON DELETE CASCADE
);
--> statement-breakpoint
CREATE TABLE `invitation_links` (
`id` integer PRIMARY KEY AUTOINCREMENT,
`community_id` integer NOT NULL,
`link` text NOT NULL UNIQUE,
`expires_at` integer,
`created_at` integer DEFAULT (unixepoch()) NOT NULL,
CONSTRAINT `fk_invitation_links_community_id_communities_id_fk` FOREIGN KEY (`community_id`) REFERENCES `communities`(`id`) ON DELETE CASCADE
);
--> statement-breakpoint
CREATE TABLE `users` (
`id` integer PRIMARY KEY AUTOINCREMENT,
`name` text,
`username` text NOT NULL UNIQUE,
`email` text NOT NULL UNIQUE,
`email_confirmed` integer DEFAULT false NOT NULL,
`password_hash` text NOT NULL,
`created_at` integer DEFAULT (unixepoch()) NOT NULL,
`updated_at` integer DEFAULT (unixepoch()) NOT NULL
);
Loading