55
66/* eslint-disable */
77
8- import { type SchemaDef , ExpressionUtils } from "@zenstackhq/schema" ;
8+ import { type SchemaDef , type AttributeApplication , type FieldDefault , ExpressionUtils } from "@zenstackhq/schema" ;
99export class SchemaType implements SchemaDef {
1010 provider = {
1111 type : "sqlite"
@@ -18,8 +18,8 @@ export class SchemaType implements SchemaDef {
1818 name : "id" ,
1919 type : "Int" ,
2020 id : true ,
21- attributes : [ { name : "@id" } , { name : "@default" , args : [ { name : "value" , value : ExpressionUtils . call ( "autoincrement" ) } ] } ] ,
22- default : ExpressionUtils . call ( "autoincrement" )
21+ attributes : [ { name : "@id" } , { name : "@default" , args : [ { name : "value" , value : ExpressionUtils . call ( "autoincrement" ) } ] } ] as readonly AttributeApplication [ ] ,
22+ default : ExpressionUtils . call ( "autoincrement" ) as FieldDefault
2323 } ,
2424 name : {
2525 name : "name" ,
@@ -44,8 +44,8 @@ export class SchemaType implements SchemaDef {
4444 name : "id" ,
4545 type : "Int" ,
4646 id : true ,
47- attributes : [ { name : "@id" } , { name : "@default" , args : [ { name : "value" , value : ExpressionUtils . call ( "autoincrement" ) } ] } ] ,
48- default : ExpressionUtils . call ( "autoincrement" )
47+ attributes : [ { name : "@id" } , { name : "@default" , args : [ { name : "value" , value : ExpressionUtils . call ( "autoincrement" ) } ] } ] as readonly AttributeApplication [ ] ,
48+ default : ExpressionUtils . call ( "autoincrement" ) as FieldDefault
4949 } ,
5050 title : {
5151 name : "title" ,
@@ -59,15 +59,15 @@ export class SchemaType implements SchemaDef {
5959 author : {
6060 name : "author" ,
6161 type : "User" ,
62- attributes : [ { name : "@relation" , args : [ { name : "fields" , value : ExpressionUtils . array ( "Int" , [ ExpressionUtils . field ( "authorId" ) ] ) } , { name : "references" , value : ExpressionUtils . array ( "Int" , [ ExpressionUtils . field ( "id" ) ] ) } ] } ] ,
62+ attributes : [ { name : "@relation" , args : [ { name : "fields" , value : ExpressionUtils . array ( "Int" , [ ExpressionUtils . field ( "authorId" ) ] ) } , { name : "references" , value : ExpressionUtils . array ( "Int" , [ ExpressionUtils . field ( "id" ) ] ) } ] } ] as readonly AttributeApplication [ ] ,
6363 relation : { opposite : "posts" , fields : [ "authorId" ] , references : [ "id" ] }
6464 } ,
6565 authorId : {
6666 name : "authorId" ,
6767 type : "Int" ,
6868 foreignKeyFor : [
6969 "author"
70- ]
70+ ] as readonly string [ ]
7171 }
7272 } ,
7373 idFields : [ "id" ] ,
0 commit comments