@authhero/drizzle 0.44.4 → 0.45.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,9 +5,9 @@
5
5
  {
6
6
  "idx": 0,
7
7
  "version": "6",
8
- "when": 1776702334667,
9
- "tag": "0000_watery_loners",
8
+ "when": 1778321558011,
9
+ "tag": "0000_sloppy_forge",
10
10
  "breakpoints": true
11
11
  }
12
12
  ]
13
- }
13
+ }
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "type": "git",
12
12
  "url": "https://github.com/markusahlstrand/authhero"
13
13
  },
14
- "version": "0.44.4",
14
+ "version": "0.45.1",
15
15
  "files": [
16
16
  "dist",
17
17
  "src/schema",
@@ -34,7 +34,7 @@
34
34
  "dependencies": {
35
35
  "drizzle-orm": "^0.44.2",
36
36
  "nanoid": "^5.0.8",
37
- "@authhero/adapter-interfaces": "1.15.0"
37
+ "@authhero/adapter-interfaces": "1.17.0"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@hono/zod-openapi": "^0.19.2",
@@ -237,6 +237,33 @@ export const emailProviders = sqliteTable("email_providers", {
237
237
  updated_at: text("updated_at", { length: 35 }).notNull(),
238
238
  });
239
239
 
240
+ export const emailTemplates = sqliteTable(
241
+ "email_templates",
242
+ {
243
+ tenant_id: text("tenant_id", { length: 191 })
244
+ .notNull()
245
+ .references(() => tenants.id, { onDelete: "cascade" }),
246
+ template: text("template", { length: 64 }).notNull(),
247
+ body: text("body").notNull(),
248
+ from: text("from", { length: 255 }).notNull(),
249
+ subject: text("subject", { length: 255 }).notNull(),
250
+ syntax: text("syntax", { length: 16 }).notNull().default("liquid"),
251
+ result_url: text("result_url", { length: 2048 }),
252
+ url_lifetime_in_seconds: integer("url_lifetime_in_seconds"),
253
+ include_email_in_redirect: integer("include_email_in_redirect", {
254
+ mode: "boolean",
255
+ })
256
+ .notNull()
257
+ .default(false),
258
+ enabled: integer("enabled", { mode: "boolean" }).notNull().default(true),
259
+ created_at: text("created_at", { length: 35 }).notNull(),
260
+ updated_at: text("updated_at", { length: 35 }).notNull(),
261
+ },
262
+ (table) => [
263
+ primaryKey({ columns: [table.tenant_id, table.template] }),
264
+ ],
265
+ );
266
+
240
267
  export const hooks = sqliteTable(
241
268
  "hooks",
242
269
  {