@@ -55,19 +55,16 @@ const metadata = {
5555 isArray : true ,
5656 backLink : 'space' ,
5757 } ,
58- }
59- , uniqueConstraints : {
58+ } , uniqueConstraints : {
6059 id : {
6160 name : "id" ,
6261 fields : [ "id" ]
6362 } , slug : {
6463 name : "slug" ,
6564 fields : [ "slug" ]
6665 } ,
67- }
68- ,
69- }
70- ,
66+ } ,
67+ } ,
7168 spaceUser : {
7269 name : 'SpaceUser' , fields : {
7370 id : {
@@ -111,19 +108,16 @@ const metadata = {
111108 name : "role" ,
112109 type : "SpaceUserRole" ,
113110 } ,
114- }
115- , uniqueConstraints : {
111+ } , uniqueConstraints : {
116112 id : {
117113 name : "id" ,
118114 fields : [ "id" ]
119115 } , userId_spaceId : {
120116 name : "userId_spaceId" ,
121117 fields : [ "userId" , "spaceId" ]
122118 } ,
123- }
124- ,
125- }
126- ,
119+ } ,
120+ } ,
127121 user : {
128122 name : 'User' , fields : {
129123 id : {
@@ -189,19 +183,16 @@ const metadata = {
189183 isArray : true ,
190184 backLink : 'user' ,
191185 } ,
192- }
193- , uniqueConstraints : {
186+ } , uniqueConstraints : {
194187 id : {
195188 name : "id" ,
196189 fields : [ "id" ]
197190 } , email : {
198191 name : "email" ,
199192 fields : [ "email" ]
200193 } ,
201- }
202- ,
203- }
204- ,
194+ } ,
195+ } ,
205196 list : {
206197 name : 'List' , fields : {
207198 id : {
@@ -257,16 +248,13 @@ const metadata = {
257248 isArray : true ,
258249 backLink : 'list' ,
259250 } ,
260- }
261- , uniqueConstraints : {
251+ } , uniqueConstraints : {
262252 id : {
263253 name : "id" ,
264254 fields : [ "id" ]
265255 } ,
266- }
267- ,
268- }
269- ,
256+ } ,
257+ } ,
270258 todo : {
271259 name : 'Todo' , fields : {
272260 id : {
@@ -316,16 +304,13 @@ const metadata = {
316304 type : "DateTime" ,
317305 isOptional : true ,
318306 } ,
319- }
320- , uniqueConstraints : {
307+ } , uniqueConstraints : {
321308 id : {
322309 name : "id" ,
323310 fields : [ "id" ]
324311 } ,
325- }
326- ,
327- }
328- ,
312+ } ,
313+ } ,
329314 account : {
330315 name : 'Account' , fields : {
331316 id : {
@@ -387,29 +372,28 @@ const metadata = {
387372 isRelationOwner : true ,
388373 foreignKeyMapping : { "id" : "userId" } ,
389374 } ,
390- }
391- , uniqueConstraints : {
375+ } , uniqueConstraints : {
392376 id : {
393377 name : "id" ,
394378 fields : [ "id" ]
395379 } , provider_providerAccountId : {
396380 name : "provider_providerAccountId" ,
397381 fields : [ "provider" , "providerAccountId" ]
398382 } ,
399- }
400- ,
401- }
402- ,
403- }
404- ,
383+ } ,
384+ } ,
385+
386+ } ,
405387 deleteCascade : {
406388 space : [ 'SpaceUser' , 'List' ] ,
407389 user : [ 'Space' , 'SpaceUser' , 'List' , 'Todo' , 'Account' ] ,
408390 list : [ 'Todo' ] ,
409- }
410- ,
391+
392+ } ,
411393 authModel : 'User'
394+
412395} ;
396+
413397function $default$Space$ownerId ( user : any ) : unknown {
414398 return user ?. id ;
415399}
0 commit comments