@ronin/compiler
Advanced tools
Comparing version 0.13.4-leo-ron-1071-experimental-295 to 0.13.4-leo-ron-1071-experimental-296
@@ -152,4 +152,2 @@ /** | ||
type ModelFieldBasics = { | ||
/** The kind of value that should be stored inside the field. */ | ||
type?: 'boolean' | 'date' | 'json'; | ||
/** The label that should be used when displaying the field on the RONIN dashboard. */ | ||
@@ -188,10 +186,13 @@ name?: string; | ||
}; | ||
type ModelField = ModelFieldBasics | (Omit<ModelFieldBasics, 'type'> & { | ||
type ModelField = (ModelFieldBasics & { | ||
/** The kind of value that should be stored inside the field. */ | ||
type: 'string'; | ||
type?: 'boolean' | 'date' | 'json'; | ||
}) | (ModelFieldBasics & { | ||
/** The kind of value that should be stored inside the field. */ | ||
type?: 'string'; | ||
/** The collation sequence to use for the field value. */ | ||
collation?: ModelFieldCollation; | ||
}) | (Omit<ModelFieldBasics, 'type'> & { | ||
}) | (ModelFieldBasics & { | ||
/** The kind of value that should be stored inside the field. */ | ||
type: 'number'; | ||
type?: 'number'; | ||
/** | ||
@@ -201,5 +202,5 @@ * Automatically increments the value of the field with every new inserted record. | ||
increment?: boolean; | ||
}) | (Omit<ModelFieldBasics, 'type'> & { | ||
}) | (ModelFieldBasics & { | ||
/** The kind of value that should be stored inside the field. */ | ||
type: 'link'; | ||
type?: 'link'; | ||
/** The target model of the relationship that is being established. */ | ||
@@ -206,0 +207,0 @@ target: string; |
{ | ||
"name": "@ronin/compiler", | ||
"version": "0.13.4-leo-ron-1071-experimental-295", | ||
"version": "0.13.4-leo-ron-1071-experimental-296", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "Compiles RONIN queries to SQL statements.", |
2311
102337