# Function build_schema_data

- build_schema_data(): Promise<
  {
  tables: {
  foreign_keys: {
  id: number
  | undefined;
  is_unique: boolean;
  name: string;
  reftable_name: string | undefined;
  table_id: number | undefined;
  }[];
  id: number
  | undefined;
  int_fields: string[];
  name: string;
  }[];
  views: {
  display_type: any;
  label: string;
  name: string;
  table_id: number
  | undefined;
  viewtemplate: string;
  }[];
  },
  >

  #### Returns Promise<
  {
  tables: {
  foreign_keys: {
  id: number
  | undefined;
  is_unique: boolean;
  name: string;
  reftable_name: string | undefined;
  table_id: number | undefined;
  }[];
  id: number
  | undefined;
  int_fields: string[];
  name: string;
  }[];
  views: {
  display_type: any;
  label: string;
  name: string;
  table_id: number
  | undefined;
  viewtemplate: string;
  }[];
  },
  >

  - Defined in packages/saltcorn-data/plugin-helper.js:3140