Add HealthCheck model
This commit is contained in:
parent
99200e44e2
commit
046ec1a2dc
10
models/healthcheck.py
Normal file
10
models/healthcheck.py
Normal file
@ -0,0 +1,10 @@
|
||||
from sqlalchemy import Column, DateTime
|
||||
from sqlalchemy.sql import func
|
||||
from core.database import Base
|
||||
|
||||
class HealthCheck(Base):
|
||||
__tablename__ = "health_checks"
|
||||
|
||||
id = Column(UUID(as_uuid=True), primary_key=True, default=uuid.uuid4)
|
||||
created_at = Column(DateTime, default=func.now())
|
||||
updated_at = Column(DateTime, default=func.now(), onupdate=func.now())
|
Loading…
x
Reference in New Issue
Block a user