@contember/schema-definition
Advanced tools
Comparing version 1.2.0-alpha.3 to 1.2.0-alpha.4
@@ -37,2 +37,3 @@ "use strict"; | ||
fields: {}, | ||
indexes: {}, | ||
tableName: options.tableName || this.conventions.getTableName(name), | ||
@@ -39,0 +40,0 @@ eventLog: { |
@@ -8,2 +8,3 @@ import { Interface } from './types'; | ||
export * from './EventLogDefinition'; | ||
export * from './IndexDefinition'; | ||
export * from './EnumDefinition'; | ||
@@ -10,0 +11,0 @@ export * from './UniqueDefinition'; |
@@ -27,2 +27,3 @@ "use strict"; | ||
__exportStar(require("./EventLogDefinition"), exports); | ||
__exportStar(require("./IndexDefinition"), exports); | ||
__exportStar(require("./EnumDefinition"), exports); | ||
@@ -29,0 +30,0 @@ __exportStar(require("./UniqueDefinition"), exports); |
@@ -33,2 +33,3 @@ "use strict"; | ||
unique: this.createUnique(entityName, definitionInstance), | ||
indexes: {}, | ||
fields: [ | ||
@@ -35,0 +36,0 @@ ...definitionInstance[primaryName] ? [] : [(0, utils_1.tuple)(primaryName, this.createPrimaryColumn())], |
@@ -15,4 +15,4 @@ "use strict"; | ||
unique: { | ||
...entity.unique, | ||
[name]: { name, fields }, | ||
...entity.unique, | ||
}, | ||
@@ -19,0 +19,0 @@ }; |
{ | ||
"name": "@contember/schema-definition", | ||
"version": "1.2.0-alpha.3", | ||
"version": "1.2.0-alpha.4", | ||
"license": "Apache-2.0", | ||
@@ -11,4 +11,4 @@ "main": "dist/src/index.js", | ||
"dependencies": { | ||
"@contember/schema": "^1.2.0-alpha.3", | ||
"@contember/schema-utils": "^1.2.0-alpha.3", | ||
"@contember/schema": "^1.2.0-alpha.4", | ||
"@contember/schema-utils": "^1.2.0-alpha.4", | ||
"reflect-metadata": "^0.1.13" | ||
@@ -15,0 +15,0 @@ }, |
@@ -42,2 +42,3 @@ import { Model, Writable } from '@contember/schema' | ||
fields: {}, | ||
indexes: {}, | ||
tableName: options.tableName || this.conventions.getTableName(name), | ||
@@ -44,0 +45,0 @@ eventLog: { |
@@ -12,2 +12,3 @@ import { EntityConstructor, Interface } from './types' | ||
export * from './EventLogDefinition' | ||
export * from './IndexDefinition' | ||
export * from './EnumDefinition' | ||
@@ -14,0 +15,0 @@ export * from './UniqueDefinition' |
@@ -39,2 +39,3 @@ import { Model, Writable } from '@contember/schema' | ||
unique: this.createUnique(entityName, definitionInstance), | ||
indexes: {}, | ||
fields: [ | ||
@@ -41,0 +42,0 @@ ...definitionInstance[primaryName] ? [] : [tuple(primaryName, this.createPrimaryColumn())], |
@@ -18,4 +18,4 @@ import { DecoratorFunction } from './types' | ||
unique: { | ||
...entity.unique, | ||
[name]: { name, fields }, | ||
...entity.unique, | ||
}, | ||
@@ -22,0 +22,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
520278
348
6873