mirror of
https://github.com/ash-project/ash_postgres.git
synced 2024-09-20 13:33:50 +12:00
117 lines
No EOL
2.8 KiB
JSON
117 lines
No EOL
2.8 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": "is_active",
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"allow_nil?": true,
|
|
"default": "nil",
|
|
"generated?": false,
|
|
"primary_key?": false,
|
|
"references": null,
|
|
"size": null,
|
|
"source": "name",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"allow_nil?": true,
|
|
"default": "\"user\"",
|
|
"generated?": false,
|
|
"primary_key?": false,
|
|
"references": null,
|
|
"size": null,
|
|
"source": "role",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"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": "users_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": "id",
|
|
"global": true,
|
|
"strategy": "attribute"
|
|
},
|
|
"name": "users_org_id_fkey",
|
|
"on_delete": null,
|
|
"on_update": null,
|
|
"primary_key?": true,
|
|
"schema": "public",
|
|
"table": "multitenant_orgs"
|
|
},
|
|
"size": null,
|
|
"source": "org_id",
|
|
"type": "uuid"
|
|
}
|
|
],
|
|
"base_filter": null,
|
|
"check_constraints": [],
|
|
"custom_indexes": [],
|
|
"custom_statements": [],
|
|
"has_create_action": true,
|
|
"hash": "80A9C5429DDFAB41DA8448FEC86BEDEEA7CB6A53B69E9A03BD938098A55D6815",
|
|
"identities": [],
|
|
"multitenancy": {
|
|
"attribute": null,
|
|
"global": null,
|
|
"strategy": null
|
|
},
|
|
"repo": "Elixir.AshPostgres.TestRepo",
|
|
"schema": null,
|
|
"table": "users"
|
|
} |