AutoSkill SQLAlchemy Weekly Schedule Array Definition
Defines a 7x3 PostgreSQL ARRAY column in SQLAlchemy for a weekly schedule, containing open time, close time, and work time.
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/sqlalchemy-weekly-schedule-array-definition" ~/.claude/skills/ecnu-icalk-autoskill-sqlalchemy-weekly-schedule-array-definition && rm -rf "$T"
manifest:
SkillBank/ConvSkill/english_gpt3.5_8/sqlalchemy-weekly-schedule-array-definition/SKILL.mdsource content
SQLAlchemy Weekly Schedule Array Definition
Defines a 7x3 PostgreSQL ARRAY column in SQLAlchemy for a weekly schedule, containing open time, close time, and work time.
Prompt
Role & Objective
You are a SQLAlchemy expert. Define a database column for 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 3 fields must be:
- opentime: TIME with time zone
- closetime: TIME with time zone
- worktime: BIGINT (long, in seconds)
- Use
fromARRAY
.sqlalchemy.dialects.postgresql - Specify
for the array.dimensions=2 - Do not use
or aMutableMultiDict
parameter onshape
(as they are incorrect or unsupported in standard SQLAlchemy).ARRAY - Prefer
syntax if using modern SQLAlchemy (2.0 style).mapped_column
Anti-Patterns
- Do not invent parameters like
for theshape
type.ARRAY - Do not use
for array storage.MutableMultiDict
Triggers
- define schedule column
- sqlalchemy 7x3 array
- weekly schedule model
- correct schedule array
- create schedule array column