db changes
This commit is contained in:
@@ -12,7 +12,7 @@ import { tenants } from "./tenants"
|
|||||||
import { authUsers } from "./auth_users"
|
import { authUsers } from "./auth_users"
|
||||||
import { textTemplatePositionsEnum } from "./enums"
|
import { textTemplatePositionsEnum } from "./enums"
|
||||||
|
|
||||||
export const textTemplates = pgTable("texttemplates", {
|
export const texttemplates = pgTable("texttemplates", {
|
||||||
id: bigint("id", { mode: "number" })
|
id: bigint("id", { mode: "number" })
|
||||||
.primaryKey()
|
.primaryKey()
|
||||||
.generatedByDefaultAsIdentity(),
|
.generatedByDefaultAsIdentity(),
|
||||||
@@ -40,5 +40,5 @@ export const textTemplates = pgTable("texttemplates", {
|
|||||||
updatedBy: uuid("updated_by").references(() => authUsers.id),
|
updatedBy: uuid("updated_by").references(() => authUsers.id),
|
||||||
})
|
})
|
||||||
|
|
||||||
export type TextTemplate = typeof textTemplates.$inferSelect
|
export type TextTemplate = typeof texttemplates.$inferSelect
|
||||||
export type NewTextTemplate = typeof textTemplates.$inferInsert
|
export type NewTextTemplate = typeof texttemplates.$inferInsert
|
||||||
|
|||||||
Reference in New Issue
Block a user