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 d386c82973
commit 2d7812a679
18 changed files with 219 additions and 301 deletions

View File

@@ -10,6 +10,9 @@ export default class extends BaseModel {
id: attr(),
role: attr(),
canComment: attr(),
createdAt: attr({
getDefault: () => new Date(),
}),
boardId: fk({
to: 'Board',
as: 'board',