style: format and lint codebase using Biome v2
This commit is contained in:
+2
-2
@@ -5,9 +5,9 @@ import { files } from './schema';
|
||||
const client = postgres(process.env.DATABASE_URL!, {
|
||||
max: 10,
|
||||
idle_timeout: 20,
|
||||
connect_timeout: 10
|
||||
connect_timeout: 10,
|
||||
});
|
||||
|
||||
export const db = drizzle(client, { schema: { files } });
|
||||
export { files };
|
||||
export default db;
|
||||
export default db;
|
||||
|
||||
+4
-4
@@ -1,5 +1,5 @@
|
||||
import { pgTable, text, bigint, timestamp, uuid } from 'drizzle-orm/pg-core';
|
||||
import type { InferSelectModel, InferInsertModel } from 'drizzle-orm';
|
||||
import type { InferInsertModel, InferSelectModel } from 'drizzle-orm';
|
||||
import { bigint, pgTable, text, timestamp, uuid } from 'drizzle-orm/pg-core';
|
||||
|
||||
export const files = pgTable('files', {
|
||||
id: uuid('id').primaryKey().defaultRandom(),
|
||||
@@ -14,8 +14,8 @@ export const files = pgTable('files', {
|
||||
fileType: text('file_type').notNull(),
|
||||
uploaderId: bigint('uploader_id', { mode: 'number' }).notNull(),
|
||||
createdAt: timestamp('created_at').defaultNow().notNull(),
|
||||
updatedAt: timestamp('updated_at').defaultNow().notNull()
|
||||
updatedAt: timestamp('updated_at').defaultNow().notNull(),
|
||||
});
|
||||
|
||||
export type File = InferSelectModel<typeof files>;
|
||||
export type NewFile = InferInsertModel<typeof files>;
|
||||
export type NewFile = InferInsertModel<typeof files>;
|
||||
|
||||
Reference in New Issue
Block a user