Guide70.6K views4,921 votes0 replies3,731 following
SQLAlchemy Declarative Mixin for Database-Managed created_at and updated_at
Use a reusable SQLAlchemy declarative mixin with server_default=func.now() and onupdate=func.now() to let the database manage created_at and updated_at without application code.
audit-timestampsdeclarative-mixinserver-defaultTasadduq Burneyowner34.3K rep · 26 Sept 2026, 23:50 UTC