ChatGPT를 사용하여 시스템 다이어그램 작성하기 — 파트 I
ChatGPT의 인기는 계속 높아지고 있으며 현재 다양한 애플리케이션에서 사용되고 있습니다. 소프트웨어 설계자로서 자산관리를 위한 ChatGPT가 사용 사례 설명을 위한 다이어그램을 생성하고 동시에 여러 요소를 분석하는 것에 대한 내용입니다. Step 1: 사용 사례 정의 Prompt: Let define a simple use case in wealth management, something that is very well established and easy to understand ChatGPT: An appropriate data model for a wealth management~~ Step 2: 사용 사례에 대한 데이터 모델 정의 Prompt: describe the data model in more detail or tabular format using markdown ChatGPT: I can describe the structure of the data model in a tabular format using markdown. 이 대답과 함께, 실제 client table, Portfolio table, Asset table, Investment vehicle table, Transaction table을 제시해준다. Step 3: 관계 정의 - 엔터티 관계 다이어그램 Prompt: this is perfect, I would like to depict the relationships in a mermaid diagram, can you give me the markdown code to do this? ChatGPT: I apologize, but as a text-based model, I am not able to generate Mermaid diagrams or any other visual diagrams. However, I can provide you with an example of how the relationships could be represented in Mermaid syntax: 각각의 테이블에 대한 클래스 예를 보여주며, {mermaid} 태그로 묶인 마크다운 편집기에 복사하면 클래스 다이어그램/엔티티 관계 다이어그램를 구성할 수 있다. Step 4: 시퀀스 다이어그램 Prompt: how would a Buy transaction for an asset impact the tables mentioned above, I would like to depict this as a sequence diagram. Can you help describe the diagram in markdown format for mermaid? ChatGPT: Sure, a Buy transaction would have an impact on the following tables: 자산 테이블: 자산의 현재 시장 가치를 반영하도록 자산의 current_value가 업데이트됩니다. 포트폴리오 테이블: 포트폴리오의 current_value는 새 자산과 시장 가치를 반영하도록 업데이트되고 asset_allocation은 새 자산을 반영하도록 업데이트됩니다. 트랜잭션 테이블: 트랜잭션 유형, 트랜잭션 날짜, asset_id 및portfolio_id와 같은 트랜잭션 세부 정보와 함께 새 트랜잭션이 추가됩니다. 그리고, mermaid 시퀀스 다이어그램에서 프로세스를 표현하는 방법의 예제로 구매 트랜잭션의 시퀀스 다이어그램을 보여주며, 이를 마크다운 에디터내로 복사한다. Step 5: 상태 전환 다이어그램 Prompt: Will the account have states like new, closed, active inactive etc? I would like to depict the states in a state diagram using mermaid. Can you help describe the diagram in markdown format ChatGPT: It is common for financial accounts to have different states, such as new, closed, active, and inactive, to reflect the current status of the account. 신규 계정, 활성 계정, 비활성 계정, 폐쇄된 계정, 보류 중 상태, Suspended 상태, 동결 상태, 만료 상태등에 대한 개념을 정의해준다. 그리고, 머메이드 상태 다이어그램에서 계정의 상태를 나타내는 방법을 예제로 보여준다. 시퀀스 상태에 대한 업데이트를 진행한다. 이후 세부 사항은 원문을 참고해주시 바라며, 요컨대, ChatGPT와 Mermaid를 통해 자산관리를 위한 시스템다이어그램을 작성할 수 있습니다.