export const comments = mysqlTable(
'comments',{
id: serial('id').primaryKey(),
postId: int('post_id'),
comment: text('content').notNull(),
authorId: int('author_Id').notNull(),
parentId: int('parent_id'),
likes: int('likes').default(0),
},
);
export const comments = mysqlTable(
'comments',{
id: serial('id').primaryKey(),
postId: int('post_id'),
comment: text('content').notNull(),
authorId: int('author_Id').notNull(),
parentId: int('parent_id'),
likes: int('likes').default(0),
},
);