Skip to content

deletedAt should be compare against NOW rather than IS NULL #5880

Closed

Description

@sushantdhiman

Under current implementation sequelize always compare deletedAt field with IS NULL, while it works but it just act as a boolean field.

It should ideally compare deletedAt against current timestamp value like NOW. This will make deletedAt semantically correct because its a date field.

This will also allow instances to be deleted on future dates. Some features can be implemented easily which requires expiration after some time like session, tickets, oauth tokens etc...

Dialect: any
Sequelize version: master

Activity

  1. janmeier commented on May 13, 2016

    @janmeier
    Member

    Sounds good :)

  2. added
    type: feature
    on May 13, 2016
  3. added a commit that references this issue on May 17, 2016
    02fb3fa
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

    type: feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions