Skip to content

Is there a auto-increment flag? #177

@Abhinav-676

Description

@Abhinav-676

Hello, I hope you guys are doing great.

I wanted to know, if the auto-increment flag for columns in supported, and if yes that how we can do it.

Is it something to do with the "defaultSql" parameter?
For Example:
export const usersTable = t("users", { id: c("bigint", {primaryKey: true, defaultSql: "GENERATED ALWAYS AS IDENTITY"}), })

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions