22 * This file is auto-generated. Do not edit this file manually.
33 * To regenerate the schema, run:
44 * `npx @better-auth/cli generate --output undefined -y`
5- *
5+ *
66 * To customize the schema, generate to an alternate file and import
77 * the table definitions to your schema file. See
88 * https://labs.convex.dev/better-auth/features/local-install#adding-custom-indexes.
@@ -25,7 +25,7 @@ export const tables = {
2525 banReason : v . optional ( v . union ( v . null ( ) , v . string ( ) ) ) ,
2626 banExpires : v . optional ( v . union ( v . null ( ) , v . number ( ) ) ) ,
2727 } )
28- . index ( "email_name" , [ "email" , "name" ] )
28+ . index ( "email_name" , [ "email" , "name" ] )
2929 . index ( "name" , [ "name" ] )
3030 . index ( "userId" , [ "userId" ] ) ,
3131 session : defineTable ( {
@@ -39,7 +39,7 @@ export const tables = {
3939 impersonatedBy : v . optional ( v . union ( v . null ( ) , v . string ( ) ) ) ,
4040 } )
4141 . index ( "expiresAt" , [ "expiresAt" ] )
42- . index ( "expiresAt_userId" , [ "expiresAt" , "userId" ] )
42+ . index ( "expiresAt_userId" , [ "expiresAt" , "userId" ] )
4343 . index ( "token" , [ "token" ] )
4444 . index ( "userId" , [ "userId" ] ) ,
4545 account : defineTable ( {
@@ -57,8 +57,8 @@ export const tables = {
5757 updatedAt : v . number ( ) ,
5858 } )
5959 . index ( "accountId" , [ "accountId" ] )
60- . index ( "accountId_providerId" , [ "accountId" , "providerId" ] )
61- . index ( "providerId_userId" , [ "providerId" , "userId" ] )
60+ . index ( "accountId_providerId" , [ "accountId" , "providerId" ] )
61+ . index ( "providerId_userId" , [ "providerId" , "userId" ] )
6262 . index ( "userId" , [ "userId" ] ) ,
6363 verification : defineTable ( {
6464 identifier : v . string ( ) ,
@@ -79,14 +79,12 @@ export const tables = {
7979 key : v . optional ( v . union ( v . null ( ) , v . string ( ) ) ) ,
8080 count : v . optional ( v . union ( v . null ( ) , v . number ( ) ) ) ,
8181 lastRequest : v . optional ( v . union ( v . null ( ) , v . number ( ) ) ) ,
82- } )
83- . index ( "key" , [ "key" ] ) ,
82+ } ) . index ( "key" , [ "key" ] ) ,
8483 ratelimit : defineTable ( {
8584 key : v . string ( ) ,
8685 count : v . number ( ) ,
8786 lastRequest : v . number ( ) ,
88- } )
89- . index ( "key" , [ "key" ] ) ,
87+ } ) . index ( "key" , [ "key" ] ) ,
9088} ;
9189
9290const schema = defineSchema ( tables ) ;
0 commit comments