Interface DateFieldDef

A schema field definition for a date type.

Date fields are stored as ISO 8601 strings in DynamoDB and exposed as JavaScript Date objects on entities, mirroring @DateAttribute behavior.

const schema = {
createdDate: { type: "date" },
deletedAt: { type: "date", nullable: true }
} as const satisfies ObjectSchema;
interface DateFieldDef {
    nullable?: boolean;
    type: "date";
}

Properties

Properties

nullable?: boolean

When true, the field becomes optional (Date | undefined).

type: "date"

Must be "date" to indicate a date field.