Skip to content

Commit

Permalink
new(core.gbapp): LLM alerts for data.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed Oct 17, 2024
1 parent 2abb498 commit caf1601
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion packages/basic.gblib/services/SystemKeywords.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2955,7 +2955,17 @@ export class SystemKeywords {
const schema = {};
Object.keys(columns).forEach(col => {
const columnType = columns[col].type;
schema[col] = mapToSQLiteType(columnType); // Map source type to SQLite type

// Map source type to SQLite type
schema[col] = {
type: mapToSQLiteType(columnType)
};

// If the column is named 'id' or 'Id', set it as the primary key
if (col.toLowerCase() === 'id') {
schema[col].primaryKey = true;
schema[col].autoIncrement = true; // Optional: auto-increment for primary key
}
});

// Define the model dynamically for each table in SQLite
Expand Down

0 comments on commit caf1601

Please sign in to comment.