Skip to content

Property name and database column name mapping support request. #273

Closed

Description

@taoyuan

Request to support model property name to database column name mapping. Like this:

var User = orm.define('User', {
    userAccessToken: { type: 'string', column: 'token' }
    lastLogin: String
}, {
...
});

The userAccessToken map to database column token, lastLogin auto(or options enable this) map to database column last_login.

Activity

  1. dxg commented on May 7, 2014

    @dxg
    Collaborator

    This should now be possible in master.
    See the wiki for details.
    A new official version will be released in the near future.

  2. added a commit that references this issue on May 8, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions