Aarón Contreras
Aarón Contreras
DTDrizzle Team
Created by Aarón Contreras on 2/24/2025 in #help
Column name `as string`, needed for performance?
example:
pgTable('tv_shows', {
id: serial('id' as string).primaryKey(),
name: text('name' as string)
.notNull()
.unique(),
channelId: integer('tv_channel_id' as string).references(() => tvChannels.id),
})
pgTable('tv_shows', {
id: serial('id' as string).primaryKey(),
name: text('name' as string)
.notNull()
.unique(),
channelId: integer('tv_channel_id' as string).references(() => tvChannels.id),
})
2 replies