Skip to content

Instantly share code, notes, and snippets.

@jamesplease
Created February 15, 2017 02:27
Show Gist options
  • Save jamesplease/e7421b8bb2f1a2bd7af5133a2972ed34 to your computer and use it in GitHub Desktop.
Save jamesplease/e7421b8bb2f1a2bd7af5133a2972ed34 to your computer and use it in GitHub Desktop.
{
name: 'person',
plural_form: 'people',
attributes: { first_name: 'VARCHAR(30)', last_name: 'VARCHAR(30)' },
pagination: { default_page_size: 5, default_page_number: 1 },
built_in_meta: { created_at: false, updated_at: true }
}
[
{
column_name: 'id',
udt_name: 'int4',
data_type: 'integer',
character_maximum_length: null,
table_name: 'person',
table_schema: 'public',
table_catalog: 'ddq0q0k8dpphrj',
is_nullable: 'NO',
numeric_precision: 32,
numeric_scale: 0,
numeric_precision_radix: 2,
datetime_precision: null,
interval_type: null,
interval_precision: null
},
{
column_name: 'first_name',
udt_name: 'varchar',
data_type: 'character varying',
character_maximum_length: 30,
table_name: 'person',
table_schema: 'public',
table_catalog: 'ddq0q0k8dpphrj',
is_nullable: 'YES',
numeric_precision: null,
numeric_scale: null,
numeric_precision_radix: null,
datetime_precision: null,
interval_type: null,
interval_precision: null
},
{
column_name: 'last_name',
udt_name: 'varchar',
data_type: 'character varying',
character_maximum_length: 30,
table_name: 'person',
table_schema: 'public',
table_catalog: 'ddq0q0k8dpphrj',
is_nullable: 'YES',
numeric_precision: null,
numeric_scale: null,
numeric_precision_radix: null,
datetime_precision: null,
interval_type: null,
interval_precision: null
},
{
column_name: 'updated_at',
udt_name: 'timestamptz',
data_type: 'timestamp with time zone',
character_maximum_length: null,
table_name: 'person',
table_schema: 'public',
table_catalog: 'ddq0q0k8dpphrj',
is_nullable: 'YES',
numeric_precision: null,
numeric_scale: null,
numeric_precision_radix: null,
datetime_precision: 6,
interval_type: null,
interval_precision: null
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment