1
- export type Json = string | number | boolean | null | { [ key : string ] : Json } | Json [ ]
1
+ export type Json = string | number | boolean | null | { [ key : string ] : Json | undefined } | Json [ ]
2
2
3
3
export interface Database {
4
4
personal : {
@@ -45,6 +45,29 @@ export interface Database {
45
45
}
46
46
public : {
47
47
Tables : {
48
+ channel_details : {
49
+ Row : {
50
+ details : string | null
51
+ id : number
52
+ }
53
+ Insert : {
54
+ details ?: string | null
55
+ id : number
56
+ }
57
+ Update : {
58
+ details ?: string | null
59
+ id ?: number
60
+ }
61
+ Relationships : [
62
+ {
63
+ foreignKeyName : 'channel_details_id_fkey'
64
+ columns : [ 'id' ]
65
+ isOneToOne : true
66
+ referencedRelation : 'channels'
67
+ referencedColumns : [ 'id' ]
68
+ }
69
+ ]
70
+ }
48
71
channels : {
49
72
Row : {
50
73
data : Json | null
@@ -86,17 +109,29 @@ export interface Database {
86
109
username ?: string
87
110
}
88
111
Relationships : [
112
+ {
113
+ foreignKeyName : 'messages_channel_id_fkey'
114
+ columns : [ 'channel_id' ]
115
+ referencedRelation : 'channels'
116
+ referencedColumns : [ 'id' ]
117
+ } ,
89
118
{
90
119
foreignKeyName : 'messages_username_fkey'
91
120
columns : [ 'username' ]
92
121
referencedRelation : 'users'
93
122
referencedColumns : [ 'username' ]
94
123
} ,
95
124
{
96
- foreignKeyName : 'messages_channel_id_fkey'
97
- columns : [ 'channel_id' ]
98
- referencedRelation : 'channels'
99
- referencedColumns : [ 'id' ]
125
+ foreignKeyName : 'messages_username_fkey'
126
+ columns : [ 'username' ]
127
+ referencedRelation : 'non_updatable_view'
128
+ referencedColumns : [ 'username' ]
129
+ } ,
130
+ {
131
+ foreignKeyName : 'messages_username_fkey'
132
+ columns : [ 'username' ]
133
+ referencedRelation : 'updatable_view'
134
+ referencedColumns : [ 'username' ]
100
135
}
101
136
]
102
137
}
@@ -148,6 +183,7 @@ export interface Database {
148
183
Row : {
149
184
username : string | null
150
185
}
186
+ Relationships : [ ]
151
187
}
152
188
updatable_view : {
153
189
Row : {
@@ -162,6 +198,7 @@ export interface Database {
162
198
non_updatable_column ?: never
163
199
username ?: string | null
164
200
}
201
+ Relationships : [ ]
165
202
}
166
203
}
167
204
Functions : {
0 commit comments