Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto update timestamps #17

Closed
ozziest opened this issue May 22, 2021 · 0 comments
Closed

Auto update timestamps #17

ozziest opened this issue May 22, 2021 · 0 comments
Assignees
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects

Comments

@ozziest
Copy link
Member

ozziest commented May 22, 2021

Axe API should be able to update timestamps automatically. But also, developers should be able to change the column name in the model definition.

Usage

To define column name;

import { Model } from "axe-api";

class User extends Model {
  get createdAtColumn () {
    return 'created_at'
  }

  get updatedAtColumn () {
    return 'updated_at'
  }
}

export default User;
  • Default values; created_at, updated_at
  • To disable auto-update, developer should set NULL
@ozziest ozziest added the enhancement New feature or request label May 22, 2021
@ozziest ozziest added this to To do in v1.0.0 via automation May 22, 2021
@ozziest ozziest self-assigned this May 23, 2021
@ozziest ozziest moved this from To do to In progress in v1.0.0 May 23, 2021
v1.0.0 automation moved this from In progress to Published May 23, 2021
@ozziest ozziest added the documentation Improvements or additions to documentation label May 23, 2021
@ozziest ozziest moved this from Published to Live in v1.0.0 Aug 9, 2021
ozziest added a commit that referenced this issue Dec 24, 2022
ozziest added a commit that referenced this issue Dec 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
No open projects
v1.0.0
Done!
Development

No branches or pull requests

1 participant