Skip to content

Commit

Permalink
Docs: fix database schema for email verification table (#1277)
Browse files Browse the repository at this point in the history
  • Loading branch information
pilcrowonpaper authored Nov 24, 2023
1 parent b238569 commit dd0fc52
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions documentation/content/guidebook/password-reset-link/$nuxt.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions documentation/content/guidebook/password-reset-link/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit dd0fc52

Please sign in to comment.