model-definition.d.ts 571 B

12345678910111213141516171819202122232425262728
  1. import {RelationDefinition} from './relations';
  2. import {PropertyDefinition} from './properties';
  3. /**
  4. * Property definition map.
  5. */
  6. export declare type PropertyDefinitionMap = {
  7. [name: string]: PropertyDefinition;
  8. };
  9. /**
  10. * Relation definition map.
  11. */
  12. export declare type RelationDefinitionMap = {
  13. [name: string]: RelationDefinition;
  14. };
  15. /**
  16. * Model definition.
  17. */
  18. export declare type ModelDefinition = {
  19. name: string;
  20. datasource?: string;
  21. base?: string;
  22. tableName?: string;
  23. properties?: PropertyDefinitionMap;
  24. relations?: RelationDefinitionMap;
  25. };