Defines SQLAlchemy ORM models for users and preferences, supporting authentication and role management.
# Source: https://github.com/bytedance/deer-flow | License: MIT | Copyright 2025 Bytedance Ltd. and/or its affiliates # Provided via justclaw.it.com; keep this notice with the code. """ORM model for the users table. Lives in the harness persistence package so it is picked up by ``Base.metadata.create_all()`` alongside ``threads_meta``, ``runs``, ``run_events``, and ``feedback``. Using the shared engine means: - One SQLite/Postgres database, one connection pool - One schema initialisation codepath - Consistent async sessions across auth and persistence reads """ from __future__ import annotations from datetime import UTC, datetime from sqlalchemy import JSON, Boolean, DateTime, ForeignKey, Index, String, false, text from sqlalchemy.orm import Mapped, mapped_column from deerflow.persis ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key