> For the complete documentation index, see [llms.txt](https://flutter-boilerplate.gitbook.io/flutter-boilerplate-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://flutter-boilerplate.gitbook.io/flutter-boilerplate-docs/features/database.md).

# Database

Firestore is implemented as database for the app template.

When a new user is created there automatically a user record created in Firestore. This user record will be in the "USERS" collection and contain a document with the user ID for every user. The user ID is taken from the Firebase Auth user ID.

The structure of the user data is defined in

```dart
class DBUser { ... }
```
