{ "attributes": [ { "default": "fragment(\"gen_random_uuid()\")", "size": null, "type": "uuid", "source": "id", "references": null, "allow_nil?": false, "generated?": false, "primary_key?": true }, { "default": "nil", "size": null, "type": "text", "source": "title_column", "references": null, "allow_nil?": true, "generated?": false, "primary_key?": false }, { "default": "nil", "size": null, "type": "timestamptz(6)", "source": "datetime", "references": null, "allow_nil?": true, "generated?": false, "primary_key?": false }, { "default": "nil", "size": null, "type": "bigint", "source": "score", "references": null, "allow_nil?": true, "generated?": false, "primary_key?": false }, { "default": "nil", "size": null, "type": "boolean", "source": "public", "references": null, "allow_nil?": true, "generated?": false, "primary_key?": false }, { "default": "nil", "size": null, "type": "citext", "source": "category", "references": null, "allow_nil?": true, "generated?": false, "primary_key?": false }, { "default": "\"sponsored\"", "size": null, "type": "text", "source": "type", "references": null, "allow_nil?": true, "generated?": false, "primary_key?": false }, { "default": "nil", "size": null, "type": "bigint", "source": "price", "references": null, "allow_nil?": true, "generated?": false, "primary_key?": false }, { "default": "\"0\"", "size": null, "type": "decimal", "source": "decimal", "references": null, "allow_nil?": true, "generated?": false, "primary_key?": false }, { "default": "nil", "size": null, "type": "text", "source": "status", "references": null, "allow_nil?": true, "generated?": false, "primary_key?": false }, { "default": "nil", "size": null, "type": "status", "source": "status_enum", "references": null, "allow_nil?": true, "generated?": false, "primary_key?": false }, { "default": "nil", "size": null, "type": [ "array", "float" ], "source": "point", "references": null, "allow_nil?": true, "generated?": false, "primary_key?": false }, { "default": "nil", "size": null, "type": "custom_point", "source": "composite_point", "references": null, "allow_nil?": true, "generated?": false, "primary_key?": false }, { "default": "nil", "size": null, "type": "map", "source": "stuff", "references": null, "allow_nil?": true, "generated?": false, "primary_key?": false }, { "default": "nil", "size": null, "type": [ "array", "map" ], "source": "list_of_stuff", "references": null, "allow_nil?": true, "generated?": false, "primary_key?": false }, { "default": "nil", "size": null, "type": "text", "source": "uniq_one", "references": null, "allow_nil?": true, "generated?": false, "primary_key?": false }, { "default": "nil", "size": null, "type": "text", "source": "uniq_two", "references": null, "allow_nil?": true, "generated?": false, "primary_key?": false }, { "default": "nil", "size": null, "type": "text", "source": "uniq_custom_one", "references": null, "allow_nil?": true, "generated?": false, "primary_key?": false }, { "default": "nil", "size": null, "type": "text", "source": "uniq_custom_two", "references": null, "allow_nil?": true, "generated?": false, "primary_key?": false }, { "default": "nil", "size": null, "type": "text", "source": "uniq_on_upper", "references": null, "allow_nil?": true, "generated?": false, "primary_key?": false }, { "default": "nil", "size": null, "type": [ "array", "text" ], "source": "list_containing_nils", "references": null, "allow_nil?": true, "generated?": false, "primary_key?": false }, { "default": "fragment(\"(now() AT TIME ZONE 'utc')\")", "size": null, "type": "utc_datetime_usec", "source": "created_at", "references": null, "allow_nil?": false, "generated?": false, "primary_key?": false }, { "default": "fragment(\"(now() AT TIME ZONE 'utc')\")", "size": null, "type": "timestamptz(6)", "source": "updated_at", "references": null, "allow_nil?": false, "generated?": false, "primary_key?": false }, { "default": "nil", "size": null, "type": "uuid", "source": "organization_id", "references": { "name": "posts_organization_id_fkey", "table": "orgs", "schema": "public", "on_delete": null, "multitenancy": { "global": null, "attribute": null, "strategy": null }, "primary_key?": true, "destination_attribute": "id", "on_update": null, "deferrable": false, "match_type": null, "match_with": null, "destination_attribute_default": null, "destination_attribute_generated": null }, "allow_nil?": true, "generated?": false, "primary_key?": false }, { "default": "nil", "size": null, "type": "uuid", "source": "author_id", "references": { "name": "posts_author_id_fkey", "table": "authors", "schema": "public", "on_delete": null, "multitenancy": { "global": null, "attribute": null, "strategy": null }, "primary_key?": true, "destination_attribute": "id", "on_update": null, "deferrable": false, "match_type": null, "match_with": null, "destination_attribute_default": null, "destination_attribute_generated": null }, "allow_nil?": true, "generated?": false, "primary_key?": false } ], "table": "posts", "hash": "A602EBEA21CE56CC203A0FC8EA66D35D5FD2DA646411088CE343EF793C9D3E9C", "repo": "Elixir.AshPostgres.TestRepo", "identities": [ { "name": "uniq_one_and_two", "keys": [ "uniq_one", "uniq_two" ], "base_filter": "type = 'sponsored'", "all_tenants?": false, "index_name": "posts_uniq_one_and_two_index" }, { "name": "uniq_on_upper", "keys": [ "UPPER(uniq_on_upper)" ], "base_filter": "type = 'sponsored'", "all_tenants?": false, "index_name": "posts_uniq_on_upper_index" } ], "schema": null, "check_constraints": [ { "name": "price_must_be_positive", "check": "price > 0", "attribute": [ "price" ], "base_filter": "type = 'sponsored'" } ], "custom_indexes": [ { "message": "dude what the heck", "name": null, "table": null, "include": null, "fields": [ { "type": "atom", "value": "uniq_custom_one" }, { "type": "atom", "value": "uniq_custom_two" } ], "prefix": null, "where": null, "unique": true, "all_tenants?": false, "concurrently": true, "error_fields": [ "uniq_custom_one", "uniq_custom_two" ], "nulls_distinct": true, "using": null } ], "base_filter": "type = 'sponsored'", "multitenancy": { "global": null, "attribute": null, "strategy": null }, "custom_statements": [], "has_create_action": true }