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

Timestamp: add createdAt+updatedAt schemas #60

Open
andrenarchy opened this issue Oct 15, 2017 · 0 comments
Open

Timestamp: add createdAt+updatedAt schemas #60

andrenarchy opened this issue Oct 15, 2017 · 0 comments

Comments

@andrenarchy
Copy link
Member

Instead of deriving from Timestamp we could have a CreatedAt and UpdatedAt schemas that can be used like this:

@CreatedAt()
public createdAt: Date;

This allows users to use their own property names which is not possible with the current Timstamp class approach.

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

No branches or pull requests

1 participant