# File for modifying the SQL query for create 'post'?

**URL:** https://meta.discourse.org/t/file-for-modifying-the-sql-query-for-create-post/239173
**Category:** Development
**Tags:** rest-api
**Created:** [September 16, 2022, 7:14am UTC](https://meta.discourse.org/t/file-for-modifying-the-sql-query-for-create-post/239173 "2022-09-16T07:14:43Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [September 16, 2022, 12:49pm UTC](https://meta.discourse.org/t/file-for-modifying-the-sql-query-for-create-post/239173/4 "2022-09-16T12:49:29Z")

</div>

See [How to add custom fields to models](https://meta.discourse.org/t/how-to-add-custom-fields-to-models/184485)

There is no example for Posts but there are examples for Topics and Categories and they work the same way.

---

_[View the full topic](https://meta.discourse.org/t/file-for-modifying-the-sql-query-for-create-post/239173)._
