mirror of
https://github.com/ash-project/ash_postgres.git
synced 2024-09-21 05:53:18 +12:00
107 lines
No EOL
2.4 KiB
JSON
107 lines
No EOL
2.4 KiB
JSON
{
|
|
"attributes": [
|
|
{
|
|
"default": "fragment(\"gen_random_uuid()\")",
|
|
"size": null,
|
|
"type": "uuid",
|
|
"source": "id",
|
|
"references": null,
|
|
"primary_key?": true,
|
|
"allow_nil?": false,
|
|
"generated?": false
|
|
},
|
|
{
|
|
"default": "nil",
|
|
"size": null,
|
|
"type": "text",
|
|
"source": "name",
|
|
"references": null,
|
|
"primary_key?": false,
|
|
"allow_nil?": true,
|
|
"generated?": false
|
|
},
|
|
{
|
|
"default": "nil",
|
|
"size": null,
|
|
"type": "text",
|
|
"source": "code",
|
|
"references": null,
|
|
"primary_key?": false,
|
|
"allow_nil?": false,
|
|
"generated?": false
|
|
},
|
|
{
|
|
"default": "nil",
|
|
"size": null,
|
|
"type": "text",
|
|
"source": "must_be_present",
|
|
"references": null,
|
|
"primary_key?": false,
|
|
"allow_nil?": false,
|
|
"generated?": false
|
|
},
|
|
{
|
|
"default": "nil",
|
|
"size": null,
|
|
"type": "text",
|
|
"source": "role",
|
|
"references": null,
|
|
"primary_key?": false,
|
|
"allow_nil?": true,
|
|
"generated?": false
|
|
},
|
|
{
|
|
"default": "nil",
|
|
"size": null,
|
|
"type": "uuid",
|
|
"source": "organization_id",
|
|
"references": {
|
|
"name": "managers_organization_id_fkey",
|
|
"table": "orgs",
|
|
"multitenancy": {
|
|
"global": null,
|
|
"attribute": null,
|
|
"strategy": null
|
|
},
|
|
"primary_key?": true,
|
|
"destination_attribute": "id",
|
|
"schema": "public",
|
|
"deferrable": false,
|
|
"destination_attribute_default": null,
|
|
"destination_attribute_generated": null,
|
|
"on_delete": null,
|
|
"on_update": null,
|
|
"match_with": null,
|
|
"match_type": null
|
|
},
|
|
"primary_key?": false,
|
|
"allow_nil?": true,
|
|
"generated?": false
|
|
}
|
|
],
|
|
"table": "managers",
|
|
"hash": "17D7508E7D328026B42E37C76865A1FA6C2BCBCEEF745358769A19A39C71C61F",
|
|
"repo": "Elixir.AshPostgres.TestRepo",
|
|
"multitenancy": {
|
|
"global": null,
|
|
"attribute": null,
|
|
"strategy": null
|
|
},
|
|
"schema": null,
|
|
"identities": [
|
|
{
|
|
"name": "uniq_code",
|
|
"keys": [
|
|
"code"
|
|
],
|
|
"base_filter": null,
|
|
"all_tenants?": false,
|
|
"index_name": "managers_uniq_code_index"
|
|
}
|
|
],
|
|
"has_create_action": true,
|
|
"custom_indexes": [],
|
|
"custom_statements": [],
|
|
"base_filter": null,
|
|
"check_constraints": []
|
|
} |