Skip to content

Hardcoded createdAt field when using underscored option #1424

Open

Description

@zignis

Issue

Versions

  • sequelize: latest
  • sequelize-typescript: latest
  • typescript: -

Issue type

  • bug report
  • feature request

Actual behavior

Even when using the underscored option, typescript keeps complaining about .created_at field, because its hard-coded as createdAt here:

createdAt?: Date | any;

Expected behavior

Should be able to use created_at.

Steps to reproduce

Configure the table using the underscored option.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions