preserve stuff before trying something craz

This commit is contained in:
2020-06-15 23:49:53 -06:00
parent 9ace341ce4
commit 3505b16169
8 changed files with 354 additions and 18 deletions

19
dist/processDef.d.ts vendored
View File

@ -1,10 +1,29 @@
interface SystemDef {
storage: StorageDef;
views: ViewDef[];
}
interface StorageDef {
tables: TableDef[];
relations: ManyToManyDef[];
}
interface ViewDef {
component: string;
type: ('list' | 'count' | 'item' | 'distinct')[];
columns: string[];
orderBy?: Order[];
filters?: Filter[];
}
interface Order {
column: string;
direction: 'asc' | 'desc';
}
interface Filter {
param: string;
column: string;
comparison: '=' | '!=' | '>' | '<' | 'contains';
value?: string;
required?: boolean;
}
interface TableDef {
name: string;
columns: ColumnDef[];