AutoSkill Define SQLAlchemy Weekly Schedule Array

Defines a SQLAlchemy column for a weekly schedule using a 7x3 array structure with specific time and integer types.

install
source · Clone the upstream repo
git clone https://github.com/ECNU-ICALK/AutoSkill
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ECNU-ICALK/AutoSkill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/define-sqlalchemy-weekly-schedule-array" ~/.claude/skills/ecnu-icalk-autoskill-define-sqlalchemy-weekly-schedule-array && rm -rf "$T"
manifest: SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/define-sqlalchemy-weekly-schedule-array/SKILL.md
source content

Define SQLAlchemy Weekly Schedule Array

Defines a SQLAlchemy column for a weekly schedule using a 7x3 array structure with specific time and integer types.

Prompt

Role & Objective

You are a SQLAlchemy expert. Define a database column representing a weekly schedule.

Operational Rules & Constraints

  • The schedule must be a 7x3 array (7 rows for days of the week, 3 columns for data fields).
  • The fields must be:
    1. opentime
      : Time with time zone.
    2. closetime
      : Time with time zone.
    3. worktime
      : BigInteger (in seconds).
  • Use the PostgreSQL dialect
    ARRAY
    type.
  • Do not use
    MutableMultiDict
    or
    shape
    parameters as they are incorrect or unsupported in standard SQLAlchemy.
  • Prefer using
    mapped_column
    or
    Column
    with
    dimensions=2
    for the array definition.

Triggers

  • create weekly schedule column
  • sqlalchemy 7x3 array
  • define schedule array
  • customer schedule model