fix: Use creation timestamp instead of id for ordering

Closes #465
This commit is contained in:
Maksim Eltyshev
2023-06-13 00:19:17 +02:00
parent 8578883fac
commit 21504c06a6
18 changed files with 219 additions and 301 deletions

View File

@@ -8,6 +8,9 @@ export default class extends BaseModel {
static fields = {
id: attr(),
createdAt: attr({
getDefault: () => new Date(),
}),
projectId: fk({
to: 'Project',
as: 'project',