We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Difficulty: ★☆☆☆☆
When creating and updating entries in a database, it is good practice the have the fields created_at and updated_at in each table.
created_at
updated_at
Right now we can't see when different entries were created, which would be handy for sorting a list of experiments.
This is typically achieved by modifying the base class in the ORM, which in our case is class BaseModel(Model). https://stackoverflow.com/a/18533416/5739514
class BaseModel(Model)
be sure to set a timezone on the datetime
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Background
When creating and updating entries in a database, it is good practice the have the fields
created_at
andupdated_at
in each table.Problem
Right now we can't see when different entries were created, which would be handy for sorting a list of experiments.
Potential Solution
This is typically achieved by modifying the base class in the ORM, which in our case is
class BaseModel(Model)
. https://stackoverflow.com/a/18533416/5739514be sure to set a timezone on the datetime
The text was updated successfully, but these errors were encountered: