mirror of
https://gitea.gofwd.group/dstrawsb/ballistic-builder.git
synced 2025-12-06 02:36:44 -05:00
changing plurals to single and proper-casing
This commit is contained in:
14
src/db/schema/Account.ts
Normal file
14
src/db/schema/Account.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { pgTable, integer, varchar } from "drizzle-orm/pg-core";
|
||||
import { sql } from "drizzle-orm";
|
||||
import { timestamps } from "./columns.helpers";
|
||||
|
||||
export const Account = pgTable("bal_accounts", {
|
||||
id: integer().primaryKey().generatedAlwaysAsIdentity({ name: "accounts_id_seq", startWith: 1, increment: 1, minValue: 1, maxValue: 2147483647, cache: 1 }),
|
||||
first_name: varchar({ length: 40 }),
|
||||
last_name: varchar({ length: 40 }),
|
||||
email: varchar({length: 100}),
|
||||
username: varchar({length:50}).notNull().unique(),
|
||||
password_hash: varchar({length:255}).notNull().unique(),
|
||||
|
||||
...timestamps
|
||||
})
|
||||
Reference in New Issue
Block a user