55
66/* eslint-disable */
77
8- import { type SchemaDef , type FieldDefault , 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,17 +18,20 @@ export class SchemaType implements SchemaDef {
1818 name : "id" ,
1919 type : "String" ,
2020 id : true ,
21+ attributes : [ { name : "@default" , args : [ { name : "value" , value : ExpressionUtils . call ( "cuid" ) } ] } ] as readonly AttributeApplication [ ] ,
2122 default : ExpressionUtils . call ( "cuid" ) as FieldDefault
2223 } ,
2324 createdAt : {
2425 name : "createdAt" ,
2526 type : "DateTime" ,
27+ attributes : [ { name : "@default" , args : [ { name : "value" , value : ExpressionUtils . call ( "now" ) } ] } ] as readonly AttributeApplication [ ] ,
2628 default : ExpressionUtils . call ( "now" ) as FieldDefault
2729 } ,
2830 updatedAt : {
2931 name : "updatedAt" ,
3032 type : "DateTime" ,
31- updatedAt : true
33+ updatedAt : true ,
34+ attributes : [ { name : "@updatedAt" } ] as readonly AttributeApplication [ ]
3235 } ,
3336 email : {
3437 name : "email" ,
@@ -60,17 +63,20 @@ export class SchemaType implements SchemaDef {
6063 name : "id" ,
6164 type : "String" ,
6265 id : true ,
66+ attributes : [ { name : "@default" , args : [ { name : "value" , value : ExpressionUtils . call ( "cuid" ) } ] } ] as readonly AttributeApplication [ ] ,
6367 default : ExpressionUtils . call ( "cuid" ) as FieldDefault
6468 } ,
6569 createdAt : {
6670 name : "createdAt" ,
6771 type : "DateTime" ,
72+ attributes : [ { name : "@default" , args : [ { name : "value" , value : ExpressionUtils . call ( "now" ) } ] } ] as readonly AttributeApplication [ ] ,
6873 default : ExpressionUtils . call ( "now" ) as FieldDefault
6974 } ,
7075 updatedAt : {
7176 name : "updatedAt" ,
7277 type : "DateTime" ,
73- updatedAt : true
78+ updatedAt : true ,
79+ attributes : [ { name : "@updatedAt" } ] as readonly AttributeApplication [ ]
7480 } ,
7581 title : {
7682 name : "title" ,
@@ -79,6 +85,7 @@ export class SchemaType implements SchemaDef {
7985 published : {
8086 name : "published" ,
8187 type : "Boolean" ,
88+ attributes : [ { name : "@default" , args : [ { name : "value" , value : ExpressionUtils . literal ( false ) } ] } ] as readonly AttributeApplication [ ] ,
8289 default : false as FieldDefault
8390 } ,
8491 author : {
0 commit comments