Todo work
This commit is contained in:
@@ -12,6 +12,8 @@ export class Todo extends Class<Todo>("Todo")({
|
|||||||
content: S.String,
|
content: S.String,
|
||||||
|
|
||||||
due: S.OptionFromSelf(S.DateFromSelf),
|
due: S.OptionFromSelf(S.DateFromSelf),
|
||||||
|
completed: S.Boolean,
|
||||||
|
|
||||||
createdAt: S.DateFromSelf,
|
createdAt: S.DateFromSelf,
|
||||||
updatedAt: S.DateFromSelf,
|
updatedAt: S.DateFromSelf,
|
||||||
}) {}
|
}) {}
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ export const createDefaultTodos = TodoRepository.pipe(
|
|||||||
title: "A test todo",
|
title: "A test todo",
|
||||||
content: "Lorem ipsum",
|
content: "Lorem ipsum",
|
||||||
due: Option.none(),
|
due: Option.none(),
|
||||||
|
completed: false,
|
||||||
createdAt: new Date(),
|
createdAt: new Date(),
|
||||||
updatedAt: new Date(),
|
updatedAt: new Date(),
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user