# 디스코urs 데이터베이스 스키마 설계 다이어그램은 어디서 구할 수 있나요?

**URL:** https://meta.discourse.org/t/where-can-we-get-discourse-database-schema-design-diagram/233083
**Category:** Development
**Created:** [7월 17, 2022, 5:01오전 UTC](https://meta.discourse.org/t/where-can-we-get-discourse-database-schema-design-diagram/233083 "2022-07-17T05:01:31Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![niledebunkr](https://avatars.discourse-cdn.com/v4/letter/n/8491ac/32.png) [@niledebunkr](https://meta.discourse.org/u/niledebunkr)
#### Post date: [7월 17, 2022, 5:01오전 UTC](https://meta.discourse.org/t/where-can-we-get-discourse-database-schema-design-diagram/233083/1 "2022-07-17T05:01:31Z")

</div>

디스코urs의 DB 스키마 다이어그램을 얻는 방법에 대해 도움을 주실 분 계신가요? 테이블 간 관계를 보여 주는 것이 필요합니다.  
테이블 간 관계와 관련된 모든 것을 조사해 보고 싶습니다.  
DB 덤프 파일을 스키마 다이어그램을 작성하기 위해 바로 가져올 수 있는 상태가 아닙니다.

@Falco 님이 여기에서 공유한 것과 같은 스키마 다이어그램을 원합니다: [Could anyone give a database schema dump? - #6 by Falco](https://meta.discourse.org/t/could-anyone-give-a-database-schema-dump/142749/6)  
SQL 파일을 가져와 실행해 보았지만 작동하지 않았습니다. 파일 내에 포함된 확장 기능, 사용자 및 함수 때문인 것으로 보입니다.

그래서 스키마 다이어그램을 공유해 주실 수 있는 분, 또는 바로 가져와 사용할 수 있는 SQL 덤프 파일을 공유해 주실 수 있는 분 계신가요?

감사합니다.

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [7월 17, 2022, 5:49오전 UTC](https://meta.discourse.org/t/where-can-we-get-discourse-database-schema-design-diagram/233083/2 "2022-07-17T05:49:31Z")

</div>

이전에 질문이 있었던 적이 있으니, 아래 링크를 참고해 주세요:

> [@데이터베이스 스키마 설계를 소개하는 문서가 있나요?](https://meta.discourse.org/t/is-there-a-document-intruducing-the-database-schema-design/171729?u=merefield):
>
> 저는 discourse가 어떻게 구현되었는지 공부하고 있으며, discourse 데이터베이스 스키마의 각 필드를 이해하여 Ruby 코드가 수행하는 작업의 의미를 빠르게 파악할 수 있기를 바랍니다. 저를 위한 일련의 문서가 있을까요?

> [@ERD를 사용해 Discourse의 개체-관계 다이어그램 만들기](https://meta.discourse.org/t/using-erd-to-create-entity-relationship-diagrams-for-discourse/161086?u=merefield):
>
> Hey, Today I was playing around with ERD and installed it in my Discourse dev setup on the mac and ran it. Was a bit buggy and had to reload it a few times, but was able to get it going, but needs work. Obviously it’s huge, and needs work. Is anyone else on the Discourse dev team or plugin developers are using ERD or another package similar to ERD to create entity-relationship diagrams for Discourse? Thank…

> [@데이터베이스 탐색을 쉽게 만드는 데이터 모델](https://meta.discourse.org/t/a-data-model-to-make-perusing-the-database-easier/223486/13?u=merefield):
>
> You can generate one with relationships with rails-erd: [GitHub - voormedia/rails-erd: Generate Entity-Relationship Diagrams for Rails applications · GitHub](https://github.com/voormedia/rails-erd) Not sure how useful this is though

---

<div class="post-metadata">

### Author: ![niledebunkr](https://avatars.discourse-cdn.com/v4/letter/n/8491ac/32.png) [@niledebunkr](https://meta.discourse.org/u/niledebunkr)
#### Post date: [7월 17, 2022, 6:26오전 UTC](https://meta.discourse.org/t/where-can-we-get-discourse-database-schema-design-diagram/233083/3 "2022-07-17T06:26:31Z")

</div>

가져오기 가능한 SQL 덤프 파일을 받을 수 있을까요?  
Ruby 의존성이 매우 제한적인 것 같습니다.

예를 들어, 어떤 것이 기본 키이고 어떤 것이 외래 키인지 등을 알고 싶습니다.

저는 주로 이러한 테이블 간의 관계와 연결에 더 관심이 있습니다.

`users`,  
`user_options`,  
`api_keys`,  
`user_api_keys`,  
`user_auth_tokens`,  
`user_auth_token_logs`,  
`notifications`

감사합니다

---

<div class="post-metadata">

### Author: ![niledebunkr](https://avatars.discourse-cdn.com/v4/letter/n/8491ac/32.png) [@niledebunkr](https://meta.discourse.org/u/niledebunkr)
#### Post date: [7월 17, 2022, 6:30오전 UTC](https://meta.discourse.org/t/where-can-we-get-discourse-database-schema-design-diagram/233083/4 "2022-07-17T06:30:20Z")

</div>

감사합니다. 공유해 주신 링크 중 가장 유용한 것 같습니다.

> [@데이터베이스 탐색을 쉽게 만드는 데이터 모델](https://meta.discourse.org/t/a-data-model-to-make-perusing-the-database-easier/223486/13):
>
> You can generate one with relationships with rails-erd: [GitHub - voormedia/rails-erd: Generate Entity-Relationship Diagrams for Rails applications · GitHub](https://github.com/voormedia/rails-erd) Not sure how useful this is though
