@@ -13,7 +13,7 @@ export const tableSchema = {
1313 id : { type : [ "integer" , "string" ] } ,
1414 name : { type : "string" } ,
1515 type : { type : "string" } ,
16- default : { type : "string" } ,
16+ default : { type : [ "string" , "number" , "boolean" ] } ,
1717 check : { type : "string" } ,
1818 primary : { type : "boolean" } ,
1919 unique : { type : "boolean" } ,
@@ -55,10 +55,10 @@ export const tableSchema = {
5555 } ,
5656 } ,
5757 color : { type : "string" , pattern : "^#[0-9a-fA-F]{6}$" } ,
58- } ,
59- inherits : {
60- type : "array" ,
61- items : { type : [ "string" ] } ,
58+ inherits : {
59+ type : "array" ,
60+ items : { type : [ "string" ] } ,
61+ } ,
6262 } ,
6363 required : [ "id" , "name" , "x" , "y" , "fields" , "comment" , "indices" , "color" ] ,
6464} ;
@@ -148,7 +148,7 @@ export const jsonSchema = {
148148 cardinality : { type : "string" } ,
149149 updateConstraint : { type : "string" } ,
150150 deleteConstraint : { type : "string" } ,
151- id : { type : "integer" } ,
151+ id : { type : [ "integer" , "string" ] } ,
152152 } ,
153153 required : [
154154 "startTableId" ,
0 commit comments