I am new ? help
export
const
postCommentsTable = pgTable("post_comments", {
id: uuid("id").defaultRandom().primaryKey(),
postId: uuid("post_id").notNull().references(()
=>
postsTable.id, { onDelete: "cascade" }),
userId: uuid("user_id").notNull().references(()
=>
userTable.id),
parentId: uuid("parent_id").references(()
=>
postCommentsTable.id),
content: text("content").notNull(),
createdAt: timestamp("created_at").defaultNow(),
});
This gives error how do I refrence a comment in a post comment ?
Posted Jul 19, 2025, 7:42 PM UTC
01