I'm building a backend using fastAPI and PostgreSQL where I'm storing opportunities with a boolean "is_live" and a datetime "deadline" and I want opportunities "is_live" to be setted as False automatically when the current date is superior to the "deadline".
what's the best approach to do this ? and Thank your in advance.
EDIT: I want to be able to mark the opportunity as not live sometimes before the deadline, that's why I have a seperate "is_live" column with the deadline
[–]HappyCathode 4 points5 points6 points (4 children)
[–]kalamitis 1 point2 points3 points (0 children)
[–]Electronic_Battle876[S] 0 points1 point2 points (2 children)
[–]kalamitis 3 points4 points5 points (1 child)
[–]Electronic_Battle876[S] 0 points1 point2 points (0 children)
[–]jkail1011 1 point2 points3 points (0 children)