You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please analyze the SQL queries and database structure information from our previous conversation to generate a structured schema document in the following format.
2
+
3
+
If you have access to Claude Desktop, please create the document as an artifact.
4
+
If you have access to the file system, please create the document as a file.
5
+
6
+
# Writing Guidelines
7
+
8
+
1. Conciseness
9
+
- Include only essential information
10
+
- Remove unnecessary explanations
11
+
- Focus on information immediately usable in practice
12
+
2. Consistency
13
+
- Use table names and column names exactly as they appear in the actual database
14
+
- Maintain case sensitivity
15
+
- Unify naming conventions
16
+
3. Practicality
17
+
- Format should allow copy-paste for actual query writing
18
+
- Specify JOIN conditions and WHERE clause conditions
19
+
- Prioritize frequently used patterns
20
+
4. Scalability
21
+
- Maintain existing structure when adding new information
22
+
- Enable independent management by section
23
+
24
+
# Important Notes
25
+
26
+
- Exclude sensitive information (passwords, personal data, etc.)
27
+
- Focus on structure and relationships rather than actual data values
28
+
- Focus on subject of the conversation, do not include any information that is not directly related to the subject
29
+
- Prioritize key information over overly detailed explanations
30
+
- Keep section titles and headings as provided, but write section content in the user's language
31
+
32
+
# Output Format
33
+
34
+
## [DB Schema] {Main Task or Domain Name}
35
+
36
+
### Keywords
37
+
{List key keywords related to this query, separated by commas}
38
+
- Table names, Column names
39
+
- Business terms
40
+
- Domain-specific terms
41
+
42
+
### Datasource
43
+
* {Database Platform Name}
44
+
* {List all tables used in database.table format}
45
+
* {For Databricks platform, use catalog.database.table format}
46
+
* {Each table should be listed with its full path}
47
+
48
+
### Database Structure
49
+
50
+
#### {Database Name 1}
51
+
{Brief description of the database's main purpose and role}
0 commit comments