1- // Generated by Xata Codegen 0.26.7 . Please do not edit.
2- import { buildClient } from ' @xata.io/client' ;
1+ // Generated by Xata Codegen 0.30.1 . Please do not edit.
2+ import { buildClient } from " @xata.io/client" ;
33import type {
44 BaseClientOptions ,
55 SchemaInference ,
6- XataRecord
7- } from ' @xata.io/client' ;
6+ XataRecord ,
7+ } from " @xata.io/client" ;
88
99const tables = [
1010 {
11- name : ' reports' ,
11+ name : " reports" ,
1212 columns : [
13- { name : ' repoId' , type : ' int' , unique : true } ,
14- { name : ' repoAuthor' , type : ' string' } ,
13+ { name : " repoId" , type : " int" , unique : true } ,
14+ { name : " repoAuthor" , type : " string" } ,
1515 {
16- name : ' message' ,
17- type : ' text' ,
16+ name : " message" ,
17+ type : " text" ,
1818 notNull : true ,
19- defaultValue : ' No Message'
19+ defaultValue : " No Message" ,
2020 } ,
21- { name : ' user' , type : ' link' , link : { table : ' nextauth_users' } } ,
22- { name : ' valid' , type : ' bool' , notNull : true , defaultValue : ' true' } ,
23- { name : ' repoUrl' , type : ' string' , unique : true }
24- ]
21+ { name : " user" , type : " link" , link : { table : " nextauth_users" } } ,
22+ { name : " valid" , type : " bool" , notNull : true , defaultValue : " true" } ,
23+ { name : " repoUrl" , type : " string" , unique : true } ,
24+ ] ,
2525 } ,
2626 {
27- name : ' nextauth_users' ,
27+ name : " nextauth_users" ,
2828 columns : [
29- { name : ' email' , type : ' email' } ,
30- { name : ' emailVerified' , type : ' datetime' } ,
31- { name : ' name' , type : ' string' } ,
32- { name : ' image' , type : ' string' }
29+ { name : " email" , type : " email" } ,
30+ { name : " emailVerified" , type : " datetime" } ,
31+ { name : " name" , type : " string" } ,
32+ { name : " image" , type : " string" } ,
3333 ] ,
3434 revLinks : [
35- { column : 'user' , table : 'nextauth_accounts' } ,
36- { column : 'user' , table : 'nextauth_users_accounts' } ,
37- { column : 'user' , table : 'nextauth_users_sessions' } ,
38- { column : 'user' , table : 'nextauth_sessions' } ,
39- { column : 'user' , table : 'reports' }
40- ]
35+ { column : "user" , table : "nextauth_accounts" } ,
36+ { column : "user" , table : "nextauth_users_accounts" } ,
37+ { column : "user" , table : "nextauth_users_sessions" } ,
38+ { column : "user" , table : "nextauth_sessions" } ,
39+ { column : "user" , table : "reports" } ,
40+ { column : "user" , table : "bookmarks" } ,
41+ ] ,
4142 } ,
4243 {
43- name : ' nextauth_accounts' ,
44+ name : " nextauth_accounts" ,
4445 columns : [
45- { name : ' user' , type : ' link' , link : { table : ' nextauth_users' } } ,
46- { name : ' type' , type : ' string' } ,
47- { name : ' provider' , type : ' string' } ,
48- { name : ' providerAccountId' , type : ' string' } ,
49- { name : ' refresh_token' , type : ' string' } ,
50- { name : ' access_token' , type : ' string' } ,
51- { name : ' expires_at' , type : ' int' } ,
52- { name : ' token_type' , type : ' string' } ,
53- { name : ' scope' , type : ' string' } ,
54- { name : ' id_token' , type : ' text' } ,
55- { name : ' session_state' , type : ' string' }
46+ { name : " user" , type : " link" , link : { table : " nextauth_users" } } ,
47+ { name : " type" , type : " string" } ,
48+ { name : " provider" , type : " string" } ,
49+ { name : " providerAccountId" , type : " string" } ,
50+ { name : " refresh_token" , type : " string" } ,
51+ { name : " access_token" , type : " string" } ,
52+ { name : " expires_at" , type : " int" } ,
53+ { name : " token_type" , type : " string" } ,
54+ { name : " scope" , type : " string" } ,
55+ { name : " id_token" , type : " text" } ,
56+ { name : " session_state" , type : " string" } ,
5657 ] ,
57- revLinks : [ { column : ' account' , table : ' nextauth_users_accounts' } ]
58+ revLinks : [ { column : " account" , table : " nextauth_users_accounts" } ] ,
5859 } ,
5960 {
60- name : ' nextauth_verificationTokens' ,
61+ name : " nextauth_verificationTokens" ,
6162 columns : [
62- { name : ' identifier' , type : ' string' } ,
63- { name : ' token' , type : ' string' } ,
64- { name : ' expires' , type : ' datetime' }
65- ]
63+ { name : " identifier" , type : " string" } ,
64+ { name : " token" , type : " string" } ,
65+ { name : " expires" , type : " datetime" } ,
66+ ] ,
6667 } ,
6768 {
68- name : ' nextauth_users_accounts' ,
69+ name : " nextauth_users_accounts" ,
6970 columns : [
70- { name : ' user' , type : ' link' , link : { table : ' nextauth_users' } } ,
71- { name : ' account' , type : ' link' , link : { table : ' nextauth_accounts' } }
72- ]
71+ { name : " user" , type : " link" , link : { table : " nextauth_users" } } ,
72+ { name : " account" , type : " link" , link : { table : " nextauth_accounts" } } ,
73+ ] ,
7374 } ,
7475 {
75- name : ' nextauth_users_sessions' ,
76+ name : " nextauth_users_sessions" ,
7677 columns : [
77- { name : ' user' , type : ' link' , link : { table : ' nextauth_users' } } ,
78- { name : ' session' , type : ' link' , link : { table : ' nextauth_sessions' } }
79- ]
78+ { name : " user" , type : " link" , link : { table : " nextauth_users" } } ,
79+ { name : " session" , type : " link" , link : { table : " nextauth_sessions" } } ,
80+ ] ,
8081 } ,
8182 {
82- name : ' nextauth_sessions' ,
83+ name : " nextauth_sessions" ,
8384 columns : [
84- { name : ' sessionToken' , type : ' string' } ,
85- { name : ' expires' , type : ' datetime' } ,
86- { name : ' user' , type : ' link' , link : { table : ' nextauth_users' } }
85+ { name : " sessionToken" , type : " string" } ,
86+ { name : " expires" , type : " datetime" } ,
87+ { name : " user" , type : " link" , link : { table : " nextauth_users" } } ,
8788 ] ,
88- revLinks : [ { column : 'session' , table : 'nextauth_users_sessions' } ]
89- }
89+ revLinks : [ { column : "session" , table : "nextauth_users_sessions" } ] ,
90+ } ,
91+ {
92+ name : "bookmarks" ,
93+ columns : [
94+ { name : "user" , type : "link" , link : { table : "nextauth_users" } } ,
95+ ] ,
96+ } ,
9097] as const ;
9198
9299export type SchemaTables = typeof tables ;
93100export type InferredTypes = SchemaInference < SchemaTables > ;
94101
95- export type Reports = InferredTypes [ ' reports' ] ;
102+ export type Reports = InferredTypes [ " reports" ] ;
96103export type ReportsRecord = Reports & XataRecord ;
97104
98- export type NextauthUsers = InferredTypes [ ' nextauth_users' ] ;
105+ export type NextauthUsers = InferredTypes [ " nextauth_users" ] ;
99106export type NextauthUsersRecord = NextauthUsers & XataRecord ;
100107
101- export type NextauthAccounts = InferredTypes [ ' nextauth_accounts' ] ;
108+ export type NextauthAccounts = InferredTypes [ " nextauth_accounts" ] ;
102109export type NextauthAccountsRecord = NextauthAccounts & XataRecord ;
103110
104111export type NextauthVerificationTokens =
105- InferredTypes [ ' nextauth_verificationTokens' ] ;
112+ InferredTypes [ " nextauth_verificationTokens" ] ;
106113export type NextauthVerificationTokensRecord = NextauthVerificationTokens &
107114 XataRecord ;
108115
109- export type NextauthUsersAccounts = InferredTypes [ ' nextauth_users_accounts' ] ;
116+ export type NextauthUsersAccounts = InferredTypes [ " nextauth_users_accounts" ] ;
110117export type NextauthUsersAccountsRecord = NextauthUsersAccounts & XataRecord ;
111118
112- export type NextauthUsersSessions = InferredTypes [ ' nextauth_users_sessions' ] ;
119+ export type NextauthUsersSessions = InferredTypes [ " nextauth_users_sessions" ] ;
113120export type NextauthUsersSessionsRecord = NextauthUsersSessions & XataRecord ;
114121
115- export type NextauthSessions = InferredTypes [ ' nextauth_sessions' ] ;
122+ export type NextauthSessions = InferredTypes [ " nextauth_sessions" ] ;
116123export type NextauthSessionsRecord = NextauthSessions & XataRecord ;
117124
125+ export type Bookmarks = InferredTypes [ "bookmarks" ] ;
126+ export type BookmarksRecord = Bookmarks & XataRecord ;
127+
118128export type DatabaseSchema = {
119129 reports : ReportsRecord ;
120130 nextauth_users : NextauthUsersRecord ;
@@ -123,13 +133,14 @@ export type DatabaseSchema = {
123133 nextauth_users_accounts : NextauthUsersAccountsRecord ;
124134 nextauth_users_sessions : NextauthUsersSessionsRecord ;
125135 nextauth_sessions : NextauthSessionsRecord ;
136+ bookmarks : BookmarksRecord ;
126137} ;
127138
128139const DatabaseClient = buildClient ( ) ;
129140
130141const defaultOptions = {
131142 databaseURL :
132- ' https://Usman-Sabuwala-s-workspace-u2kcvd.us-east-1.xata.sh/db/project-finder-hf'
143+ " https://Usman-Sabuwala-s-workspace-u2kcvd.us-east-1.xata.sh/db/project-finder-hf" ,
133144} ;
134145
135146export class XataClient extends DatabaseClient < DatabaseSchema > {
0 commit comments