Open vba34520 opened 2 years ago
Remove created_at
and updated_at
from the User
model definition and it should work as intended.
First, Removing them manually will increase workload after auto generate.
Second, It will affect the original order of fields.
How to achieve logical deleting by deleted_at
? Thanks!
For example, a user record's deleted_at
was set. I hope Product.find_or_fail(id)
will raise sqlalchemy_mixins.ModelNotFoundError.
I have a table in MySQL like this
Auto generate
Result
And I combine it with sqlalchemy_mixins
main.py
How to make
created_at
andupdated_at
are not None without deleting their statements?