Ali
Ali
Explore posts from servers
DTDrizzle Team
Created by Ali on 11/3/2024 in #help
Depreciated table
Hi everyone, pgTable is marked here as depreciated but I can't understand why :
export const clinicsSessions = pgTable(
'clinicsSessions',
{
id: text('id')
.primaryKey()
.$defaultFn(() => crypto.randomUUID()),
year: integer('year').notNull(),
month: integer('month').notNull(),
},
(t) => ({
unq: unique().on(t.year, t.month),
})
);
export const clinicsSessions = pgTable(
'clinicsSessions',
{
id: text('id')
.primaryKey()
.$defaultFn(() => crypto.randomUUID()),
year: integer('year').notNull(),
month: integer('month').notNull(),
},
(t) => ({
unq: unique().on(t.year, t.month),
})
);
10 replies
TTCTheo's Typesafe Cult
Created by Ali on 6/5/2023 in #questions
Best node local smtp server while you dev ?
what are some great local smtp server solutions you use to intercept all mails while you dev ?
2 replies
TTCTheo's Typesafe Cult
Created by Ali on 6/4/2023 in #questions
Best way to store heavily read/edited pdf files : mysql BLOB in db or store as files
I'm building an app that works heavily on pdf files (constantly stored and read , modified ) , would it be to store them in a file storage system and and load bytes to edit them or store them directly as bytes in the db. Files would typically be 100kb - 1/2 mb max. I'm confortable with either Prisma or Drizzle. I'm also using Planetscale and Uploadthing.
4 replies