Skip to content

Commit

Permalink
added mappings for binary types (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgary authored Apr 18, 2019
1 parent 2441d08 commit 44b2add
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gatewayapps/cradle-template-emitter",
"version": "0.5.0",
"version": "0.5.1",
"description": "Cradle emitter for reading Handlebars based template files",
"main": "./dist/index.js",
"scripts": {
Expand Down
3 changes: 3 additions & 0 deletions src/TemplateEmitter/mappings/sequelize-typescript/mapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ export const values = {
String: {

type: 'string',
},
Binary: {
type: 'Buffer'
}
}

Expand Down
3 changes: 3 additions & 0 deletions src/TemplateEmitter/mappings/sequelize/mapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ export const values = {
UniqueIdentifier: {
defaultValue: 'Sequelize.UUIDV4',
type: 'UUID'
},
Binary: {
type: 'BLOB'
}
}

Expand Down

0 comments on commit 44b2add

Please sign in to comment.