ash_sqlite/priv/resource_snapshots/test_repo/post_links/20240112161252.json

87 lines
2.1 KiB
JSON
Raw Normal View History

{
"attributes": [
{
"default": "nil",
"size": null,
"type": "text",
"source": "state",
"references": null,
"primary_key?": false,
"allow_nil?": true,
"generated?": false
},
{
"default": "nil",
"size": null,
"type": "uuid",
"source": "source_post_id",
"references": {
"name": "post_links_source_post_id_fkey",
"table": "posts",
"primary_key?": true,
"destination_attribute": "id",
"deferrable": false,
"destination_attribute_default": null,
"destination_attribute_generated": null,
"multitenancy": {
"global": null,
"attribute": null,
"strategy": null
},
"on_delete": null,
"on_update": null
},
"primary_key?": true,
"allow_nil?": false,
"generated?": false
},
{
"default": "nil",
"size": null,
"type": "uuid",
"source": "destination_post_id",
"references": {
"name": "post_links_destination_post_id_fkey",
"table": "posts",
"primary_key?": true,
"destination_attribute": "id",
"deferrable": false,
"destination_attribute_default": null,
"destination_attribute_generated": null,
"multitenancy": {
"global": null,
"attribute": null,
"strategy": null
},
"on_delete": null,
"on_update": null
},
"primary_key?": true,
"allow_nil?": false,
"generated?": false
}
],
"table": "post_links",
"hash": "870ACE4A2EB4F54E61458810247D3AC4259B8B5C8EEFA187F7907C58F773B063",
"repo": "Elixir.AshSqlite.TestRepo",
"identities": [
{
"name": "unique_link",
"keys": [
"source_post_id",
"destination_post_id"
],
"base_filter": null,
"index_name": "post_links_unique_link_index"
}
],
"has_create_action": true,
"custom_indexes": [],
"custom_statements": [],
"base_filter": null,
"multitenancy": {
"global": null,
"attribute": null,
"strategy": null
}
}