I'm trying to define the following table in PostgreSQL:
posts
- uuid
- title
- created_at
- updated_at
- deleted_at
The idea is that i never delete anything, so i change the deleted_at instead of removing the row and use where deleted_at is null
for normal behavior.
Is there a way of automating those timestamps?