journal/Journal.Core/Dtos/FragmentDtos.cs
Jacob Schmidt 0d77300c22 feat: Project Journal backend monorepo
Monorepo with centralized build props, npm workspaces, LlamaSharp AI,
SQLite/SQLCipher storage, Svelte frontend, and unified smoke tests.

Co-Authored-By: Oz <oz-agent@warp.dev>
2026-03-02 20:56:26 -06:00

25 lines
568 B
C#

using System.ComponentModel.DataAnnotations;
namespace Journal.Core.Dtos;
public record FragmentDto(
Guid Id,
string Type,
string Description,
DateTimeOffset Time,
List<string> Tags
);
public record CreateFragmentDto(
[property: Required(AllowEmptyStrings = false)] string Type,
[property: Required(AllowEmptyStrings = false)] string Description,
List<string>? Tags = null
);
public record UpdateFragmentDto(
string? Type = null,
string? Description = null,
List<string>? Tags = null,
DateTimeOffset? Time = null
);