fix(db): 修复 localhost 解析问题并成功推送基础架构表

This commit is contained in:
2026-04-27 19:03:15 +08:00
parent 577a4379cd
commit a592c18ba3
5 changed files with 99 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
import { pgTable, uuid, varchar, timestamp } from "drizzle-orm/pg-core";
export const users = pgTable("users", {
id: uuid("id").primaryKey().defaultRandom(),
username: varchar("username", { length: 50 }).notNull().unique(),
passwordHash: varchar("password_hash", { length: 255 }).notNull(),
createdAt: timestamp("created_at", { withTimezone: true, mode: "date" })
.defaultNow()
.notNull(),
});