# Database's Data Model?

**URL:** <https://meta.discourse.org/t/databases-data-model/93668>\
**Category:** Product Support\
**Created:** [August 1, 2018, 6:02pm UTC](https://meta.discourse.org/t/databases-data-model/93668 "2018-08-01T18:02:54Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)\
**Post date:** [August 2, 2018, 8:59am UTC](https://meta.discourse.org/t/databases-data-model/93668/6 "2018-08-02T08:59:18Z")

</div>

The “table\_name” is a place holder for an actual file name. The file names are the singular of the table names. eg. user.rb - the users table, group.rb - the groups table.

at the bottom of each is similar to

```plaintext
# == Schema Information
#
# Table name: drafts
#
# id :integer not null, primary key
# user_id :integer not null
# draft_key :string not null
# data :text not null
# created_at :datetime not null
# updated_at :datetime not null
# sequence :integer default(0), not null
# revisions :integer default(1), not null
#
# Indexes
#
# index_drafts_on_user_id_and_draft_key (user_id,draft_key)
#

```

---

_[View the full topic](https://meta.discourse.org/t/databases-data-model/93668)._
