Database

From DreamFactory
Jump to: navigation, search


Data Model

The data model for DFE consists of a few core entities and many supporting entities. Below is the overall diagram of the entire model. We'll have a look at the pieces in the following sections.

Dfe-database.png

Core Entities

Several tables in the data model act as **core** entities. That is to say, all other models, in one way or another, rely on their existence. Take the *User* table, for instance. Without it, the instances cannot be launched.

The following entities are considered **core** entities of DreamFactory Enterprise:

* Cluster
* Server
* Mount
* Instance
* ServiceUser
* User

Owned Entities

Three (Cluster, User, and Instance) of the core entities are considered to be *owned*. This means that they can be the virtual property of a *user* or other core entity, instead of being *system-owned*. This notion is intended for the future use, and expansion of, instance automation services. Currently, unless otherwise specified, the system **owns** all core entities.

Diagram

ServiceUser is not included as it is currently only used to authorize Console logins.

Dfe-database-core.png