Data Models Introduction
Data Models are foundational to your MooseJS application. Using Data Models, you define the schemas of the data you need to support in your application. Based on these simple schema definitions, MooseJS will configure end-to-end data infrastructure for you.
Data Models look like this:
type Key<T extends string | number> = T;
export interface UserActivity {
eventId: Key<string>;
timestamp: string;
userId: string;
activity: string;
}
For each Data Model that you define, MooseJS with automatically configure for you:
All of these components are typed to the schema of your Data Model, and automatically configured to be interconnected and to pass data seamlessly down the pipeline.
In other words, simply by defining a couple simple Data Model primitives, you can be up and running with a modern, scalable, end-to-end data stack in just a couple minutes. You're ready to start ingesting data from data sources, building Flows to process that data, and consuming that data into downstream use cases like BI software, LLMs, or your own analytics-driven applications.
In the following documentation you’ll find information about: