db¶
SQLAlchemy ORM models for tix entities.
This module defines the database schema and domain logic for Story and Task entities. The ORM models serve dual purpose: database persistence and runtime domain objects with file I/O capabilities.
- class shai_tix.db.Base(**kwargs: Any)[source]¶
- metadata: ClassVar[MetaData] = MetaData()¶
Refers to the
_schema.MetaDatacollection that will be used for new_schema.Tableobjects.See also
orm_declarative_metadata
- registry: ClassVar[_RegistryType] = <sqlalchemy.orm.decl_api.registry object>¶
Refers to the
_orm.registryin use where new_orm.Mapperobjects will be associated.
- class shai_tix.db.StoryOrTask(**kwargs: Any)[source]¶
Abstract base class for Story and Task ORM models.
Provides common fields (id, date, title, path) and file I/O methods for metadata, description, and report files.
- Parameters:
id – Primary key, the global ID
date – Creation date in YYYY-MM-DD format
title – Sanitized title from folder name
path – Absolute filesystem path to the entity directory
- class shai_tix.db.Story(**kwargs)[source]¶
SQLAlchemy ORM model for Story entities.
- Parameters:
id – Primary key, the global story ID
date – Creation date in YYYY-MM-DD format
title – Sanitized title from folder name