Node.js Drizzle PostgreSQL bigint 类型
Drizzle Node.js About 382 wordsbigint()
bigint({mode: "bigint"}),传入mode属性,指定bigint或number
import { bigint, pgTable, timestamp } from "drizzle-orm/pg-core";
const pageViewRecord = pgTable("record_page_view", {
id: bigint({mode: "bigint"}).primaryKey(),
createTs: timestamp({withTimezone: true}),
updateTs: timestamp({withTimezone: true}),
});
官方文档
Views: 139 · Posted: 2025-10-11
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb/LiteNote扫描下方二维码关注公众号和小程序↓↓↓
Loading...