mirror of
https://github.com/ash-project/ash_postgres.git
synced 2024-09-20 13:33:50 +12:00
125 lines
No EOL
3 KiB
JSON
125 lines
No EOL
3 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": "title",
|
|
"references": null,
|
|
"primary_key?": false,
|
|
"allow_nil?": true,
|
|
"generated?": false
|
|
},
|
|
{
|
|
"default": "nil",
|
|
"size": null,
|
|
"type": "bigint",
|
|
"source": "likes",
|
|
"references": null,
|
|
"primary_key?": false,
|
|
"allow_nil?": true,
|
|
"generated?": false
|
|
},
|
|
{
|
|
"default": "nil",
|
|
"size": null,
|
|
"type": "utc_datetime_usec",
|
|
"source": "arbitrary_timestamp",
|
|
"references": null,
|
|
"primary_key?": false,
|
|
"allow_nil?": true,
|
|
"generated?": false
|
|
},
|
|
{
|
|
"default": "fragment(\"(now() AT TIME ZONE 'utc')\")",
|
|
"size": null,
|
|
"type": "utc_datetime_usec",
|
|
"source": "created_at",
|
|
"references": null,
|
|
"primary_key?": false,
|
|
"allow_nil?": false,
|
|
"generated?": false
|
|
},
|
|
{
|
|
"default": "nil",
|
|
"size": null,
|
|
"type": "uuid",
|
|
"source": "post_id",
|
|
"references": {
|
|
"name": "special_name_fkey",
|
|
"table": "posts",
|
|
"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": "delete",
|
|
"on_update": "update",
|
|
"match_with": null,
|
|
"match_type": null
|
|
},
|
|
"primary_key?": false,
|
|
"allow_nil?": true,
|
|
"generated?": false
|
|
},
|
|
{
|
|
"default": "nil",
|
|
"size": null,
|
|
"type": "uuid",
|
|
"source": "author_id",
|
|
"references": {
|
|
"name": "comments_author_id_fkey",
|
|
"table": "authors",
|
|
"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": "comments",
|
|
"hash": "44CDB628468EA313E2D70189D0F5F6E6318886DB0F20C5CE6E05D925F92D1342",
|
|
"repo": "Elixir.AshPostgres.TestRepo",
|
|
"multitenancy": {
|
|
"global": null,
|
|
"attribute": null,
|
|
"strategy": null
|
|
},
|
|
"schema": null,
|
|
"identities": [],
|
|
"has_create_action": true,
|
|
"custom_indexes": [],
|
|
"custom_statements": [],
|
|
"base_filter": null,
|
|
"check_constraints": []
|
|
} |