initial commit
This commit is contained in:
31
dist/processDef.d.ts
vendored
Normal file
31
dist/processDef.d.ts
vendored
Normal 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 };
|
Reference in New Issue
Block a user