Schema
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user