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
return`You are a database administration assistant. Analyze the following database tables and generate optimal settings for displaying and managing them in a web admin panel.
42
-
43
-
For each table, provide:
44
-
1. display_name: A human-readable name for the table
45
-
2. search_fields: Columns that should be searchable (text fields like name, email, title)
46
-
3. readonly_fields: Columns that should not be editable (like auto_increment, timestamps)
47
-
4. columns_view: All columns in preferred display order
48
-
5. widgets: For each column, suggest the best widget type from: ${widgetTypes.join(', ')}
49
-
50
-
Available widget types and when to use them:
51
-
- Password: for password fields
52
-
- Boolean: for boolean/bit columns
53
-
- Date: for date columns
54
-
- Time: for time-only columns
55
-
- DateTime: for datetime/timestamp columns
56
-
- JSON: for JSON/JSONB columns
57
-
- Textarea: for long text fields (description, content, etc.)
58
-
- String: for short text fields (name, title, etc.)
59
-
- Readonly: for auto-generated fields
60
-
- Number: for numeric columns
61
-
- Select: for columns with limited options
62
-
- UUID: for UUID columns
63
-
- Enum: for enum columns
64
-
- Foreign_key: for foreign key columns
65
-
- File: for file path columns
66
-
- Image: for image URL columns
67
-
- URL: for URL columns
68
-
- Code: for code snippets
69
-
- Phone: for phone number columns
70
-
- Country: for country columns
71
-
- Color: for color columns (hex values)
72
-
- Range: for range values
73
-
- Timezone: for timezone columns
74
-
75
-
Respond ONLY with valid JSON in this exact format (no markdown, no explanations):
0 commit comments