# Type Alias Type

type Type = {
attributes?:
| FieldLike[]
| (({ table }: { table: AbstractTable }) => Promise<FieldLike[]>);
contract?: any;
discovery_match?: (
info_schema_col: GenObj,
) => Promise<Partial<FieldLike> | void>;
distance_operators?: { [opName: string]: any };
fieldviews?: Record<string, FieldView>;
js_type?: string;
listAs?: Function;
name: string;
postProcess?: Function;
presets?: any;
primaryKey?: { default_sql?: string; sql_type: string };
read?: (arg0: any, arg1?: any) => any;
readFromDB?: (arg0: any) => any;
readFromFormRecord?: Function;
showAs?: Function;
sql_name?: string | ((attrs: any) => string);
validate?: Function;
validate_attributes?: Function;
}

- Defined in common_types.ts:36

##### Index

### Properties

attributes?
contract?
discovery_match?
distance_operators?
fieldviews?
js_type?
listAs?
name
postProcess?
presets?
primaryKey?
read?
readFromDB?
readFromFormRecord?
showAs?
sql_name?
validate?
validate_attributes?

## Properties

### `Optional` attributes

attributes?:
| FieldLike[]
| (({ table }: { table: AbstractTable }) => Promise<FieldLike[]>)

- Defined in common_types.ts:51

### `Optional` contract

contract?: any

- Defined in common_types.ts:49

### `Optional` discovery_match

discovery_match?: (
info_schema_col: GenObj,
) => Promise<Partial<FieldLike> | void>

- Defined in common_types.ts:56

### `Optional` distance_operators

distance_operators?: { [opName: string]: any }

- Defined in common_types.ts:55

### `Optional` fieldviews

fieldviews?: Record<string, FieldView>

- Defined in common_types.ts:50

### `Optional` js_type

js_type?: string

- Defined in common_types.ts:39

### `Optional` listAs

listAs?: Function

- Defined in common_types.ts:45

### name

name: string

- Defined in common_types.ts:37

### `Optional` postProcess

postProcess?: Function

- Defined in common_types.ts:43

### `Optional` presets

presets?: any

- Defined in common_types.ts:48

### `Optional` primaryKey

primaryKey?: { default_sql?: string; sql_type: string }

- Defined in common_types.ts:47

### `Optional` read

read?: (arg0: any, arg1?: any) => any

- Defined in common_types.ts:41

### `Optional` readFromDB

readFromDB?: (arg0: any) => any

- Defined in common_types.ts:40

### `Optional` readFromFormRecord

readFromFormRecord?: Function

- Defined in common_types.ts:42

### `Optional` showAs

showAs?: Function

- Defined in common_types.ts:46

### `Optional` sql_name

sql_name?: string | ((attrs: any) => string)

- Defined in common_types.ts:38

### `Optional` validate

validate?: Function

- Defined in common_types.ts:44

### `Optional` validate_attributes

validate_attributes?: Function

- Defined in common_types.ts:54