This commit is contained in:
2025-12-06 20:10:57 +01:00
parent d895583ea2
commit 1e71e54314
2 changed files with 6 additions and 6 deletions

View File

@@ -10,7 +10,7 @@ import {
import { tenants } from "./tenants"
import { authUsers } from "./auth_users"
export const productCategories = pgTable("productcategories", {
export const productcategories = pgTable("productcategories", {
id: bigint("id", { mode: "number" })
.primaryKey()
.generatedByDefaultAsIdentity(),
@@ -33,5 +33,5 @@ export const productCategories = pgTable("productcategories", {
updatedBy: uuid("updated_by").references(() => authUsers.id),
})
export type ProductCategory = typeof productCategories.$inferSelect
export type NewProductCategory = typeof productCategories.$inferInsert
export type ProductCategory = typeof productcategories.$inferSelect
export type NewProductCategory = typeof productcategories.$inferInsert

View File

@@ -11,7 +11,7 @@ import {
import { tenants } from "./tenants"
import { authUsers } from "./auth_users"
export const serviceCategories = pgTable("servicecategories", {
export const servicecategories = pgTable("servicecategories", {
id: bigint("id", { mode: "number" })
.primaryKey()
.generatedByDefaultAsIdentity(),
@@ -35,5 +35,5 @@ export const serviceCategories = pgTable("servicecategories", {
updatedBy: uuid("updated_by").references(() => authUsers.id),
})
export type ServiceCategory = typeof serviceCategories.$inferSelect
export type NewServiceCategory = typeof serviceCategories.$inferInsert
export type ServiceCategory = typeof servicecategories.$inferSelect
export type NewServiceCategory = typeof servicecategories.$inferInsert