Skip to content

Commit d6959b1

Browse files
committed
chore(db,user): remove indirect Drizzle relations
1 parent 4cb1eb0 commit d6959b1

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/lib/drizzle/schema/user.table.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
import { relations } from "drizzle-orm";
22
import { pgTable, text, uuid } from "drizzle-orm/pg-core";
33

4-
import { comments } from "./comment.table";
54
import { defaultDate, defaultId } from "./constants";
6-
import { downvotes } from "./downvote.table";
75
import { posts } from "./post.table";
8-
import { upvotes } from "./upvote.table";
96
import { usersToOrganizations } from "./userToOrganization.table";
107

118
import type { InferInsertModel, InferSelectModel } from "drizzle-orm";
@@ -30,9 +27,6 @@ export const users = pgTable("user", {
3027
export const userRelations = relations(users, ({ many }) => ({
3128
organizations: many(usersToOrganizations),
3229
posts: many(posts),
33-
comments: many(comments),
34-
upvotes: many(upvotes),
35-
downvotes: many(downvotes),
3630
}));
3731

3832
/**

0 commit comments

Comments
 (0)