matching_app/docs/query.md
2025-04-25 14:02:04 +07:00

36 lines
677 B
Markdown

# FORMAT
# DATABASE QUERIES
## [Short Name/Description of Query]
### Purpose: [Specific purpose of this query.]
### Usage Context: [When and why this query is used.]
### Complexity: [Simple/Medium/Complex]
### Related Tables:
* `[Table Name 1]`
* `[Table Name 2]`
* ...
### Query (`sql` block):
```sql
[Full SQL query]
```
### Explanation:
[Detailed explanation of the query logic, each clause, and how it works.]
### Notes/Considerations:
[Important points about performance, constraints, ...]
### (Optional) SQL Dialect: [e.g., PostgreSQL]
### (Optional) Parameters:
[Parameter Name]: [Data Type] - [Description]
### (Optional) Expected Result/Sample Output:
---