@ronin/compiler
Advanced tools
Comparing version 0.14.14 to 0.15.0
@@ -135,3 +135,3 @@ /** | ||
model: string; | ||
to?: Partial<PublicModel>; | ||
to?: Partial<Omit<PublicModel, 'fields' | 'indexes' | 'triggers' | 'presets' | 'idPrefix'>>; | ||
create?: { | ||
@@ -249,3 +249,3 @@ field?: ModelField; | ||
/** Whether the field should be related to one record, or many records. */ | ||
kind?: 'one' | 'many'; | ||
kind?: 'one'; | ||
/** | ||
@@ -258,2 +258,9 @@ * If the target record is updated or deleted, the defined actions maybe executed. | ||
}; | ||
} | { | ||
/** The kind of value that should be stored inside the field. */ | ||
type: 'link'; | ||
/** The target model of the relationship that is being established. */ | ||
target: string; | ||
/** Whether the field should be related to one record, or many records. */ | ||
kind: 'many'; | ||
}); | ||
@@ -260,0 +267,0 @@ type ModelIndexField<T extends Array<ModelField> = Array<ModelField>> = { |
{ | ||
"name": "@ronin/compiler", | ||
"version": "0.14.14", | ||
"version": "0.15.0", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "Compiles RONIN queries to SQL statements.", |
Sorry, the diff of this file is too big to display
111968
2586