nqhtrung
nqhtrung
DTDrizzle Team
Created by nqhtrung on 1/19/2024 in #help
drizzle infers incorrect type of decimal
No description
2 replies
DTDrizzle Team
Created by nqhtrung on 1/10/2024 in #help
Drizzle kit drops and re-adds constraint
No description
2 replies
DTDrizzle Team
Created by nqhtrung on 12/17/2023 in #help
Is drizzle-kit supposed to include existings table in the migration file?
No description
1 replies
DTDrizzle Team
Created by nqhtrung on 12/16/2023 in #help
introspect:pg generates wrong default values
No description
1 replies
DTDrizzle Team
Created by nqhtrung on 12/15/2023 in #help
findFirst should return optional object
No description
4 replies
DTDrizzle Team
Created by nqhtrung on 8/4/2023 in #help
How to implement interface for table?
Say I have an interface of User
interface User {
id: string,
name: string,
age: number
}
interface User {
id: string,
name: string,
age: number
}
and this is how I declare my schema
export const user = pgTable("user", {
id: serial("id"),
name: text("name"),
age: integer("age"
});
export const user = pgTable("user", {
id: serial("id"),
name: text("name"),
age: integer("age"
});
How do I make sure that the user table implement the User interface that I have declared?
5 replies