# Database Tables

### Here is a sumarry of the tabels D.T uses

#### wp\_posts

* D.T records like contacts and groups
* The post row contains limited data like: post ID, name, author, creation date

#### wp\_postmeta

* Stores field data abot the recod
* Example: status, milestones

#### wp\_dt\_post\_user\_meta

* D.T custom table
* Stores record data that is only visible to one user (private fields)
* Example: my favorite contacts

#### wp\_comments

* Stores record comments

#### wp\_commentmeta

* Stores comment meta like
* Example: reactions

#### wp\_dt\_share

* D.T custom table
* Stores who a record is shared with (which users have access to a record)

#### wp\_p2p

* Stores connections to other records
* Example: contact records that form a group's members

#### wp\_p2pmeta

* Stores p2p meta. Currently unused

#### [wp\_dt\_activity\_log](https://developers.disciple.tools/theme-core/tables/wp-dt-activity-log)

* D.T custom table, stores activity on records
* Example: Milestone "praying" selected on July 27 2020 at 7:23pm

#### wp\_dt\_location\_grid

* D.T custom table.
* Stores the base location grid project. Used in the location field
* Example: Paris, France, grid\_id: 100089652, level: admin2

#### wp\_dt\_location\_grid\_meta

* D.T custom table
* Stores extra geocoding data when using a geocoder from mapbox or google

#### wp\_dt\_notifications

* D.T custom table
* Stores web notifications for user to see when they log in
* Example: You were assigned on contact John Doe

#### wp\_dt\_reports

* D.T custom table
* Stores lightweight events
* Possible example: meeting times

#### wp\_dt\_reportmeta

* D.T custom table
* Store extra information on a report

#### wp\_dt\_movement\_log

* D.T custom table
* Stores geocoded event that can more easily be queried

#### wp\_options

* WP table
* Stores settings and configurations used by D.T

#### wp\_users

* WP table
* Each user that user the D.T system has a user record

#### wp\_usermeta

* WP table
* Stores user information
* Example: prefered language

### Tables that D.T does not use:

* wp\_links
* wp\_term\_relationships
* wp\_term\_taxonomy
* wp\_termmeta
* wp\_terms


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developers.disciple.tools/theme-core/tables.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
