diff --git a/templates/mellow-react/config/models.js b/templates/mellow-react/config/models.js index 96f6be9..1e736ce 100644 --- a/templates/mellow-react/config/models.js +++ b/templates/mellow-react/config/models.js @@ -65,8 +65,16 @@ module.exports.models = { ***************************************************************************/ attributes: { - createdAt: { type: 'number', autoCreatedAt: true }, - updatedAt: { type: 'number', autoUpdatedAt: true }, + createdAt: { + type: 'number', + autoCreatedAt: true, + columnName: 'created_at' + }, + updatedAt: { + type: 'number', + autoUpdatedAt: true, + columnName: 'updated_at' + }, id: { type: 'number', autoIncrement: true } //-------------------------------------------------------------------------- // /\ Using MongoDB? diff --git a/templates/mellow-svelte/config/models.js b/templates/mellow-svelte/config/models.js index 96f6be9..1e736ce 100644 --- a/templates/mellow-svelte/config/models.js +++ b/templates/mellow-svelte/config/models.js @@ -65,8 +65,16 @@ module.exports.models = { ***************************************************************************/ attributes: { - createdAt: { type: 'number', autoCreatedAt: true }, - updatedAt: { type: 'number', autoUpdatedAt: true }, + createdAt: { + type: 'number', + autoCreatedAt: true, + columnName: 'created_at' + }, + updatedAt: { + type: 'number', + autoUpdatedAt: true, + columnName: 'updated_at' + }, id: { type: 'number', autoIncrement: true } //-------------------------------------------------------------------------- // /\ Using MongoDB? diff --git a/templates/mellow-vue/config/models.js b/templates/mellow-vue/config/models.js index 96f6be9..1e736ce 100644 --- a/templates/mellow-vue/config/models.js +++ b/templates/mellow-vue/config/models.js @@ -65,8 +65,16 @@ module.exports.models = { ***************************************************************************/ attributes: { - createdAt: { type: 'number', autoCreatedAt: true }, - updatedAt: { type: 'number', autoUpdatedAt: true }, + createdAt: { + type: 'number', + autoCreatedAt: true, + columnName: 'created_at' + }, + updatedAt: { + type: 'number', + autoUpdatedAt: true, + columnName: 'updated_at' + }, id: { type: 'number', autoIncrement: true } //-------------------------------------------------------------------------- // /\ Using MongoDB?