diff --git a/package-lock.json b/package-lock.json index f2eb013..5fff09b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@athenna/database", - "version": "5.2.0", + "version": "5.3.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@athenna/database", - "version": "5.2.0", + "version": "5.3.0", "license": "MIT", "dependencies": { "@faker-js/faker": "^8.4.1", diff --git a/package.json b/package.json index 972a633..c4c0669 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@athenna/database", - "version": "5.2.0", + "version": "5.3.0", "description": "The Athenna database handler for SQL/NoSQL.", "license": "MIT", "author": "João Lenon ", diff --git a/src/models/annotations/Column.ts b/src/models/annotations/Column.ts index ac2ebba..3babf92 100644 --- a/src/models/annotations/Column.ts +++ b/src/models/annotations/Column.ts @@ -10,8 +10,8 @@ import 'reflect-metadata' import { debug } from '#src/debug' +import { Options } from '@athenna/common' import { Annotation } from '#src/helpers/Annotation' -import { Options, String as AthennaString } from '@athenna/common' import type { ColumnOptions } from '#src/types/columns/ColumnOptions' /** @@ -24,7 +24,7 @@ export function Column( const hasSetName = !!options.name options = Options.create(options, { - name: AthennaString.toCamelCase(key), + name: key, type: Reflect.getMetadata('design:type', target, key), defaultTo: null, isPrimary: false,