Is there a good way I can implement like an expire...
# orm-help
w
Is there a good way I can implement like an expire thing - where a record is deleted after a certain amount of time
s
your best bet is probably a cron job
✅ 1
d
@Wuxxy Sam's response is the ideal, but if can't or don't know how to setup a cron job, you can delete the staled records when a new request comes to this same route. I believe prisma currently doesn't have support for auto deleting records based on timestamps