# 元数据字段

**URL:** <https://meta.discourse.org/t/meta-data-fields/374343>\
**Category:** Development\
**Created:** [2025年七月15日 17:35 UTC](https://meta.discourse.org/t/meta-data-fields/374343 "2025-07-15T17:35:24Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![itd-john](https://avatars.discourse-cdn.com/v4/letter/i/8dc957/32.png) [@itd-john](https://meta.discourse.org/u/itd-john)\
**Post date:** [2025年七月15日 17:35 UTC](https://meta.discourse.org/t/meta-data-fields/374343/1 "2025-07-15T17:35:24Z")

</div>

在 Discourse 中，是否有办法在数据库中为用户、版块、类别添加元数据字段？在数据库中创建自定义字段，然后在上下文中访问该用户的数据？

谢谢！

---

_[View the full topic](https://meta.discourse.org/t/meta-data-fields/374343)._
