mirror of
https://github.com/ash-project/ash_postgres.git
synced 2024-09-20 13:33:50 +12:00
ef58c78313
chore: get build passing
449 lines
10 KiB
JSON
449 lines
10 KiB
JSON
{
|
|
"attributes": [
|
|
{
|
|
"allow_nil?": false,
|
|
"default": "fragment(\"gen_random_uuid()\")",
|
|
"generated?": false,
|
|
"primary_key?": true,
|
|
"references": null,
|
|
"size": null,
|
|
"source": "id",
|
|
"type": "uuid"
|
|
},
|
|
{
|
|
"allow_nil?": true,
|
|
"default": "nil",
|
|
"generated?": false,
|
|
"primary_key?": false,
|
|
"references": null,
|
|
"size": null,
|
|
"source": "title_column",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"allow_nil?": true,
|
|
"default": "nil",
|
|
"generated?": false,
|
|
"primary_key?": false,
|
|
"references": null,
|
|
"size": null,
|
|
"source": "datetime",
|
|
"type": "timestamptz(6)"
|
|
},
|
|
{
|
|
"allow_nil?": true,
|
|
"default": "nil",
|
|
"generated?": false,
|
|
"primary_key?": false,
|
|
"references": null,
|
|
"size": null,
|
|
"source": "score",
|
|
"type": "bigint"
|
|
},
|
|
{
|
|
"allow_nil?": true,
|
|
"default": "nil",
|
|
"generated?": false,
|
|
"primary_key?": false,
|
|
"references": null,
|
|
"size": null,
|
|
"source": "public",
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"allow_nil?": true,
|
|
"default": "nil",
|
|
"generated?": false,
|
|
"primary_key?": false,
|
|
"references": null,
|
|
"size": null,
|
|
"source": "category",
|
|
"type": "citext"
|
|
},
|
|
{
|
|
"allow_nil?": true,
|
|
"default": "\"sponsored\"",
|
|
"generated?": false,
|
|
"primary_key?": false,
|
|
"references": null,
|
|
"size": null,
|
|
"source": "type",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"allow_nil?": true,
|
|
"default": "nil",
|
|
"generated?": false,
|
|
"primary_key?": false,
|
|
"references": null,
|
|
"size": null,
|
|
"source": "price",
|
|
"type": "bigint"
|
|
},
|
|
{
|
|
"allow_nil?": true,
|
|
"default": "\"0\"",
|
|
"generated?": false,
|
|
"primary_key?": false,
|
|
"references": null,
|
|
"size": null,
|
|
"source": "decimal",
|
|
"type": "decimal"
|
|
},
|
|
{
|
|
"allow_nil?": true,
|
|
"default": "nil",
|
|
"generated?": false,
|
|
"primary_key?": false,
|
|
"references": null,
|
|
"size": null,
|
|
"source": "status",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"allow_nil?": true,
|
|
"default": "nil",
|
|
"generated?": false,
|
|
"primary_key?": false,
|
|
"references": null,
|
|
"size": null,
|
|
"source": "status_enum",
|
|
"type": "status"
|
|
},
|
|
{
|
|
"allow_nil?": true,
|
|
"default": "nil",
|
|
"generated?": false,
|
|
"primary_key?": false,
|
|
"references": null,
|
|
"size": null,
|
|
"source": "constrained_int",
|
|
"type": "bigint"
|
|
},
|
|
{
|
|
"allow_nil?": true,
|
|
"default": "nil",
|
|
"generated?": false,
|
|
"primary_key?": false,
|
|
"references": null,
|
|
"size": null,
|
|
"source": "point",
|
|
"type": [
|
|
"array",
|
|
"float"
|
|
]
|
|
},
|
|
{
|
|
"allow_nil?": true,
|
|
"default": "nil",
|
|
"generated?": false,
|
|
"primary_key?": false,
|
|
"references": null,
|
|
"size": null,
|
|
"source": "composite_point",
|
|
"type": "custom_point"
|
|
},
|
|
{
|
|
"allow_nil?": true,
|
|
"default": "nil",
|
|
"generated?": false,
|
|
"primary_key?": false,
|
|
"references": null,
|
|
"size": null,
|
|
"source": "stuff",
|
|
"type": "map"
|
|
},
|
|
{
|
|
"allow_nil?": true,
|
|
"default": "nil",
|
|
"generated?": false,
|
|
"primary_key?": false,
|
|
"references": null,
|
|
"size": null,
|
|
"source": "list_of_stuff",
|
|
"type": [
|
|
"array",
|
|
"map"
|
|
]
|
|
},
|
|
{
|
|
"allow_nil?": true,
|
|
"default": "nil",
|
|
"generated?": false,
|
|
"primary_key?": false,
|
|
"references": null,
|
|
"size": null,
|
|
"source": "uniq_one",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"allow_nil?": true,
|
|
"default": "nil",
|
|
"generated?": false,
|
|
"primary_key?": false,
|
|
"references": null,
|
|
"size": null,
|
|
"source": "uniq_two",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"allow_nil?": true,
|
|
"default": "nil",
|
|
"generated?": false,
|
|
"primary_key?": false,
|
|
"references": null,
|
|
"size": null,
|
|
"source": "uniq_custom_one",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"allow_nil?": true,
|
|
"default": "nil",
|
|
"generated?": false,
|
|
"primary_key?": false,
|
|
"references": null,
|
|
"size": null,
|
|
"source": "uniq_custom_two",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"allow_nil?": true,
|
|
"default": "nil",
|
|
"generated?": false,
|
|
"primary_key?": false,
|
|
"references": null,
|
|
"size": null,
|
|
"source": "uniq_on_upper",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"allow_nil?": true,
|
|
"default": "nil",
|
|
"generated?": false,
|
|
"primary_key?": false,
|
|
"references": null,
|
|
"size": null,
|
|
"source": "uniq_if_contains_foo",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"allow_nil?": true,
|
|
"default": "nil",
|
|
"generated?": false,
|
|
"primary_key?": false,
|
|
"references": null,
|
|
"size": null,
|
|
"source": "list_containing_nils",
|
|
"type": [
|
|
"array",
|
|
"text"
|
|
]
|
|
},
|
|
{
|
|
"allow_nil?": false,
|
|
"default": "fragment(\"(now() AT TIME ZONE 'utc')\")",
|
|
"generated?": false,
|
|
"primary_key?": false,
|
|
"references": null,
|
|
"size": null,
|
|
"source": "created_at",
|
|
"type": "utc_datetime_usec"
|
|
},
|
|
{
|
|
"allow_nil?": false,
|
|
"default": "fragment(\"(now() AT TIME ZONE 'utc')\")",
|
|
"generated?": false,
|
|
"primary_key?": false,
|
|
"references": null,
|
|
"size": null,
|
|
"source": "updated_at",
|
|
"type": "timestamptz(6)"
|
|
},
|
|
{
|
|
"allow_nil?": true,
|
|
"default": "nil",
|
|
"generated?": false,
|
|
"primary_key?": false,
|
|
"references": {
|
|
"deferrable": false,
|
|
"destination_attribute": "id",
|
|
"destination_attribute_default": null,
|
|
"destination_attribute_generated": null,
|
|
"index?": false,
|
|
"match_type": null,
|
|
"match_with": null,
|
|
"multitenancy": {
|
|
"attribute": null,
|
|
"global": null,
|
|
"strategy": null
|
|
},
|
|
"name": "posts_organization_id_fkey",
|
|
"on_delete": null,
|
|
"on_update": null,
|
|
"primary_key?": true,
|
|
"schema": "public",
|
|
"table": "orgs"
|
|
},
|
|
"size": null,
|
|
"source": "organization_id",
|
|
"type": "uuid"
|
|
},
|
|
{
|
|
"allow_nil?": true,
|
|
"default": "nil",
|
|
"generated?": false,
|
|
"primary_key?": false,
|
|
"references": {
|
|
"deferrable": false,
|
|
"destination_attribute": "id",
|
|
"destination_attribute_default": null,
|
|
"destination_attribute_generated": null,
|
|
"index?": false,
|
|
"match_type": null,
|
|
"match_with": null,
|
|
"multitenancy": {
|
|
"attribute": null,
|
|
"global": null,
|
|
"strategy": null
|
|
},
|
|
"name": "posts_parent_post_id_fkey",
|
|
"on_delete": null,
|
|
"on_update": null,
|
|
"primary_key?": true,
|
|
"schema": "public",
|
|
"table": "posts"
|
|
},
|
|
"size": null,
|
|
"source": "parent_post_id",
|
|
"type": "uuid"
|
|
},
|
|
{
|
|
"allow_nil?": true,
|
|
"default": "nil",
|
|
"generated?": false,
|
|
"primary_key?": false,
|
|
"references": {
|
|
"deferrable": false,
|
|
"destination_attribute": "id",
|
|
"destination_attribute_default": null,
|
|
"destination_attribute_generated": null,
|
|
"index?": false,
|
|
"match_type": null,
|
|
"match_with": null,
|
|
"multitenancy": {
|
|
"attribute": null,
|
|
"global": null,
|
|
"strategy": null
|
|
},
|
|
"name": "posts_author_id_fkey",
|
|
"on_delete": null,
|
|
"on_update": null,
|
|
"primary_key?": true,
|
|
"schema": "public",
|
|
"table": "authors"
|
|
},
|
|
"size": null,
|
|
"source": "author_id",
|
|
"type": "uuid"
|
|
}
|
|
],
|
|
"base_filter": "type = 'sponsored'",
|
|
"check_constraints": [
|
|
{
|
|
"attribute": [
|
|
"price"
|
|
],
|
|
"base_filter": "type = 'sponsored'",
|
|
"check": "price > 0",
|
|
"name": "price_must_be_positive"
|
|
}
|
|
],
|
|
"custom_indexes": [
|
|
{
|
|
"all_tenants?": false,
|
|
"concurrently": true,
|
|
"error_fields": [
|
|
"uniq_custom_one",
|
|
"uniq_custom_two"
|
|
],
|
|
"fields": [
|
|
{
|
|
"type": "atom",
|
|
"value": "uniq_custom_one"
|
|
},
|
|
{
|
|
"type": "atom",
|
|
"value": "uniq_custom_two"
|
|
}
|
|
],
|
|
"include": null,
|
|
"message": "dude what the heck",
|
|
"name": null,
|
|
"nulls_distinct": true,
|
|
"prefix": null,
|
|
"table": null,
|
|
"unique": true,
|
|
"using": null,
|
|
"where": null
|
|
}
|
|
],
|
|
"custom_statements": [],
|
|
"has_create_action": true,
|
|
"hash": "D85FE48F112749094A13964D840D9B5ECAC765A2BDCBDCC38FB365FC852E87DE",
|
|
"identities": [
|
|
{
|
|
"all_tenants?": false,
|
|
"base_filter": "type = 'sponsored'",
|
|
"index_name": "posts_uniq_if_contains_foo_index",
|
|
"keys": [
|
|
{
|
|
"type": "atom",
|
|
"value": "uniq_if_contains_foo"
|
|
}
|
|
],
|
|
"name": "uniq_if_contains_foo",
|
|
"nils_distinct?": true,
|
|
"where": "(uniq_if_contains_foo LIKE '%foo%')"
|
|
},
|
|
{
|
|
"all_tenants?": false,
|
|
"base_filter": "type = 'sponsored'",
|
|
"index_name": "posts_uniq_on_upper_index",
|
|
"keys": [
|
|
{
|
|
"type": "string",
|
|
"value": "(UPPER(uniq_on_upper))"
|
|
}
|
|
],
|
|
"name": "uniq_on_upper",
|
|
"nils_distinct?": true,
|
|
"where": null
|
|
},
|
|
{
|
|
"all_tenants?": false,
|
|
"base_filter": "type = 'sponsored'",
|
|
"index_name": "posts_uniq_one_and_two_index",
|
|
"keys": [
|
|
{
|
|
"type": "atom",
|
|
"value": "uniq_one"
|
|
},
|
|
{
|
|
"type": "atom",
|
|
"value": "uniq_two"
|
|
}
|
|
],
|
|
"name": "uniq_one_and_two",
|
|
"nils_distinct?": true,
|
|
"where": null
|
|
}
|
|
],
|
|
"multitenancy": {
|
|
"attribute": null,
|
|
"global": null,
|
|
"strategy": null
|
|
},
|
|
"repo": "Elixir.AshPostgres.TestRepo",
|
|
"schema": null,
|
|
"table": "posts"
|
|
}
|