Jesse Myers

Results 4 comments of Jesse Myers

I have a similar problem where: ```js @Table({ underscored: true, }) class Foo extends Model { @Index @CreatedAt createdAt: Date; } ``` raises: ``` SequelizeDatabaseError: column "createdAt" does not exist...

I've also been experimenting with a decorator wrapper: ```ts import { snakeCase } from 'lodash'; import { annotateModelWithIndex } from 'sequelize-typescript'; function UnderscoredIndex(target: T, key: string): void { annotateModelWithIndex(target, snakeCase(key));...

> I guess you could also use the API to delete the old nodes too. The last time I checked, the access level required to delete nodes was way higher...

There are some limitations in the pick implementation that might be showing up here. I vaguely remember documenting some of the details, but the gist is that the metadata used...