doc: remove completed auto-timestamp and fk check TODO items
This commit is contained in:
parent
4cba2af670
commit
b8a024a4b9
12
doc/TODO.txt
12
doc/TODO.txt
@ -1,17 +1,9 @@
|
|||||||
TODO: auto-timestamps
|
TODO: soft-deletion
|
||||||
- SaveXyz should set created_at and updated_at; shouldn't touch is_deleted or deleted_at
|
- enable soft-deletion if table has `is_deleted` and `deleted_at` fields
|
||||||
- if soft delete is enabled, DeleteXyz should do update (not delete) and set is_deleted and deleted_at
|
- if soft delete is enabled, DeleteXyz should do update (not delete) and set is_deleted and deleted_at
|
||||||
- ...and DeleteXyz should have pointer receiver for soft-delete
|
- ...and DeleteXyz should have pointer receiver for soft-delete
|
||||||
- SaveXyz shouldn't set created_at in the do-update branch
|
|
||||||
- GetXyzByID should include `ErrItemIsDeleted` if item is soft-deleted
|
- GetXyzByID should include `ErrItemIsDeleted` if item is soft-deleted
|
||||||
|
|
||||||
TODO: modified-timestamps
|
|
||||||
- set updated_at and created_at in SaveXYZ
|
|
||||||
- soft delete option
|
|
||||||
|
|
||||||
TODO: generator-foreign-keys
|
|
||||||
- add auto-foreign-key checking blocks to SaveXyz
|
|
||||||
|
|
||||||
TODO: migration-structs
|
TODO: migration-structs
|
||||||
- Right now, migrations are strings. Could be a struct with "name", "up" and "down" fields
|
- Right now, migrations are strings. Could be a struct with "name", "up" and "down" fields
|
||||||
- Adding a "down" operation enables handling newer DB versions with "down instead of error-out" for development (perhaps a flag)
|
- Adding a "down" operation enables handling newer DB versions with "down instead of error-out" for development (perhaps a flag)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user