Skip to content

Commit 177e2dd

Browse files
Copilothotlong
andcommitted
Update comments to reflect snake_case field names
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 3ae4456 commit 177e2dd

4 files changed

Lines changed: 22 additions & 22 deletions

File tree

packages/plugins/plugin-auth/src/objects/auth-account.object.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@ import { ObjectSchema, Field } from '@objectstack/spec/data';
77
*
88
* Uses better-auth's native schema for seamless migration:
99
* - id: string
10-
* - createdAt: Date
11-
* - updatedAt: Date
12-
* - providerId: string (e.g., 'google', 'github')
13-
* - accountId: string (provider's user ID)
14-
* - userId: string (link to user table)
15-
* - accessToken: string | null
16-
* - refreshToken: string | null
17-
* - idToken: string | null
18-
* - accessTokenExpiresAt: Date | null
19-
* - refreshTokenExpiresAt: Date | null
10+
* - created_at: Date
11+
* - updated_at: Date
12+
* - provider_id: string (e.g., 'google', 'github')
13+
* - account_id: string (provider's user ID)
14+
* - user_id: string (link to user table)
15+
* - access_token: string | null
16+
* - refresh_token: string | null
17+
* - id_token: string | null
18+
* - access_token_expires_at: Date | null
19+
* - refresh_token_expires_at: Date | null
2020
* - scope: string | null
2121
* - password: string | null (for email/password provider)
2222
*/

packages/plugins/plugin-auth/src/objects/auth-session.object.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ import { ObjectSchema, Field } from '@objectstack/spec/data';
77
*
88
* Uses better-auth's native schema for seamless migration:
99
* - id: string
10-
* - createdAt: Date
11-
* - updatedAt: Date
12-
* - userId: string
13-
* - expiresAt: Date
10+
* - created_at: Date
11+
* - updated_at: Date
12+
* - user_id: string
13+
* - expires_at: Date
1414
* - token: string
15-
* - ipAddress: string | null
16-
* - userAgent: string | null
15+
* - ip_address: string | null
16+
* - user_agent: string | null
1717
*/
1818
export const AuthSession = ObjectSchema.create({
1919
name: 'session',

packages/plugins/plugin-auth/src/objects/auth-user.object.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ import { ObjectSchema, Field } from '@objectstack/spec/data';
77
*
88
* Uses better-auth's native schema for seamless migration:
99
* - id: string
10-
* - createdAt: Date
11-
* - updatedAt: Date
10+
* - created_at: Date
11+
* - updated_at: Date
1212
* - email: string (unique, lowercase)
13-
* - emailVerified: boolean
13+
* - email_verified: boolean
1414
* - name: string
1515
* - image: string | null
1616
*/

packages/plugins/plugin-auth/src/objects/auth-verification.object.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ import { ObjectSchema, Field } from '@objectstack/spec/data';
77
*
88
* Uses better-auth's native schema for seamless migration:
99
* - id: string
10-
* - createdAt: Date
11-
* - updatedAt: Date
10+
* - created_at: Date
11+
* - updated_at: Date
1212
* - value: string (verification token/code)
13-
* - expiresAt: Date
13+
* - expires_at: Date
1414
* - identifier: string (email or phone number)
1515
*/
1616
export const AuthVerification = ObjectSchema.create({

0 commit comments

Comments
 (0)