feat(example-contact-hub): scaffold domain models and typed validation schema #5

Open
opened 2026-10-27 14:51:18 +00:00 by crapougnax · 0 comments
Owner

Migrated from GitHub https://github.com/Quatrain/Core/issues/32 (opened by @crapougnax on 2026-09-18).

Part of parent story #4.

🎯 Goal

Define pure TypeScript domain entities for the Contact & Task Hub using @quatrain/core and @quatrain/backend.

📋 Specification

  1. Create Contact model:
    • Properties: name (StringProperty, required), email (StringProperty, email format), company (StringProperty), notes (StringProperty).
    • Collection name: 'contacts'.
  2. Create TaskItem model:
    • Properties: title (StringProperty, required), dueDate (DateProperty), isCompleted (BooleanProperty, default false), contact (ObjectUri reference).
    • Collection name: 'tasks'.
  3. Unit test schema validation and in-memory instantiation.
> Migrated from GitHub https://github.com/Quatrain/Core/issues/32 (opened by @crapougnax on 2026-09-18). Part of parent story #4. ### 🎯 Goal Define pure TypeScript domain entities for the Contact & Task Hub using `@quatrain/core` and `@quatrain/backend`. ### 📋 Specification 1. Create `Contact` model: - Properties: `name` (StringProperty, required), `email` (StringProperty, email format), `company` (StringProperty), `notes` (StringProperty). - Collection name: `'contacts'`. 2. Create `TaskItem` model: - Properties: `title` (StringProperty, required), `dueDate` (DateProperty), `isCompleted` (BooleanProperty, default `false`), `contact` (ObjectUri reference). - Collection name: `'tasks'`. 3. Unit test schema validation and in-memory instantiation.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
quatrain/core#5
No description provided.