55
66/* eslint-disable */
77
8- import { type SchemaDef , ExpressionUtils } from "@zenstackhq/schema" ;
8+ import { type SchemaDef , type FieldDefault , ExpressionUtils } from "@zenstackhq/schema" ;
99export class SchemaType implements SchemaDef {
1010 provider = {
1111 type : "sqlite"
@@ -18,7 +18,7 @@ export class SchemaType implements SchemaDef {
1818 name : "id" ,
1919 type : "String" ,
2020 id : true ,
21- default : ExpressionUtils . call ( "cuid" )
21+ default : ExpressionUtils . call ( "cuid" ) as FieldDefault
2222 } ,
2323 email : {
2424 name : "email" ,
@@ -50,7 +50,7 @@ export class SchemaType implements SchemaDef {
5050 name : "id" ,
5151 type : "String" ,
5252 id : true ,
53- default : ExpressionUtils . call ( "cuid" )
53+ default : ExpressionUtils . call ( "cuid" ) as FieldDefault
5454 } ,
5555 title : {
5656 name : "title" ,
@@ -68,7 +68,7 @@ export class SchemaType implements SchemaDef {
6868 optional : true ,
6969 foreignKeyFor : [
7070 "owner"
71- ]
71+ ] as readonly string [ ]
7272 } ,
7373 category : {
7474 name : "category" ,
@@ -82,7 +82,7 @@ export class SchemaType implements SchemaDef {
8282 optional : true ,
8383 foreignKeyFor : [
8484 "category"
85- ]
85+ ] as readonly string [ ]
8686 }
8787 } ,
8888 idFields : [ "id" ] ,
@@ -97,7 +97,7 @@ export class SchemaType implements SchemaDef {
9797 name : "id" ,
9898 type : "String" ,
9999 id : true ,
100- default : ExpressionUtils . call ( "cuid" )
100+ default : ExpressionUtils . call ( "cuid" ) as FieldDefault
101101 } ,
102102 name : {
103103 name : "name" ,
@@ -124,7 +124,7 @@ export class SchemaType implements SchemaDef {
124124 name : "id" ,
125125 type : "String" ,
126126 id : true ,
127- default : ExpressionUtils . call ( "cuid" )
127+ default : ExpressionUtils . call ( "cuid" ) as FieldDefault
128128 } ,
129129 type : {
130130 name : "type" ,
@@ -147,7 +147,7 @@ export class SchemaType implements SchemaDef {
147147 name : "id" ,
148148 type : "String" ,
149149 id : true ,
150- default : ExpressionUtils . call ( "cuid" )
150+ default : ExpressionUtils . call ( "cuid" ) as FieldDefault
151151 } ,
152152 type : {
153153 name : "type" ,
0 commit comments