from datetime import datetime, timezone
from sqlalchemy import Column, ForeignKey, DateTime
from cognee.infrastructure.databases.relational import Base, UUID

class ACLResources(Base):
    __tablename__ = "acl_resources"

    created_at = Column(DateTime(timezone = True), default = lambda: datetime.now(timezone.utc))

    acl_id = Column(UUID, ForeignKey("acls.id"), primary_key = True)
    resource_id = Column(UUID, ForeignKey("resources.id"), primary_key = True)
