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" ;
3
3
import type {
4
4
BaseClientOptions ,
5
5
SchemaInference ,
6
- XataRecord
7
- } from ' @xata.io/client' ;
6
+ XataRecord ,
7
+ } from " @xata.io/client" ;
8
8
9
9
const tables = [
10
10
{
11
- name : ' reports' ,
11
+ name : " reports" ,
12
12
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" } ,
15
15
{
16
- name : ' message' ,
17
- type : ' text' ,
16
+ name : " message" ,
17
+ type : " text" ,
18
18
notNull : true ,
19
- defaultValue : ' No Message'
19
+ defaultValue : " No Message" ,
20
20
} ,
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
+ ] ,
25
25
} ,
26
26
{
27
- name : ' nextauth_users' ,
27
+ name : " nextauth_users" ,
28
28
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" } ,
33
33
] ,
34
34
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
+ ] ,
41
41
} ,
42
42
{
43
- name : ' nextauth_accounts' ,
43
+ name : " nextauth_accounts" ,
44
44
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' }
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" } ,
56
56
] ,
57
- revLinks : [ { column : ' account' , table : ' nextauth_users_accounts' } ]
57
+ revLinks : [ { column : " account" , table : " nextauth_users_accounts" } ] ,
58
58
} ,
59
59
{
60
- name : ' nextauth_verificationTokens' ,
60
+ name : " nextauth_verificationTokens" ,
61
61
columns : [
62
- { name : ' identifier' , type : ' string' } ,
63
- { name : ' token' , type : ' string' } ,
64
- { name : ' expires' , type : ' datetime' }
65
- ]
62
+ { name : " identifier" , type : " string" } ,
63
+ { name : " token" , type : " string" } ,
64
+ { name : " expires" , type : " datetime" } ,
65
+ ] ,
66
66
} ,
67
67
{
68
- name : ' nextauth_users_accounts' ,
68
+ name : " nextauth_users_accounts" ,
69
69
columns : [
70
- { name : ' user' , type : ' link' , link : { table : ' nextauth_users' } } ,
71
- { name : ' account' , type : ' link' , link : { table : ' nextauth_accounts' } }
72
- ]
70
+ { name : " user" , type : " link" , link : { table : " nextauth_users" } } ,
71
+ { name : " account" , type : " link" , link : { table : " nextauth_accounts" } } ,
72
+ ] ,
73
73
} ,
74
74
{
75
- name : ' nextauth_users_sessions' ,
75
+ name : " nextauth_users_sessions" ,
76
76
columns : [
77
- { name : ' user' , type : ' link' , link : { table : ' nextauth_users' } } ,
78
- { name : ' session' , type : ' link' , link : { table : ' nextauth_sessions' } }
79
- ]
77
+ { name : " user" , type : " link" , link : { table : " nextauth_users" } } ,
78
+ { name : " session" , type : " link" , link : { table : " nextauth_sessions" } } ,
79
+ ] ,
80
80
} ,
81
81
{
82
- name : ' nextauth_sessions' ,
82
+ name : " nextauth_sessions" ,
83
83
columns : [
84
- { name : ' sessionToken' , type : ' string' } ,
85
- { name : ' expires' , type : ' datetime' } ,
86
- { name : ' user' , type : ' link' , link : { table : ' nextauth_users' } }
84
+ { name : " sessionToken" , type : " string" } ,
85
+ { name : " expires" , type : " datetime" } ,
86
+ { name : " user" , type : " link" , link : { table : " nextauth_users" } } ,
87
87
] ,
88
- revLinks : [ { column : ' session' , table : ' nextauth_users_sessions' } ]
89
- }
88
+ revLinks : [ { column : " session" , table : " nextauth_users_sessions" } ] ,
89
+ } ,
90
90
] as const ;
91
91
92
92
export type SchemaTables = typeof tables ;
93
93
export type InferredTypes = SchemaInference < SchemaTables > ;
94
94
95
- export type Reports = InferredTypes [ ' reports' ] ;
95
+ export type Reports = InferredTypes [ " reports" ] ;
96
96
export type ReportsRecord = Reports & XataRecord ;
97
97
98
- export type NextauthUsers = InferredTypes [ ' nextauth_users' ] ;
98
+ export type NextauthUsers = InferredTypes [ " nextauth_users" ] ;
99
99
export type NextauthUsersRecord = NextauthUsers & XataRecord ;
100
100
101
- export type NextauthAccounts = InferredTypes [ ' nextauth_accounts' ] ;
101
+ export type NextauthAccounts = InferredTypes [ " nextauth_accounts" ] ;
102
102
export type NextauthAccountsRecord = NextauthAccounts & XataRecord ;
103
103
104
104
export type NextauthVerificationTokens =
105
- InferredTypes [ ' nextauth_verificationTokens' ] ;
105
+ InferredTypes [ " nextauth_verificationTokens" ] ;
106
106
export type NextauthVerificationTokensRecord = NextauthVerificationTokens &
107
107
XataRecord ;
108
108
109
- export type NextauthUsersAccounts = InferredTypes [ ' nextauth_users_accounts' ] ;
109
+ export type NextauthUsersAccounts = InferredTypes [ " nextauth_users_accounts" ] ;
110
110
export type NextauthUsersAccountsRecord = NextauthUsersAccounts & XataRecord ;
111
111
112
- export type NextauthUsersSessions = InferredTypes [ ' nextauth_users_sessions' ] ;
112
+ export type NextauthUsersSessions = InferredTypes [ " nextauth_users_sessions" ] ;
113
113
export type NextauthUsersSessionsRecord = NextauthUsersSessions & XataRecord ;
114
114
115
- export type NextauthSessions = InferredTypes [ ' nextauth_sessions' ] ;
115
+ export type NextauthSessions = InferredTypes [ " nextauth_sessions" ] ;
116
116
export type NextauthSessionsRecord = NextauthSessions & XataRecord ;
117
117
118
118
export type DatabaseSchema = {
@@ -129,7 +129,7 @@ const DatabaseClient = buildClient();
129
129
130
130
const defaultOptions = {
131
131
databaseURL :
132
- ' https://Usman-Sabuwala -s-workspace-u2kcvd .us-east-1.xata.sh/db/project-finder-hf'
132
+ " https://Amandee-Manushika -s-workspace-d6c47s .us-east-1.xata.sh/db/amandee-db" ,
133
133
} ;
134
134
135
135
export class XataClient extends DatabaseClient < DatabaseSchema > {
0 commit comments