Skip to content
This repository has been archived by the owner on Sep 29, 2024. It is now read-only.

Commit

Permalink
fix: fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ArshiLamba committed Aug 7, 2024
1 parent 72ba2ad commit 8551f22
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions server/src/db/schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,20 +61,6 @@ export const usersRelations = relations(usersTable, ({ many }) => ({
export type InsertUser = typeof usersTable.$inferInsert;
export type SelectUser = typeof usersTable.$inferSelect;

// Define the schema for the dashboard table
export const dashboardTable = pgTable('dashboard', {
id: serial('id').primaryKey(),
name: text('name').notNull(),
description: text('description'),
createdAt: timestamp('created_at').notNull().defaultNow(),
updatedAt: timestamp('updated_at')
.notNull()
.$onUpdate(() => new Date()),
});

// Define types for insertion and selection
export type InsertDashboard = typeof dashboardTable.$inferInsert;
export type SelectDashboard = typeof dashboardTable.$inferSelect;
/**
* Feedback
*/
Expand Down

0 comments on commit 8551f22

Please sign in to comment.