Remove is_system_role from accept lists in create_role and update_role actions. This field should only be set via seeds or internal actions to prevent users from creating unkillable roles through the public API.
172 lines
No EOL
3.9 KiB
JSON
172 lines
No EOL
3.9 KiB
JSON
{
|
|
"attributes": [
|
|
{
|
|
"allow_nil?": false,
|
|
"default": "fragment(\"gen_random_uuid()\")",
|
|
"generated?": false,
|
|
"precision": null,
|
|
"primary_key?": true,
|
|
"references": null,
|
|
"scale": null,
|
|
"size": null,
|
|
"source": "id",
|
|
"type": "uuid"
|
|
},
|
|
{
|
|
"allow_nil?": false,
|
|
"default": "nil",
|
|
"generated?": false,
|
|
"precision": null,
|
|
"primary_key?": false,
|
|
"references": null,
|
|
"scale": null,
|
|
"size": null,
|
|
"source": "email",
|
|
"type": "citext"
|
|
},
|
|
{
|
|
"allow_nil?": true,
|
|
"default": "nil",
|
|
"generated?": false,
|
|
"precision": null,
|
|
"primary_key?": false,
|
|
"references": null,
|
|
"scale": null,
|
|
"size": null,
|
|
"source": "hashed_password",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"allow_nil?": true,
|
|
"default": "nil",
|
|
"generated?": false,
|
|
"precision": null,
|
|
"primary_key?": false,
|
|
"references": null,
|
|
"scale": null,
|
|
"size": null,
|
|
"source": "oidc_id",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"allow_nil?": true,
|
|
"default": "nil",
|
|
"generated?": false,
|
|
"precision": null,
|
|
"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_member_id_fkey",
|
|
"on_delete": "nilify",
|
|
"on_update": null,
|
|
"primary_key?": true,
|
|
"schema": "public",
|
|
"table": "members"
|
|
},
|
|
"scale": null,
|
|
"size": null,
|
|
"source": "member_id",
|
|
"type": "uuid"
|
|
},
|
|
{
|
|
"allow_nil?": true,
|
|
"default": "nil",
|
|
"generated?": false,
|
|
"precision": null,
|
|
"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_role_id_fkey",
|
|
"on_delete": "restrict",
|
|
"on_update": null,
|
|
"primary_key?": true,
|
|
"schema": "public",
|
|
"table": "roles"
|
|
},
|
|
"scale": null,
|
|
"size": null,
|
|
"source": "role_id",
|
|
"type": "uuid"
|
|
}
|
|
],
|
|
"base_filter": null,
|
|
"check_constraints": [],
|
|
"custom_indexes": [],
|
|
"custom_statements": [],
|
|
"has_create_action": true,
|
|
"hash": "E381FA10CFC1D8D4CCD09AC1AD4B0CC9F8931436F22139CCF3A4558E84C422D3",
|
|
"identities": [
|
|
{
|
|
"all_tenants?": false,
|
|
"base_filter": null,
|
|
"index_name": "users_unique_email_index",
|
|
"keys": [
|
|
{
|
|
"type": "atom",
|
|
"value": "email"
|
|
}
|
|
],
|
|
"name": "unique_email",
|
|
"nils_distinct?": true,
|
|
"where": null
|
|
},
|
|
{
|
|
"all_tenants?": false,
|
|
"base_filter": null,
|
|
"index_name": "users_unique_member_index",
|
|
"keys": [
|
|
{
|
|
"type": "atom",
|
|
"value": "member_id"
|
|
}
|
|
],
|
|
"name": "unique_member",
|
|
"nils_distinct?": true,
|
|
"where": null
|
|
},
|
|
{
|
|
"all_tenants?": false,
|
|
"base_filter": null,
|
|
"index_name": "users_unique_oidc_id_index",
|
|
"keys": [
|
|
{
|
|
"type": "atom",
|
|
"value": "oidc_id"
|
|
}
|
|
],
|
|
"name": "unique_oidc_id",
|
|
"nils_distinct?": true,
|
|
"where": null
|
|
}
|
|
],
|
|
"multitenancy": {
|
|
"attribute": null,
|
|
"global": null,
|
|
"strategy": null
|
|
},
|
|
"repo": "Elixir.Mv.Repo",
|
|
"schema": null,
|
|
"table": "users"
|
|
} |