Initial commit
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
from sqlalchemy import Column, DateTime, func
|
||||
from sqlalchemy.ext.declarative import declarative_base
|
||||
|
||||
Base = declarative_base()
|
||||
|
||||
class TimestampMixin:
|
||||
created_at = Column(DateTime, default=func.now())
|
||||
updated_at = Column(DateTime, default=func.now(), onupdate=func.now())
|
||||
Reference in New Issue
Block a user