mirror of
https://github.com/ash-project/ash_postgres.git
synced 2024-09-21 05:53:18 +12:00
214 lines
4.6 KiB
JSON
214 lines
4.6 KiB
JSON
|
{
|
||
|
"attributes": [
|
||
|
{
|
||
|
"allow_nil?": false,
|
||
|
"default": "fragment(\"uuid_generate_v4()\")",
|
||
|
"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",
|
||
|
"type": "text"
|
||
|
},
|
||
|
{
|
||
|
"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": "point",
|
||
|
"type": [
|
||
|
"array",
|
||
|
"float"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"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?": false,
|
||
|
"default": "fragment(\"now()\")",
|
||
|
"generated?": false,
|
||
|
"primary_key?": false,
|
||
|
"references": null,
|
||
|
"size": null,
|
||
|
"source": "created_at",
|
||
|
"type": "utc_datetime_usec"
|
||
|
},
|
||
|
{
|
||
|
"allow_nil?": false,
|
||
|
"default": "fragment(\"now()\")",
|
||
|
"generated?": false,
|
||
|
"primary_key?": false,
|
||
|
"references": null,
|
||
|
"size": null,
|
||
|
"source": "updated_at",
|
||
|
"type": "utc_datetime_usec"
|
||
|
},
|
||
|
{
|
||
|
"allow_nil?": true,
|
||
|
"default": "nil",
|
||
|
"generated?": false,
|
||
|
"primary_key?": false,
|
||
|
"references": {
|
||
|
"destination_field": "id",
|
||
|
"destination_field_default": null,
|
||
|
"destination_field_generated": null,
|
||
|
"multitenancy": {
|
||
|
"attribute": null,
|
||
|
"global": null,
|
||
|
"strategy": null
|
||
|
},
|
||
|
"name": "posts_author_id_fkey",
|
||
|
"on_delete": null,
|
||
|
"on_update": null,
|
||
|
"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": [],
|
||
|
"has_create_action": true,
|
||
|
"hash": "E175879A7555F62087A17F446C232F35DC9124C4D3D515F4C78CA8FDB9A6601A",
|
||
|
"identities": [
|
||
|
{
|
||
|
"base_filter": "type = 'sponsored'",
|
||
|
"index_name": "posts_uniq_one_and_two_index",
|
||
|
"keys": [
|
||
|
"uniq_one",
|
||
|
"uniq_two"
|
||
|
],
|
||
|
"name": "uniq_one_and_two"
|
||
|
}
|
||
|
],
|
||
|
"multitenancy": {
|
||
|
"attribute": null,
|
||
|
"global": null,
|
||
|
"strategy": null
|
||
|
},
|
||
|
"repo": "Elixir.AshPostgres.TestRepo",
|
||
|
"schema": null,
|
||
|
"table": "posts"
|
||
|
}
|