ProjectTemplate
ProjectTemplate Schema¶
Description: Admin-curated factory that instantiates into user-owned Projects.
Bundles 0..N versioned ObservationSpec blueprints (see
``observation_specs`` / ``ProjectTemplateObservationSpec``). When a user
starts a project from this template, each spec is materialized into a
published ``instance`` observation with the user's target / owner /
grant applied. See docs/OBSERVATION_SPEC_DESIGN.md (C3).
Properties¶
| Name | Type | Description |
|---|---|---|
| id | Integer |
No description |
| uid | UUID |
No description |
| slug | String(80) |
No description |
| name | String(200) |
No description |
| description | String(500) |
No description |
| icon | String(120) (Optional) |
No description |
| cover_image | String(255) (Optional) |
No description |
| category | String(80) (Optional) |
No description |
| kind | Enum(single_target, target_list) |
No description |
| target_list | JSONB (Optional) |
No description |
| target_picker_config | JSONB (Optional) |
No description |
| default_answers | JSONB (Optional) |
No description |
| content_pages | JSONB (Optional) |
No description |
| result_specs | JSONB (Optional) |
No description |
| difficulty | Integer |
No description |
| is_featured | Boolean |
No description |
| visibility | Enum(private, org, public) |
No description |
| min_role | String(80) (Optional) |
No description |
| owner_id | Integer (Optional) |
No description |
| created_by | Integer |
No description |
| created_at | DateTime |
No description |
| updated_at | DateTime |
No description |
Relationships¶
| Relationship Name | Type |
|---|---|
| creator | User |
| projects | Project |
| observation_specs | ProjectTemplateObservationSpec |