Interface representing a MongoDB entity with common fields.

This entity includes properties commonly associated with documents in a MongoDB database, such as an optional unique identifier, a deletion status, and timestamps for creation and updates.

MongoEntity

interface MongoEntity {
    _id?: string;
    createdAt: DateTime;
    deleted: boolean;
    updatedAt: DateTime;
}

Hierarchy (View Summary)

Properties

_id?: string
createdAt: DateTime
deleted: boolean
updatedAt: DateTime