metis-desk/.inspect-catalog-db.ts
David 832d69c6fa feat: enhance form components with field help and tabbed sections
- Added FieldHelp component to display help text for form fields.
- Integrated help text into AssetCharacteristicControl and ResourceCharacteristicControl.
- Updated AssetForm to utilize TabbedFieldSections for better organization of characteristics.
- Modified BrandSelect to include help text.
- Improved CatalogFieldForm with descriptive hints for the description field.
- Refactored FieldSections to support different layouts and improved styling.
- Introduced fieldHelpById utility to manage help text for fields.
- Updated localization files to include new help text strings.
- Enhanced tests to cover new features and ensure functionality.
2026-10-10 22:00:45 +02:00

6 lines
637 B
TypeScript

import { createDatabase, readDatabaseEnvironment } from "./apps/server/src/config/database";
import { QueryTypes } from "sequelize";
const db=createDatabase(readDatabaseEnvironment(process.env));
console.log(await db.query("SELECT TABLE_NAME AS child,COLUMN_NAME AS col,REFERENCED_TABLE_NAME AS parent,REFERENCED_COLUMN_NAME AS parentCol FROM information_schema.KEY_COLUMN_USAGE WHERE TABLE_SCHEMA=DATABASE() AND REFERENCED_TABLE_NAME IS NOT NULL",{type:QueryTypes.SELECT}));
console.log(await db.query("SELECT TABLE_NAME AS name FROM information_schema.TABLES WHERE TABLE_SCHEMA=DATABASE()",{type:QueryTypes.SELECT}));
await db.close();