Interface ExportedData

Exported data structure.

interface ExportedData {
    version: string;
    exportedAt: string;
    adapter: string;
    dialect?: "sqlite" | "postgres";
    schema?: TableSchema[];
    data: Record<string, unknown[]>;
}

Properties

version: string
exportedAt: string
adapter: string
dialect?: "sqlite" | "postgres"

The engine the data came from, which reads the schema's types and defaults on import.

schema?: TableSchema[]
data: Record<string, unknown[]>