From dd0fc52a46dd7e91fcdfb790239fe535a5abb6b0 Mon Sep 17 00:00:00 2001 From: pilcrow Date: Fri, 24 Nov 2023 23:35:47 +0900 Subject: [PATCH] Docs: fix database schema for email verification table (#1277) --- .../content/guidebook/email-verification-links/$express.md | 4 ++-- .../content/guidebook/email-verification-links/$nextjs-app.md | 4 ++-- .../guidebook/email-verification-links/$nextjs-pages.md | 4 ++-- .../content/guidebook/email-verification-links/$nuxt.md | 4 ++-- .../content/guidebook/email-verification-links/$sveltekit.md | 4 ++-- .../content/guidebook/email-verification-links/index.md | 4 ++-- .../content/guidebook/password-reset-link/$express.md | 4 ++-- .../content/guidebook/password-reset-link/$nextjs-app.md | 4 ++-- .../content/guidebook/password-reset-link/$nextjs-pages.md | 4 ++-- documentation/content/guidebook/password-reset-link/$nuxt.md | 4 ++-- .../content/guidebook/password-reset-link/$sveltekit.md | 4 ++-- documentation/content/guidebook/password-reset-link/index.md | 4 ++-- 12 files changed, 24 insertions(+), 24 deletions(-) diff --git a/documentation/content/guidebook/email-verification-links/$express.md b/documentation/content/guidebook/email-verification-links/$express.md index a8822d21a..ecc149586 100644 --- a/documentation/content/guidebook/email-verification-links/$express.md +++ b/documentation/content/guidebook/email-verification-links/$express.md @@ -45,8 +45,8 @@ Create a new `email_verification_token` table. This will have 3 fields. | name | type | primary | references | description | | --------- | --------------------------- | :-----: | ---------- | ------------------------------------------ | -| `id` | `string` | | | Token to send inside the verification link | -| `expires` | `bigint` (unsigned 8 bytes) | ✓ | | Expiration (in milliseconds) | +| `id` | `string` | ✓ | | Token to send inside the verification link | +| `expires` | `bigint` (unsigned 8 bytes) | | | Expiration (in milliseconds) | | `user_id` | `string` | | `user(id)` | | We'll be storing the expiration date as a `bigint` since Lucia uses handles expiration in milliseconds, but you can of course store it in seconds or the native `timestamp` type. Just make sure to adjust the expiration check accordingly. diff --git a/documentation/content/guidebook/email-verification-links/$nextjs-app.md b/documentation/content/guidebook/email-verification-links/$nextjs-app.md index 4b875e7da..58339008e 100644 --- a/documentation/content/guidebook/email-verification-links/$nextjs-app.md +++ b/documentation/content/guidebook/email-verification-links/$nextjs-app.md @@ -54,8 +54,8 @@ Create a new `email_verification_token` table. This will have 3 fields. | name | type | primary | references | description | | --------- | --------------------------- | :-----: | ---------- | ------------------------------------------ | -| `id` | `string` | | | Token to send inside the verification link | -| `expires` | `bigint` (unsigned 8 bytes) | ✓ | | Expiration (in milliseconds) | +| `id` | `string` | ✓ | | Token to send inside the verification link | +| `expires` | `bigint` (unsigned 8 bytes) | | | Expiration (in milliseconds) | | `user_id` | `string` | | `user(id)` | | We'll be storing the expiration date as a `bigint` since Lucia uses handles expiration in milliseconds, but you can of course store it in seconds or the native `timestamp` type. Just make sure to adjust the expiration check accordingly. diff --git a/documentation/content/guidebook/email-verification-links/$nextjs-pages.md b/documentation/content/guidebook/email-verification-links/$nextjs-pages.md index bac3520a1..8035cf4ae 100644 --- a/documentation/content/guidebook/email-verification-links/$nextjs-pages.md +++ b/documentation/content/guidebook/email-verification-links/$nextjs-pages.md @@ -54,8 +54,8 @@ Create a new `email_verification_token` table. This will have 3 fields. | name | type | primary | references | description | | --------- | --------------------------- | :-----: | ---------- | ------------------------------------------ | -| `id` | `string` | | | Token to send inside the verification link | -| `expires` | `bigint` (unsigned 8 bytes) | ✓ | | Expiration (in milliseconds) | +| `id` | `string` | ✓ | | Token to send inside the verification link | +| `expires` | `bigint` (unsigned 8 bytes) | | | Expiration (in milliseconds) | | `user_id` | `string` | | `user(id)` | | We'll be storing the expiration date as a `bigint` since Lucia uses handles expiration in milliseconds, but you can of course store it in seconds or the native `timestamp` type. Just make sure to adjust the expiration check accordingly. diff --git a/documentation/content/guidebook/email-verification-links/$nuxt.md b/documentation/content/guidebook/email-verification-links/$nuxt.md index 00c1d50cd..ba164a1c9 100644 --- a/documentation/content/guidebook/email-verification-links/$nuxt.md +++ b/documentation/content/guidebook/email-verification-links/$nuxt.md @@ -54,8 +54,8 @@ Create a new `email_verification_token` table. This will have 3 fields. | name | type | primary | references | description | | --------- | --------------------------- | :-----: | ---------- | ------------------------------------------ | -| `id` | `string` | | | Token to send inside the verification link | -| `expires` | `bigint` (unsigned 8 bytes) | ✓ | | Expiration (in milliseconds) | +| `id` | `string` | ✓ | | Token to send inside the verification link | +| `expires` | `bigint` (unsigned 8 bytes) | | | Expiration (in milliseconds) | | `user_id` | `string` | | `user(id)` | | We'll be storing the expiration date as a `bigint` since Lucia uses handles expiration in milliseconds, but you can of course store it in seconds or the native `timestamp` type. Just make sure to adjust the expiration check accordingly. diff --git a/documentation/content/guidebook/email-verification-links/$sveltekit.md b/documentation/content/guidebook/email-verification-links/$sveltekit.md index b5aafac50..749dfb528 100644 --- a/documentation/content/guidebook/email-verification-links/$sveltekit.md +++ b/documentation/content/guidebook/email-verification-links/$sveltekit.md @@ -54,8 +54,8 @@ Create a new `email_verification_token` table. This will have 3 fields. | name | type | primary | references | description | | --------- | --------------------------- | :-----: | ---------- | ------------------------------------------ | -| `id` | `string` | | | Token to send inside the verification link | -| `expires` | `bigint` (unsigned 8 bytes) | ✓ | | Expiration (in milliseconds) | +| `id` | `string` | ✓ | | Token to send inside the verification link | +| `expires` | `bigint` (unsigned 8 bytes) | | | Expiration (in milliseconds) | | `user_id` | `string` | | `user(id)` | | We'll be storing the expiration date as a `bigint` since Lucia uses handles expiration in milliseconds, but you can of course store it in seconds or the native `timestamp` type. Just make sure to adjust the expiration check accordingly. diff --git a/documentation/content/guidebook/email-verification-links/index.md b/documentation/content/guidebook/email-verification-links/index.md index 7f87b1d7b..24f209437 100644 --- a/documentation/content/guidebook/email-verification-links/index.md +++ b/documentation/content/guidebook/email-verification-links/index.md @@ -35,8 +35,8 @@ Create a new `email_verification_token` table. This will have 3 fields. | name | type | primary | references | description | | --------- | --------------------------- | :-----: | ---------- | ------------------------------------------ | -| `id` | `string` | | | Token to send inside the verification link | -| `expires` | `bigint` (unsigned 8 bytes) | ✓ | | Expiration (in milliseconds) | +| `id` | `string` | ✓ | | Token to send inside the verification link | +| `expires` | `bigint` (unsigned 8 bytes) | | | Expiration (in milliseconds) | | `user_id` | `string` | | `user(id)` | | We'll be storing the expiration date as a `bigint` since Lucia uses handles expiration in milliseconds, but you can of course store it in seconds or the native `timestamp` type. Just make sure to adjust the expiration check accordingly. diff --git a/documentation/content/guidebook/password-reset-link/$express.md b/documentation/content/guidebook/password-reset-link/$express.md index 81f95419a..323ec21ee 100644 --- a/documentation/content/guidebook/password-reset-link/$express.md +++ b/documentation/content/guidebook/password-reset-link/$express.md @@ -41,8 +41,8 @@ Create a new `password_reset_token` table. This will have 3 fields. | name | type | primary | references | description | | --------- | --------------------------- | :-----: | ---------- | ----------------------------------- | -| `id` | `string` | | | Token to send inside the reset link | -| `expires` | `bigint` (unsigned 8 bytes) | ✓ | | Expiration (in milliseconds) | +| `id` | `string` | ✓ | | Token to send inside the reset link | +| `expires` | `bigint` (unsigned 8 bytes) | | | Expiration (in milliseconds) | | `user_id` | `string` | | `user(id)` | | We'll be storing the expiration date as a `bigint` since Lucia uses handles expiration in milliseconds, but you can of course store it in seconds or the native `timestamp` type. Just make sure to adjust the expiration check accordingly. diff --git a/documentation/content/guidebook/password-reset-link/$nextjs-app.md b/documentation/content/guidebook/password-reset-link/$nextjs-app.md index 7c3d893b9..41c4f6942 100644 --- a/documentation/content/guidebook/password-reset-link/$nextjs-app.md +++ b/documentation/content/guidebook/password-reset-link/$nextjs-app.md @@ -44,8 +44,8 @@ Create a new `password_reset_token` table. This will have 3 fields. | name | type | primary | references | description | | --------- | --------------------------- | :-----: | ---------- | ----------------------------------- | -| `id` | `string` | | | Token to send inside the reset link | -| `expires` | `bigint` (unsigned 8 bytes) | ✓ | | Expiration (in milliseconds) | +| `id` | `string` | ✓ | | Token to send inside the reset link | +| `expires` | `bigint` (unsigned 8 bytes) | | | Expiration (in milliseconds) | | `user_id` | `string` | | `user(id)` | | We'll be storing the expiration date as a `bigint` since Lucia uses handles expiration in milliseconds, but you can of course store it in seconds or the native `timestamp` type. Just make sure to adjust the expiration check accordingly. diff --git a/documentation/content/guidebook/password-reset-link/$nextjs-pages.md b/documentation/content/guidebook/password-reset-link/$nextjs-pages.md index 23b44561e..c760629b4 100644 --- a/documentation/content/guidebook/password-reset-link/$nextjs-pages.md +++ b/documentation/content/guidebook/password-reset-link/$nextjs-pages.md @@ -41,8 +41,8 @@ Create a new `password_reset_token` table. This will have 3 fields. | name | type | primary | references | description | | --------- | --------------------------- | :-----: | ---------- | ----------------------------------- | -| `id` | `string` | | | Token to send inside the reset link | -| `expires` | `bigint` (unsigned 8 bytes) | ✓ | | Expiration (in milliseconds) | +| `id` | `string` | ✓ | | Token to send inside the reset link | +| `expires` | `bigint` (unsigned 8 bytes) | | | Expiration (in milliseconds) | | `user_id` | `string` | | `user(id)` | | We'll be storing the expiration date as a `bigint` since Lucia uses handles expiration in milliseconds, but you can of course store it in seconds or the native `timestamp` type. Just make sure to adjust the expiration check accordingly. diff --git a/documentation/content/guidebook/password-reset-link/$nuxt.md b/documentation/content/guidebook/password-reset-link/$nuxt.md index e5024a89f..08f5e9324 100644 --- a/documentation/content/guidebook/password-reset-link/$nuxt.md +++ b/documentation/content/guidebook/password-reset-link/$nuxt.md @@ -41,8 +41,8 @@ Create a new `password_reset_token` table. This will have 3 fields. | name | type | primary | references | description | | --------- | --------------------------- | :-----: | ---------- | ----------------------------------- | -| `id` | `string` | | | Token to send inside the reset link | -| `expires` | `bigint` (unsigned 8 bytes) | ✓ | | Expiration (in milliseconds) | +| `id` | `string` | ✓ | | Token to send inside the reset link | +| `expires` | `bigint` (unsigned 8 bytes) | | | Expiration (in milliseconds) | | `user_id` | `string` | | `user(id)` | | We'll be storing the expiration date as a `bigint` since Lucia uses handles expiration in milliseconds, but you can of course store it in seconds or the native `timestamp` type. Just make sure to adjust the expiration check accordingly. diff --git a/documentation/content/guidebook/password-reset-link/$sveltekit.md b/documentation/content/guidebook/password-reset-link/$sveltekit.md index 86c8ca261..a53cf701d 100644 --- a/documentation/content/guidebook/password-reset-link/$sveltekit.md +++ b/documentation/content/guidebook/password-reset-link/$sveltekit.md @@ -41,8 +41,8 @@ Create a new `password_reset_token` table. This will have 3 fields. | name | type | primary | references | description | | --------- | --------------------------- | :-----: | ---------- | ----------------------------------- | -| `id` | `string` | | | Token to send inside the reset link | -| `expires` | `bigint` (unsigned 8 bytes) | ✓ | | Expiration (in milliseconds) | +| `id` | `string` | ✓ | | Token to send inside the reset link | +| `expires` | `bigint` (unsigned 8 bytes) | | | Expiration (in milliseconds) | | `user_id` | `string` | | `user(id)` | | We'll be storing the expiration date as a `bigint` since Lucia uses handles expiration in milliseconds, but you can of course store it in seconds or the native `timestamp` type. Just make sure to adjust the expiration check accordingly. diff --git a/documentation/content/guidebook/password-reset-link/index.md b/documentation/content/guidebook/password-reset-link/index.md index 55c639a73..157b62ac8 100644 --- a/documentation/content/guidebook/password-reset-link/index.md +++ b/documentation/content/guidebook/password-reset-link/index.md @@ -34,8 +34,8 @@ Create a new `password_reset_token` table. This will have 3 fields. | name | type | primary | references | description | | --------- | --------------------------- | :-----: | ---------- | ----------------------------------- | -| `id` | `string` | | | Token to send inside the reset link | -| `expires` | `bigint` (unsigned 8 bytes) | ✓ | | Expiration (in milliseconds) | +| `id` | `string` | ✓ | | Token to send inside the reset link | +| `expires` | `bigint` (unsigned 8 bytes) | | | Expiration (in milliseconds) | | `user_id` | `string` | | `user(id)` | | We'll be storing the expiration date as a `bigint` since Lucia uses handles expiration in milliseconds, but you can of course store it in seconds or the native `timestamp` type. Just make sure to adjust the expiration check accordingly.