initial commit

This commit is contained in:
2020-06-11 01:14:23 -06:00
commit bbe78747f3
7 changed files with 449 additions and 0 deletions

31
dist/processDef.d.ts vendored Normal file
View File

@ -0,0 +1,31 @@
interface SystemDef {
storage: StorageDef;
}
interface StorageDef {
tables: TableDef[];
relations: ManyToManyDef[];
}
interface TableDef {
name: string;
columns: ColumnDef[];
relations: BelongsToDef[];
}
interface ColumnDef {
name: string;
type: "blob" | "boolean" | "date" | "dateTIME" | "number" | "string";
nullable: boolean;
unique?: boolean;
autoIncrement?: boolean;
default?: string;
}
interface BelongsToDef {
type: 'belongs-to';
table: string;
}
interface ManyToManyDef {
left: string;
relation: 'many-to-many';
right: string;
columns?: ColumnDef[];
}
export { SystemDef };