Skip to content

Consider making the __tablename__ of User to be 'users'? #303

@harrisj

Description

@harrisj

SQL Alchemy's autogenerated queries are not deterred by this, but it can be hard to query the Postgres directly because user is a reserved word in Postgres. I suggest amending the scaffold by adding a __tablename__ = 'users' to change the name of that table and also show how to override if you need to.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions