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

SQLite timestamps #7

Open
aiqc opened this issue Mar 20, 2021 · 0 comments
Open

SQLite timestamps #7

aiqc opened this issue Mar 20, 2021 · 0 comments
Labels
feature good first issue Good for newcomers

Comments

@aiqc
Copy link
Owner

aiqc commented Mar 20, 2021

Difficulty: ★☆☆☆☆

Background

When creating and updating entries in a database, it is good practice the have the fields created_at and updated_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/5739514

be sure to set a timezone on the datetime

@aiqc aiqc added feature good first issue Good for newcomers labels Mar 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant