export type DbPrimaryKey = { name: string; columns: string[]; }; export type DbForeignKey = { name: string; tableFrom: string; columnsFrom: string[]; schemaFrom: string; schemaTo: string; tableTo: string; columnsTo: string[]; onUpdate?: string; onDelete?: string; }; export type DbColumn = { name: string; type: string; primaryKey: boolean; notNull: boolean; default?: any; isUnique?: any; autoIncrement?: boolean; uniqueName?: string; nullsNotDistinct?: boolean; onUpdate?: boolean; }; export type DbTable = { name: string; type: 'table'; database?: string; schema: string; columns: Record; indexes: Record; foreignKeys: Record; compositePrimaryKeys: Record; uniqueConstraints: Record; }; export type DbView = Omit & { type: 'view' | 'mat_view'; }; export type DbSchema = { database?: string; tables: Record; views: Record; enums: Record; }; export type DrizzleStudioObjectType = { [schemaName: string]: DbSchema; }; export type DrizzleStudioRelationType = { name: string; type: 'one' | 'many'; table: string; schema: string; columns: string[]; refTable: string; refSchema: string; refColumns: string[]; };