Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | ||
|---|---|---|---|---|---|---|---|---|---|---|
| id | CHAR | 36 | null |
|
|
ID(UUID) |
||||
| ai_chat_kind_id | INT UNSIGNED | 10 | null |
|
|
AIチャット種別ID(ai_chat_kind.id) |
||||
| organization_id | VARCHAR | 100 | null |
|
|
組織ID(スラッグ) |
||||
| employee_id | CHAR | 36 | √ | null |
|
|
従業員ID(NULLの場合は組織共通プロンプト) |
|||
| assets_url | VARCHAR | 512 | null |
|
|
R2オブジェクトキー(例: employee_ai_contexts/reflection_task/o2p/{emp_id}/strength_finder.md) |
||||
| category | VARCHAR | 100 | √ | null |
|
|
用途タグ(例: strength_finder / bond / persona) |
|||
| content_type | VARCHAR | 100 | √ | null |
|
|
MIMEタイプ(例: text/markdown) |
|||
| priority | INT UNSIGNED | 10 | 0 |
|
|
複数ファイル結合時の順序制御(昇順、デフォルト0) |
||||
| created_at | BIGINT UNSIGNED | 20 | √ | unix_timestamp(now()) |
|
|
作成日時(UNIXタイムスタンプ) |
|||
| updated_at | BIGINT UNSIGNED | 20 | √ | unix_timestamp(now()) |
|
|
更新日時(UNIXタイムスタンプ) |
|||
| deleted_at | BIGINT UNSIGNED | 20 | √ | null |
|
|
論理削除用タイムスタンプ |
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| PRIMARY | Primary key | Asc | id |
| fk_eac_organization | Performance | Asc | organization_id |
| idx_employee_ai_contexts_deleted_at | Performance | Asc | deleted_at |
| idx_employee_ai_contexts_lookup | Performance | Asc/Asc/Asc | ai_chat_kind_id + organization_id + employee_id |



