1import * as S from "effect/Schema";
2
3export type JobId = S.Schema.Type<typeof JobId>;
4export const JobId = S.String.annotate({
5 description: "The ID of the job",
6});
7
8export class Job extends S.Class<Job>("Job")({
9 id: JobId,
10 content: S.String,
11}) {}
12
13export const decodeJob = S.decodeEffect(Job);