diff --git a/priv/repo/migrations/20240403005622_install_5_extensions.exs b/priv/repo/migrations/20240403005622_install_5_extensions.exs new file mode 100644 index 0000000..f743de6 --- /dev/null +++ b/priv/repo/migrations/20240403005622_install_5_extensions.exs @@ -0,0 +1,27 @@ +defmodule AshHq.Repo.Migrations.Install5Extensions20240403005620 do + @moduledoc """ + Installs any extensions that are mentioned in the repo's `installed_extensions/0` callback + + This file was autogenerated with `mix ash_postgres.generate_migrations` + """ + + use Ecto.Migration + + def up do + execute("CREATE EXTENSION IF NOT EXISTS \"pg_trgm\"") + execute("CREATE EXTENSION IF NOT EXISTS \"uuid-ossp\"") + execute("CREATE EXTENSION IF NOT EXISTS \"citext\"") + execute("CREATE EXTENSION IF NOT EXISTS \"pg_stat_statements\"") + execute("CREATE EXTENSION IF NOT EXISTS \"sslinfo\"") + end + + def down do + # Uncomment this if you actually want to uninstall the extensions + # when this migration is rolled back: + # execute("DROP EXTENSION IF EXISTS \"pg_trgm\"") + # execute("DROP EXTENSION IF EXISTS \"uuid-ossp\"") + # execute("DROP EXTENSION IF EXISTS \"citext\"") + # execute("DROP EXTENSION IF EXISTS \"pg_stat_statements\"") + # execute("DROP EXTENSION IF EXISTS \"sslinfo\"") + end +end diff --git a/priv/repo/migrations/20240403011723_migrate_resources61.exs b/priv/repo/migrations/20240403011723_migrate_resources61.exs new file mode 100644 index 0000000..1a69838 --- /dev/null +++ b/priv/repo/migrations/20240403011723_migrate_resources61.exs @@ -0,0 +1,250 @@ +defmodule AshHq.Repo.Migrations.MigrateResources61 do + @moduledoc """ + Updates resources based on their most recent snapshots. + + This file was autogenerated with `mix ash_postgres.generate_migrations` + """ + + use Ecto.Migration + + def up do + drop(constraint("user_tokens", "user_tokens_pkey")) + + alter table(:users) do + # Attribute removal has been commented out to avoid data loss. See the migration generator documentation for more + # If you uncomment this, be sure to also uncomment the corresponding attribute *addition* in the `down` migration + # remove :confirmed_at + + modify(:updated_at, :utc_datetime_usec, default: fragment("(now() AT TIME ZONE 'utc')")) + modify(:created_at, :utc_datetime_usec, default: fragment("(now() AT TIME ZONE 'utc')")) + modify(:id, :uuid, default: fragment("gen_random_uuid()")) + end + + alter table(:user_tokens) do + # Attribute removal has been commented out to avoid data loss. See the migration generator documentation for more + # If you uncomment this, be sure to also uncomment the corresponding attribute *addition* in the `down` migration + # remove :jti + + # Attribute removal has been commented out to avoid data loss. See the migration generator documentation for more + # If you uncomment this, be sure to also uncomment the corresponding attribute *addition* in the `down` migration + # remove :subject + + # Attribute removal has been commented out to avoid data loss. See the migration generator documentation for more + # If you uncomment this, be sure to also uncomment the corresponding attribute *addition* in the `down` migration + # remove :expires_at + + # Attribute removal has been commented out to avoid data loss. See the migration generator documentation for more + # If you uncomment this, be sure to also uncomment the corresponding attribute *addition* in the `down` migration + # remove :purpose + + # Attribute removal has been commented out to avoid data loss. See the migration generator documentation for more + # If you uncomment this, be sure to also uncomment the corresponding attribute *addition* in the `down` migration + # remove :extra_data + + # Attribute removal has been commented out to avoid data loss. See the migration generator documentation for more + # If you uncomment this, be sure to also uncomment the corresponding attribute *addition* in the `down` migration + # remove :created_at + + # Attribute removal has been commented out to avoid data loss. See the migration generator documentation for more + # If you uncomment this, be sure to also uncomment the corresponding attribute *addition* in the `down` migration + # remove :updated_at + + add(:id, :uuid, null: false, default: fragment("gen_random_uuid()"), primary_key: true) + end + + alter table(:options) do + modify(:updated_at, :utc_datetime_usec, default: fragment("(now() AT TIME ZONE 'utc')")) + modify(:inserted_at, :utc_datetime_usec, default: fragment("(now() AT TIME ZONE 'utc')")) + modify(:id, :uuid, default: fragment("gen_random_uuid()")) + end + + alter table(:modules) do + modify(:updated_at, :utc_datetime_usec, default: fragment("(now() AT TIME ZONE 'utc')")) + modify(:inserted_at, :utc_datetime_usec, default: fragment("(now() AT TIME ZONE 'utc')")) + modify(:id, :uuid, default: fragment("gen_random_uuid()")) + end + + alter table(:mix_tasks) do + modify(:updated_at, :utc_datetime_usec, default: fragment("(now() AT TIME ZONE 'utc')")) + modify(:inserted_at, :utc_datetime_usec, default: fragment("(now() AT TIME ZONE 'utc')")) + modify(:id, :uuid, default: fragment("gen_random_uuid()")) + end + + alter table(:library_versions) do + modify(:updated_at, :utc_datetime_usec, default: fragment("(now() AT TIME ZONE 'utc')")) + modify(:inserted_at, :utc_datetime_usec, default: fragment("(now() AT TIME ZONE 'utc')")) + modify(:id, :uuid, default: fragment("gen_random_uuid()")) + end + + alter table(:libraries) do + modify(:updated_at, :utc_datetime_usec, default: fragment("(now() AT TIME ZONE 'utc')")) + modify(:inserted_at, :utc_datetime_usec, default: fragment("(now() AT TIME ZONE 'utc')")) + modify(:id, :uuid, default: fragment("gen_random_uuid()")) + end + + alter table(:guides) do + modify(:updated_at, :utc_datetime_usec, default: fragment("(now() AT TIME ZONE 'utc')")) + modify(:inserted_at, :utc_datetime_usec, default: fragment("(now() AT TIME ZONE 'utc')")) + modify(:id, :uuid, default: fragment("gen_random_uuid()")) + end + + alter table(:functions) do + modify(:updated_at, :utc_datetime_usec, default: fragment("(now() AT TIME ZONE 'utc')")) + modify(:inserted_at, :utc_datetime_usec, default: fragment("(now() AT TIME ZONE 'utc')")) + modify(:id, :uuid, default: fragment("gen_random_uuid()")) + end + + alter table(:extensions) do + modify(:updated_at, :utc_datetime_usec, default: fragment("(now() AT TIME ZONE 'utc')")) + modify(:inserted_at, :utc_datetime_usec, default: fragment("(now() AT TIME ZONE 'utc')")) + modify(:id, :uuid, default: fragment("gen_random_uuid()")) + end + + alter table(:emails) do + modify(:updated_at, :utc_datetime_usec, default: fragment("(now() AT TIME ZONE 'utc')")) + modify(:inserted_at, :utc_datetime_usec, default: fragment("(now() AT TIME ZONE 'utc')")) + modify(:id, :uuid, default: fragment("gen_random_uuid()")) + end + + alter table(:dsls) do + modify(:updated_at, :utc_datetime_usec, default: fragment("(now() AT TIME ZONE 'utc')")) + modify(:inserted_at, :utc_datetime_usec, default: fragment("(now() AT TIME ZONE 'utc')")) + modify(:id, :uuid, default: fragment("gen_random_uuid()")) + end + + alter table(:discord_reactions) do + modify(:id, :uuid, default: fragment("gen_random_uuid()")) + end + + # + # + end + + def down do + # Primary key removal is dropped because a corresponding attribute removal + # has been commented out. If you uncomment this, uncomment the attribute removal and vice versa. + # drop constraint("user_tokens", "user_tokens_pkey") + # + alter table(:discord_reactions) do + modify(:id, :uuid, default: fragment("uuid_generate_v4()")) + end + + alter table(:dsls) do + modify(:id, :uuid, default: fragment("uuid_generate_v4()")) + modify(:inserted_at, :utc_datetime_usec, default: fragment("now()")) + modify(:updated_at, :utc_datetime_usec, default: fragment("now()")) + end + + alter table(:emails) do + modify(:id, :uuid, default: fragment("uuid_generate_v4()")) + modify(:inserted_at, :utc_datetime_usec, default: fragment("now()")) + modify(:updated_at, :utc_datetime_usec, default: fragment("now()")) + end + + alter table(:extensions) do + modify(:id, :uuid, default: fragment("uuid_generate_v4()")) + modify(:inserted_at, :utc_datetime_usec, default: fragment("now()")) + modify(:updated_at, :utc_datetime_usec, default: fragment("now()")) + end + + alter table(:functions) do + modify(:id, :uuid, default: fragment("uuid_generate_v4()")) + modify(:inserted_at, :utc_datetime_usec, default: fragment("now()")) + modify(:updated_at, :utc_datetime_usec, default: fragment("now()")) + end + + alter table(:guides) do + modify(:id, :uuid, default: fragment("uuid_generate_v4()")) + modify(:inserted_at, :utc_datetime_usec, default: fragment("now()")) + modify(:updated_at, :utc_datetime_usec, default: fragment("now()")) + end + + alter table(:libraries) do + modify(:id, :uuid, default: fragment("uuid_generate_v4()")) + modify(:inserted_at, :utc_datetime_usec, default: fragment("now()")) + modify(:updated_at, :utc_datetime_usec, default: fragment("now()")) + end + + alter table(:library_versions) do + modify(:id, :uuid, default: fragment("uuid_generate_v4()")) + modify(:inserted_at, :utc_datetime_usec, default: fragment("now()")) + modify(:updated_at, :utc_datetime_usec, default: fragment("now()")) + end + + alter table(:mix_tasks) do + modify(:id, :uuid, default: fragment("uuid_generate_v4()")) + modify(:inserted_at, :utc_datetime_usec, default: fragment("now()")) + modify(:updated_at, :utc_datetime_usec, default: fragment("now()")) + end + + alter table(:modules) do + modify(:id, :uuid, default: fragment("uuid_generate_v4()")) + modify(:inserted_at, :utc_datetime_usec, default: fragment("now()")) + modify(:updated_at, :utc_datetime_usec, default: fragment("now()")) + end + + alter table(:options) do + modify(:id, :uuid, default: fragment("uuid_generate_v4()")) + modify(:inserted_at, :utc_datetime_usec, default: fragment("now()")) + modify(:updated_at, :utc_datetime_usec, default: fragment("now()")) + end + + alter table(:user_tokens) do + remove(:id) + # This is the `down` migration of the statement: + # + # remove :updated_at + # + + # add :updated_at, :utc_datetime_usec, null: false, default: fragment("now()") + # This is the `down` migration of the statement: + # + # remove :created_at + # + + # add :created_at, :utc_datetime_usec, null: false, default: fragment("now()") + # This is the `down` migration of the statement: + # + # remove :extra_data + # + + # add :extra_data, :map + # This is the `down` migration of the statement: + # + # remove :purpose + # + + # add :purpose, :text, null: false + # This is the `down` migration of the statement: + # + # remove :expires_at + # + + # add :expires_at, :utc_datetime, null: false + # This is the `down` migration of the statement: + # + # remove :subject + # + + # add :subject, :text, null: false + # This is the `down` migration of the statement: + # + # remove :jti + # + + # add :jti, :text, null: false, primary_key: true + end + + alter table(:users) do + modify(:id, :uuid, default: fragment("uuid_generate_v4()")) + modify(:created_at, :utc_datetime_usec, default: fragment("now()")) + modify(:updated_at, :utc_datetime_usec, default: fragment("now()")) + # This is the `down` migration of the statement: + # + # remove :confirmed_at + # + + # add :confirmed_at, :utc_datetime_usec + end + end +end diff --git a/priv/resource_snapshots/repo/discord_reactions/20240403011723.json b/priv/resource_snapshots/repo/discord_reactions/20240403011723.json new file mode 100644 index 0000000..fe2caab --- /dev/null +++ b/priv/resource_snapshots/repo/discord_reactions/20240403011723.json @@ -0,0 +1,88 @@ +{ + "attributes": [ + { + "default": "fragment(\"gen_random_uuid()\")", + "size": null, + "type": "uuid", + "source": "id", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": true + }, + { + "default": "nil", + "size": null, + "type": "bigint", + "source": "count", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "nil", + "size": null, + "type": "text", + "source": "emoji", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "nil", + "size": null, + "type": "bigint", + "source": "message_id", + "references": { + "name": "discord_reactions_message_id_fkey", + "table": "discord_messages", + "schema": "public", + "on_delete": "delete", + "multitenancy": { + "global": null, + "attribute": null, + "strategy": null + }, + "primary_key?": true, + "destination_attribute": "id", + "deferrable": false, + "match_type": null, + "match_with": null, + "on_update": "update", + "destination_attribute_default": null, + "destination_attribute_generated": null + }, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + } + ], + "table": "discord_reactions", + "hash": "7473ECFC71B86E3F780E42DBA157867B900E78DB1DA04FD50A43CDD9CC45D90F", + "repo": "Elixir.AshHq.Repo", + "identities": [ + { + "name": "unique_message_emoji", + "keys": [ + "emoji", + "message_id" + ], + "all_tenants?": false, + "index_name": "discord_reactions_unique_message_emoji_index", + "base_filter": null + } + ], + "schema": null, + "multitenancy": { + "global": null, + "attribute": null, + "strategy": null + }, + "base_filter": null, + "check_constraints": [], + "custom_indexes": [], + "custom_statements": [], + "has_create_action": true +} \ No newline at end of file diff --git a/priv/resource_snapshots/repo/dsls/20240403011723.json b/priv/resource_snapshots/repo/dsls/20240403011723.json new file mode 100644 index 0000000..eb27a55 --- /dev/null +++ b/priv/resource_snapshots/repo/dsls/20240403011723.json @@ -0,0 +1,288 @@ +{ + "attributes": [ + { + "default": "nil", + "size": null, + "type": "text", + "source": "sanitized_path", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "fragment(\"gen_random_uuid()\")", + "size": null, + "type": "uuid", + "source": "id", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": true + }, + { + "default": "nil", + "size": null, + "type": "text", + "source": "name", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "nil", + "size": null, + "type": "text", + "source": "requires_extension", + "references": null, + "allow_nil?": true, + "generated?": false, + "primary_key?": false + }, + { + "default": "\"\"", + "size": null, + "type": "text", + "source": "doc", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "nil", + "size": null, + "type": "text", + "source": "doc_html", + "references": null, + "allow_nil?": true, + "generated?": false, + "primary_key?": false + }, + { + "default": "[]", + "size": null, + "type": [ + "array", + "text" + ], + "source": "imports", + "references": null, + "allow_nil?": true, + "generated?": false, + "primary_key?": false + }, + { + "default": "nil", + "size": null, + "type": [ + "array", + "text" + ], + "source": "examples", + "references": null, + "allow_nil?": true, + "generated?": false, + "primary_key?": false + }, + { + "default": "nil", + "size": null, + "type": [ + "array", + "text" + ], + "source": "args", + "references": null, + "allow_nil?": true, + "generated?": false, + "primary_key?": false + }, + { + "default": "[]", + "size": null, + "type": [ + "array", + "text" + ], + "source": "optional_args", + "references": null, + "allow_nil?": true, + "generated?": false, + "primary_key?": false + }, + { + "default": "nil", + "size": null, + "type": "map", + "source": "arg_defaults", + "references": null, + "allow_nil?": true, + "generated?": false, + "primary_key?": false + }, + { + "default": "nil", + "size": null, + "type": [ + "array", + "text" + ], + "source": "path", + "references": null, + "allow_nil?": true, + "generated?": false, + "primary_key?": false + }, + { + "default": "nil", + "size": null, + "type": "text", + "source": "recursive_as", + "references": null, + "allow_nil?": true, + "generated?": false, + "primary_key?": false + }, + { + "default": "nil", + "size": null, + "type": "bigint", + "source": "order", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "nil", + "size": null, + "type": "text", + "source": "type", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "fragment(\"(now() AT TIME ZONE 'utc')\")", + "size": null, + "type": "utc_datetime_usec", + "source": "inserted_at", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "fragment(\"(now() AT TIME ZONE 'utc')\")", + "size": null, + "type": "utc_datetime_usec", + "source": "updated_at", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "nil", + "size": null, + "type": "uuid", + "source": "library_version_id", + "references": { + "name": "dsls_library_version_id_fkey", + "table": "library_versions", + "schema": "public", + "on_delete": "delete", + "multitenancy": { + "global": null, + "attribute": null, + "strategy": null + }, + "primary_key?": true, + "destination_attribute": "id", + "deferrable": false, + "match_type": null, + "match_with": null, + "on_update": null, + "destination_attribute_default": null, + "destination_attribute_generated": null + }, + "allow_nil?": true, + "generated?": false, + "primary_key?": false + }, + { + "default": "nil", + "size": null, + "type": "uuid", + "source": "extension_id", + "references": { + "name": "dsls_extension_id_fkey", + "table": "extensions", + "schema": "public", + "on_delete": null, + "multitenancy": { + "global": null, + "attribute": null, + "strategy": null + }, + "primary_key?": true, + "destination_attribute": "id", + "deferrable": false, + "match_type": null, + "match_with": null, + "on_update": null, + "destination_attribute_default": null, + "destination_attribute_generated": null + }, + "allow_nil?": true, + "generated?": false, + "primary_key?": false + }, + { + "default": "nil", + "size": null, + "type": "uuid", + "source": "dsl_id", + "references": { + "name": "dsls_dsl_id_fkey", + "table": "dsls", + "schema": "public", + "on_delete": "delete", + "multitenancy": { + "global": null, + "attribute": null, + "strategy": null + }, + "primary_key?": true, + "destination_attribute": "id", + "deferrable": false, + "match_type": null, + "match_with": null, + "on_update": null, + "destination_attribute_default": null, + "destination_attribute_generated": null + }, + "allow_nil?": true, + "generated?": false, + "primary_key?": false + } + ], + "table": "dsls", + "hash": "D936ADA5725229E90D3BEA37E9F52F44D5AD64F33E93EC77A5EE6F70E82E9FBC", + "repo": "Elixir.AshHq.Repo", + "identities": [], + "schema": null, + "multitenancy": { + "global": null, + "attribute": null, + "strategy": null + }, + "base_filter": null, + "check_constraints": [], + "custom_indexes": [], + "custom_statements": [], + "has_create_action": true +} \ No newline at end of file diff --git a/priv/resource_snapshots/repo/emails/20240403011723.json b/priv/resource_snapshots/repo/emails/20240403011723.json new file mode 100644 index 0000000..3a5682d --- /dev/null +++ b/priv/resource_snapshots/repo/emails/20240403011723.json @@ -0,0 +1,69 @@ +{ + "attributes": [ + { + "default": "fragment(\"gen_random_uuid()\")", + "size": null, + "type": "uuid", + "source": "id", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": true + }, + { + "default": "nil", + "size": null, + "type": "citext", + "source": "email", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "fragment(\"(now() AT TIME ZONE 'utc')\")", + "size": null, + "type": "utc_datetime_usec", + "source": "inserted_at", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "fragment(\"(now() AT TIME ZONE 'utc')\")", + "size": null, + "type": "utc_datetime_usec", + "source": "updated_at", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + } + ], + "table": "emails", + "hash": "13258681C64979F9D7FCC00D00E913D889474FE420DAC500DC1A2E51663CE4FC", + "repo": "Elixir.AshHq.Repo", + "identities": [ + { + "name": "unique_email", + "keys": [ + "email" + ], + "all_tenants?": false, + "index_name": "emails_unique_email_index", + "base_filter": null + } + ], + "schema": null, + "multitenancy": { + "global": null, + "attribute": null, + "strategy": null + }, + "base_filter": null, + "check_constraints": [], + "custom_indexes": [], + "custom_statements": [], + "has_create_action": true +} \ No newline at end of file diff --git a/priv/resource_snapshots/repo/extensions/20240403011723.json b/priv/resource_snapshots/repo/extensions/20240403011723.json new file mode 100644 index 0000000..67d6767 --- /dev/null +++ b/priv/resource_snapshots/repo/extensions/20240403011723.json @@ -0,0 +1,87 @@ +{ + "attributes": [ + { + "default": "fragment(\"gen_random_uuid()\")", + "size": null, + "type": "uuid", + "source": "id", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": true + }, + { + "default": "nil", + "size": null, + "type": "text", + "source": "module", + "references": null, + "allow_nil?": true, + "generated?": false, + "primary_key?": false + }, + { + "default": "fragment(\"(now() AT TIME ZONE 'utc')\")", + "size": null, + "type": "utc_datetime_usec", + "source": "inserted_at", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "fragment(\"(now() AT TIME ZONE 'utc')\")", + "size": null, + "type": "utc_datetime_usec", + "source": "updated_at", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "nil", + "size": null, + "type": "uuid", + "source": "library_version_id", + "references": { + "name": "extensions_library_version_id_fkey", + "table": "library_versions", + "schema": "public", + "on_delete": "delete", + "multitenancy": { + "global": null, + "attribute": null, + "strategy": null + }, + "primary_key?": true, + "destination_attribute": "id", + "deferrable": false, + "match_type": null, + "match_with": null, + "on_update": null, + "destination_attribute_default": null, + "destination_attribute_generated": null + }, + "allow_nil?": true, + "generated?": false, + "primary_key?": false + } + ], + "table": "extensions", + "hash": "BCEF9BC9CC96A075FE34CC1FB1738ED6B4FCCA68868290C7EC42F50AFB78B311", + "repo": "Elixir.AshHq.Repo", + "identities": [], + "schema": null, + "multitenancy": { + "global": null, + "attribute": null, + "strategy": null + }, + "base_filter": null, + "check_constraints": [], + "custom_indexes": [], + "custom_statements": [], + "has_create_action": true +} \ No newline at end of file diff --git a/priv/resource_snapshots/extensions.json b/priv/resource_snapshots/repo/extensions/initial.json similarity index 100% rename from priv/resource_snapshots/extensions.json rename to priv/resource_snapshots/repo/extensions/initial.json diff --git a/priv/resource_snapshots/repo/functions/20240403011723.json b/priv/resource_snapshots/repo/functions/20240403011723.json new file mode 100644 index 0000000..e2a2f0b --- /dev/null +++ b/priv/resource_snapshots/repo/functions/20240403011723.json @@ -0,0 +1,231 @@ +{ + "attributes": [ + { + "default": "nil", + "size": null, + "type": "text", + "source": "sanitized_name", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "fragment(\"gen_random_uuid()\")", + "size": null, + "type": "uuid", + "source": "id", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": true + }, + { + "default": "nil", + "size": null, + "type": "text", + "source": "name", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "nil", + "size": null, + "type": "text", + "source": "file", + "references": null, + "allow_nil?": true, + "generated?": false, + "primary_key?": false + }, + { + "default": "nil", + "size": null, + "type": "bigint", + "source": "line", + "references": null, + "allow_nil?": true, + "generated?": false, + "primary_key?": false + }, + { + "default": "nil", + "size": null, + "type": "bigint", + "source": "arity", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "nil", + "size": null, + "type": "text", + "source": "type", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "[]", + "size": null, + "type": [ + "array", + "text" + ], + "source": "heads", + "references": null, + "allow_nil?": true, + "generated?": false, + "primary_key?": false + }, + { + "default": "[]", + "size": null, + "type": [ + "array", + "text" + ], + "source": "heads_html", + "references": null, + "allow_nil?": true, + "generated?": false, + "primary_key?": false + }, + { + "default": "\"\"", + "size": null, + "type": "text", + "source": "doc", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "nil", + "size": null, + "type": "text", + "source": "doc_html", + "references": null, + "allow_nil?": true, + "generated?": false, + "primary_key?": false + }, + { + "default": "nil", + "size": null, + "type": "bigint", + "source": "order", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "nil", + "size": null, + "type": "text", + "source": "deprecated", + "references": null, + "allow_nil?": true, + "generated?": false, + "primary_key?": false + }, + { + "default": "fragment(\"(now() AT TIME ZONE 'utc')\")", + "size": null, + "type": "utc_datetime_usec", + "source": "inserted_at", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "fragment(\"(now() AT TIME ZONE 'utc')\")", + "size": null, + "type": "utc_datetime_usec", + "source": "updated_at", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "nil", + "size": null, + "type": "uuid", + "source": "library_version_id", + "references": { + "name": "functions_library_version_id_fkey", + "table": "library_versions", + "schema": "public", + "on_delete": "delete", + "multitenancy": { + "global": null, + "attribute": null, + "strategy": null + }, + "primary_key?": true, + "destination_attribute": "id", + "deferrable": false, + "match_type": null, + "match_with": null, + "on_update": null, + "destination_attribute_default": null, + "destination_attribute_generated": null + }, + "allow_nil?": true, + "generated?": false, + "primary_key?": false + }, + { + "default": "nil", + "size": null, + "type": "uuid", + "source": "module_id", + "references": { + "name": "functions_module_id_fkey", + "table": "modules", + "schema": "public", + "on_delete": null, + "multitenancy": { + "global": null, + "attribute": null, + "strategy": null + }, + "primary_key?": true, + "destination_attribute": "id", + "deferrable": false, + "match_type": null, + "match_with": null, + "on_update": null, + "destination_attribute_default": null, + "destination_attribute_generated": null + }, + "allow_nil?": true, + "generated?": false, + "primary_key?": false + } + ], + "table": "functions", + "hash": "222EC189E024CABF077A793BF7E6775E303446DD3E93CA32B262318A0933A5F1", + "repo": "Elixir.AshHq.Repo", + "identities": [], + "schema": null, + "multitenancy": { + "global": null, + "attribute": null, + "strategy": null + }, + "base_filter": null, + "check_constraints": [], + "custom_indexes": [], + "custom_statements": [], + "has_create_action": true +} \ No newline at end of file diff --git a/priv/resource_snapshots/repo/guides/20240403011723.json b/priv/resource_snapshots/repo/guides/20240403011723.json new file mode 100644 index 0000000..4b9593f --- /dev/null +++ b/priv/resource_snapshots/repo/guides/20240403011723.json @@ -0,0 +1,167 @@ +{ + "attributes": [ + { + "default": "nil", + "size": null, + "type": "text", + "source": "sanitized_name", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "fragment(\"gen_random_uuid()\")", + "size": null, + "type": "uuid", + "source": "id", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": true + }, + { + "default": "nil", + "size": null, + "type": "bigint", + "source": "order", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "nil", + "size": null, + "type": "text", + "source": "name", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "\"\"", + "size": null, + "type": "text", + "source": "text", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "nil", + "size": null, + "type": "text", + "source": "text_html", + "references": null, + "allow_nil?": true, + "generated?": false, + "primary_key?": false + }, + { + "default": "\"Topics\"", + "size": null, + "type": "text", + "source": "category", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "nil", + "size": null, + "type": "text", + "source": "route", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "nil", + "size": null, + "type": "text", + "source": "sanitized_route", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "false", + "size": null, + "type": "boolean", + "source": "default", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "fragment(\"(now() AT TIME ZONE 'utc')\")", + "size": null, + "type": "utc_datetime_usec", + "source": "inserted_at", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "fragment(\"(now() AT TIME ZONE 'utc')\")", + "size": null, + "type": "utc_datetime_usec", + "source": "updated_at", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "nil", + "size": null, + "type": "uuid", + "source": "library_version_id", + "references": { + "name": "guides_library_version_id_fkey", + "table": "library_versions", + "schema": "public", + "on_delete": "delete", + "multitenancy": { + "global": null, + "attribute": null, + "strategy": null + }, + "primary_key?": true, + "destination_attribute": "id", + "deferrable": false, + "match_type": null, + "match_with": null, + "on_update": null, + "destination_attribute_default": null, + "destination_attribute_generated": null + }, + "allow_nil?": true, + "generated?": false, + "primary_key?": false + } + ], + "table": "guides", + "hash": "3CCB6547DDB3F147C1072DDF5F413B56BEBA46F092FBB50AF1B4F4AEDE81C525", + "repo": "Elixir.AshHq.Repo", + "identities": [], + "schema": null, + "multitenancy": { + "global": null, + "attribute": null, + "strategy": null + }, + "base_filter": null, + "check_constraints": [], + "custom_indexes": [], + "custom_statements": [], + "has_create_action": true +} \ No newline at end of file diff --git a/priv/resource_snapshots/repo/libraries/20240403011723.json b/priv/resource_snapshots/repo/libraries/20240403011723.json new file mode 100644 index 0000000..a51a8b9 --- /dev/null +++ b/priv/resource_snapshots/repo/libraries/20240403011723.json @@ -0,0 +1,154 @@ +{ + "attributes": [ + { + "default": "fragment(\"gen_random_uuid()\")", + "size": null, + "type": "uuid", + "source": "id", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": true + }, + { + "default": "nil", + "size": null, + "type": "text", + "source": "name", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "nil", + "size": null, + "type": "text", + "source": "display_name", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "nil", + "size": null, + "type": "bigint", + "source": "order", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "nil", + "size": null, + "type": "text", + "source": "description", + "references": null, + "allow_nil?": true, + "generated?": false, + "primary_key?": false + }, + { + "default": "\"ash-project\"", + "size": null, + "type": "text", + "source": "repo_org", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "[]", + "size": null, + "type": [ + "array", + "text" + ], + "source": "module_prefixes", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "nil", + "size": null, + "type": "text", + "source": "mix_project", + "references": null, + "allow_nil?": true, + "generated?": false, + "primary_key?": false + }, + { + "default": "[]", + "size": null, + "type": [ + "array", + "text" + ], + "source": "skip_versions", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "fragment(\"(now() AT TIME ZONE 'utc')\")", + "size": null, + "type": "utc_datetime_usec", + "source": "inserted_at", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "fragment(\"(now() AT TIME ZONE 'utc')\")", + "size": null, + "type": "utc_datetime_usec", + "source": "updated_at", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + } + ], + "table": "libraries", + "hash": "F71210603E2099D8AD991F65DB161273E33075FB5D3932F45323ADB7E68D41C3", + "repo": "Elixir.AshHq.Repo", + "identities": [ + { + "name": "unique_name", + "keys": [ + "name" + ], + "all_tenants?": false, + "index_name": "libraries_unique_name_index", + "base_filter": null + }, + { + "name": "unique_order", + "keys": [ + "order" + ], + "all_tenants?": false, + "index_name": "libraries_unique_order_index", + "base_filter": null + } + ], + "schema": null, + "multitenancy": { + "global": null, + "attribute": null, + "strategy": null + }, + "base_filter": null, + "check_constraints": [], + "custom_indexes": [], + "custom_statements": [], + "has_create_action": true +} \ No newline at end of file diff --git a/priv/resource_snapshots/repo/library_versions/20240403011723.json b/priv/resource_snapshots/repo/library_versions/20240403011723.json new file mode 100644 index 0000000..e0d4ec7 --- /dev/null +++ b/priv/resource_snapshots/repo/library_versions/20240403011723.json @@ -0,0 +1,118 @@ +{ + "attributes": [ + { + "default": "nil", + "size": null, + "type": "text", + "source": "sanitized_version", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "fragment(\"gen_random_uuid()\")", + "size": null, + "type": "uuid", + "source": "id", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": true + }, + { + "default": "nil", + "size": null, + "type": "text", + "source": "version", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "false", + "size": null, + "type": "boolean", + "source": "hydrated", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "fragment(\"(now() AT TIME ZONE 'utc')\")", + "size": null, + "type": "utc_datetime_usec", + "source": "inserted_at", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "fragment(\"(now() AT TIME ZONE 'utc')\")", + "size": null, + "type": "utc_datetime_usec", + "source": "updated_at", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "nil", + "size": null, + "type": "uuid", + "source": "library_id", + "references": { + "name": "library_versions_library_id_fkey", + "table": "libraries", + "schema": "public", + "on_delete": null, + "multitenancy": { + "global": null, + "attribute": null, + "strategy": null + }, + "primary_key?": true, + "destination_attribute": "id", + "deferrable": false, + "match_type": null, + "match_with": null, + "on_update": null, + "destination_attribute_default": null, + "destination_attribute_generated": null + }, + "allow_nil?": true, + "generated?": false, + "primary_key?": false + } + ], + "table": "library_versions", + "hash": "2F00A1BC44229F68244C7D8CFEAD0318C476F7BA6C6132A7A0B438377CA887F0", + "repo": "Elixir.AshHq.Repo", + "identities": [ + { + "name": "unique_version_for_library", + "keys": [ + "version", + "library_id" + ], + "all_tenants?": false, + "index_name": "library_versions_unique_version_for_library_index", + "base_filter": null + } + ], + "schema": null, + "multitenancy": { + "global": null, + "attribute": null, + "strategy": null + }, + "base_filter": null, + "check_constraints": [], + "custom_indexes": [], + "custom_statements": [], + "has_create_action": true +} \ No newline at end of file diff --git a/priv/resource_snapshots/repo/mix_tasks/20240403011723.json b/priv/resource_snapshots/repo/mix_tasks/20240403011723.json new file mode 100644 index 0000000..919f265 --- /dev/null +++ b/priv/resource_snapshots/repo/mix_tasks/20240403011723.json @@ -0,0 +1,157 @@ +{ + "attributes": [ + { + "default": "nil", + "size": null, + "type": "text", + "source": "sanitized_name", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "fragment(\"gen_random_uuid()\")", + "size": null, + "type": "uuid", + "source": "id", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": true + }, + { + "default": "nil", + "size": null, + "type": "text", + "source": "name", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "\"Misc\"", + "size": null, + "type": "text", + "source": "category", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "nil", + "size": null, + "type": "text", + "source": "file", + "references": null, + "allow_nil?": true, + "generated?": false, + "primary_key?": false + }, + { + "default": "nil", + "size": null, + "type": "text", + "source": "module_name", + "references": null, + "allow_nil?": true, + "generated?": false, + "primary_key?": false + }, + { + "default": "\"\"", + "size": null, + "type": "text", + "source": "doc", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "nil", + "size": null, + "type": "text", + "source": "doc_html", + "references": null, + "allow_nil?": true, + "generated?": false, + "primary_key?": false + }, + { + "default": "nil", + "size": null, + "type": "bigint", + "source": "order", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "fragment(\"(now() AT TIME ZONE 'utc')\")", + "size": null, + "type": "utc_datetime_usec", + "source": "inserted_at", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "fragment(\"(now() AT TIME ZONE 'utc')\")", + "size": null, + "type": "utc_datetime_usec", + "source": "updated_at", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "nil", + "size": null, + "type": "uuid", + "source": "library_version_id", + "references": { + "name": "mix_tasks_library_version_id_fkey", + "table": "library_versions", + "schema": "public", + "on_delete": "delete", + "multitenancy": { + "global": null, + "attribute": null, + "strategy": null + }, + "primary_key?": true, + "destination_attribute": "id", + "deferrable": false, + "match_type": null, + "match_with": null, + "on_update": null, + "destination_attribute_default": null, + "destination_attribute_generated": null + }, + "allow_nil?": true, + "generated?": false, + "primary_key?": false + } + ], + "table": "mix_tasks", + "hash": "4D57A39062E7DD18576F4B6FF211FB3FAE4323EF4215B9C3371A974FFFA3673C", + "repo": "Elixir.AshHq.Repo", + "identities": [], + "schema": null, + "multitenancy": { + "global": null, + "attribute": null, + "strategy": null + }, + "base_filter": null, + "check_constraints": [], + "custom_indexes": [], + "custom_statements": [], + "has_create_action": true +} \ No newline at end of file diff --git a/priv/resource_snapshots/repo/modules/20240403011723.json b/priv/resource_snapshots/repo/modules/20240403011723.json new file mode 100644 index 0000000..4fc9279 --- /dev/null +++ b/priv/resource_snapshots/repo/modules/20240403011723.json @@ -0,0 +1,147 @@ +{ + "attributes": [ + { + "default": "nil", + "size": null, + "type": "text", + "source": "sanitized_name", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "fragment(\"gen_random_uuid()\")", + "size": null, + "type": "uuid", + "source": "id", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": true + }, + { + "default": "nil", + "size": null, + "type": "text", + "source": "name", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "\"Misc\"", + "size": null, + "type": "text", + "source": "category", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "nil", + "size": null, + "type": "text", + "source": "file", + "references": null, + "allow_nil?": true, + "generated?": false, + "primary_key?": false + }, + { + "default": "\"\"", + "size": null, + "type": "text", + "source": "doc", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "nil", + "size": null, + "type": "text", + "source": "doc_html", + "references": null, + "allow_nil?": true, + "generated?": false, + "primary_key?": false + }, + { + "default": "nil", + "size": null, + "type": "bigint", + "source": "order", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "fragment(\"(now() AT TIME ZONE 'utc')\")", + "size": null, + "type": "utc_datetime_usec", + "source": "inserted_at", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "fragment(\"(now() AT TIME ZONE 'utc')\")", + "size": null, + "type": "utc_datetime_usec", + "source": "updated_at", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "nil", + "size": null, + "type": "uuid", + "source": "library_version_id", + "references": { + "name": "modules_library_version_id_fkey", + "table": "library_versions", + "schema": "public", + "on_delete": "delete", + "multitenancy": { + "global": null, + "attribute": null, + "strategy": null + }, + "primary_key?": true, + "destination_attribute": "id", + "deferrable": false, + "match_type": null, + "match_with": null, + "on_update": null, + "destination_attribute_default": null, + "destination_attribute_generated": null + }, + "allow_nil?": true, + "generated?": false, + "primary_key?": false + } + ], + "table": "modules", + "hash": "BB8E49525515721AE35EFB19D0C74DAB27C4E61B87BA0F912631F94BAE3511FE", + "repo": "Elixir.AshHq.Repo", + "identities": [], + "schema": null, + "multitenancy": { + "global": null, + "attribute": null, + "strategy": null + }, + "base_filter": null, + "check_constraints": [], + "custom_indexes": [], + "custom_statements": [], + "has_create_action": true +} \ No newline at end of file diff --git a/priv/resource_snapshots/repo/options/20240403011723.json b/priv/resource_snapshots/repo/options/20240403011723.json new file mode 100644 index 0000000..edca2d5 --- /dev/null +++ b/priv/resource_snapshots/repo/options/20240403011723.json @@ -0,0 +1,246 @@ +{ + "attributes": [ + { + "default": "nil", + "size": null, + "type": "text", + "source": "sanitized_path", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "fragment(\"gen_random_uuid()\")", + "size": null, + "type": "uuid", + "source": "id", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": true + }, + { + "default": "nil", + "size": null, + "type": "text", + "source": "name", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "nil", + "size": null, + "type": "text", + "source": "type", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "\"\"", + "size": null, + "type": "text", + "source": "doc", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "nil", + "size": null, + "type": "text", + "source": "doc_html", + "references": null, + "allow_nil?": true, + "generated?": false, + "primary_key?": false + }, + { + "default": "false", + "size": null, + "type": "boolean", + "source": "required", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "nil", + "size": null, + "type": "bigint", + "source": "argument_index", + "references": null, + "allow_nil?": true, + "generated?": false, + "primary_key?": false + }, + { + "default": "%{}", + "size": null, + "type": "map", + "source": "links", + "references": null, + "allow_nil?": true, + "generated?": false, + "primary_key?": false + }, + { + "default": "nil", + "size": null, + "type": "text", + "source": "default", + "references": null, + "allow_nil?": true, + "generated?": false, + "primary_key?": false + }, + { + "default": "nil", + "size": null, + "type": [ + "array", + "text" + ], + "source": "path", + "references": null, + "allow_nil?": true, + "generated?": false, + "primary_key?": false + }, + { + "default": "nil", + "size": null, + "type": "bigint", + "source": "order", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "fragment(\"(now() AT TIME ZONE 'utc')\")", + "size": null, + "type": "utc_datetime_usec", + "source": "inserted_at", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "fragment(\"(now() AT TIME ZONE 'utc')\")", + "size": null, + "type": "utc_datetime_usec", + "source": "updated_at", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "nil", + "size": null, + "type": "uuid", + "source": "dsl_id", + "references": { + "name": "options_dsl_id_fkey", + "table": "dsls", + "schema": "public", + "on_delete": "delete", + "multitenancy": { + "global": null, + "attribute": null, + "strategy": null + }, + "primary_key?": true, + "destination_attribute": "id", + "deferrable": false, + "match_type": null, + "match_with": null, + "on_update": null, + "destination_attribute_default": null, + "destination_attribute_generated": null + }, + "allow_nil?": true, + "generated?": false, + "primary_key?": false + }, + { + "default": "nil", + "size": null, + "type": "uuid", + "source": "library_version_id", + "references": { + "name": "options_library_version_id_fkey", + "table": "library_versions", + "schema": "public", + "on_delete": "delete", + "multitenancy": { + "global": null, + "attribute": null, + "strategy": null + }, + "primary_key?": true, + "destination_attribute": "id", + "deferrable": false, + "match_type": null, + "match_with": null, + "on_update": null, + "destination_attribute_default": null, + "destination_attribute_generated": null + }, + "allow_nil?": true, + "generated?": false, + "primary_key?": false + }, + { + "default": "nil", + "size": null, + "type": "uuid", + "source": "extension_id", + "references": { + "name": "options_extension_id_fkey", + "table": "extensions", + "schema": "public", + "on_delete": null, + "multitenancy": { + "global": null, + "attribute": null, + "strategy": null + }, + "primary_key?": true, + "destination_attribute": "id", + "deferrable": false, + "match_type": null, + "match_with": null, + "on_update": null, + "destination_attribute_default": null, + "destination_attribute_generated": null + }, + "allow_nil?": true, + "generated?": false, + "primary_key?": false + } + ], + "table": "options", + "hash": "E07055B0387CB3FAD1C4DB3D797D628E8FC431E94A1DD6544034B6D43047F437", + "repo": "Elixir.AshHq.Repo", + "identities": [], + "schema": null, + "multitenancy": { + "global": null, + "attribute": null, + "strategy": null + }, + "base_filter": null, + "check_constraints": [], + "custom_indexes": [], + "custom_statements": [], + "has_create_action": true +} \ No newline at end of file diff --git a/priv/resource_snapshots/repo/user_tokens/20240403011723.json b/priv/resource_snapshots/repo/user_tokens/20240403011723.json new file mode 100644 index 0000000..676a0f3 --- /dev/null +++ b/priv/resource_snapshots/repo/user_tokens/20240403011723.json @@ -0,0 +1,57 @@ +{ + "attributes": [ + { + "default": "fragment(\"gen_random_uuid()\")", + "size": null, + "type": "uuid", + "source": "id", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": true + }, + { + "default": "nil", + "size": null, + "type": "uuid", + "source": "user_id", + "references": { + "name": "user_tokens_user_id_fkey", + "table": "users", + "schema": "public", + "on_delete": "delete", + "multitenancy": { + "global": null, + "attribute": null, + "strategy": null + }, + "primary_key?": true, + "destination_attribute": "id", + "deferrable": false, + "match_type": null, + "match_with": null, + "on_update": "update", + "destination_attribute_default": null, + "destination_attribute_generated": null + }, + "allow_nil?": true, + "generated?": false, + "primary_key?": false + } + ], + "table": "user_tokens", + "hash": "A6905FC4477BBC345AF9B18D162308B8A1216E8F50DAC3912FE4DF2FEBE8ABFB", + "repo": "Elixir.AshHq.Repo", + "identities": [], + "schema": null, + "multitenancy": { + "global": null, + "attribute": null, + "strategy": null + }, + "base_filter": null, + "check_constraints": [], + "custom_indexes": [], + "custom_statements": [], + "has_create_action": false +} \ No newline at end of file diff --git a/priv/resource_snapshots/repo/users/20240403011723.json b/priv/resource_snapshots/repo/users/20240403011723.json new file mode 100644 index 0000000..a64ba60 --- /dev/null +++ b/priv/resource_snapshots/repo/users/20240403011723.json @@ -0,0 +1,119 @@ +{ + "attributes": [ + { + "default": "fragment(\"gen_random_uuid()\")", + "size": null, + "type": "uuid", + "source": "id", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": true + }, + { + "default": "nil", + "size": null, + "type": "citext", + "source": "email", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "nil", + "size": null, + "type": "text", + "source": "hashed_password", + "references": null, + "allow_nil?": true, + "generated?": false, + "primary_key?": false + }, + { + "default": "nil", + "size": null, + "type": "text", + "source": "encrypted_name", + "references": null, + "allow_nil?": true, + "generated?": false, + "primary_key?": false + }, + { + "default": "nil", + "size": null, + "type": "text", + "source": "encrypted_address", + "references": null, + "allow_nil?": true, + "generated?": false, + "primary_key?": false + }, + { + "default": "nil", + "size": null, + "type": "text", + "source": "shirt_size", + "references": null, + "allow_nil?": true, + "generated?": false, + "primary_key?": false + }, + { + "default": "nil", + "size": null, + "type": "map", + "source": "github_info", + "references": null, + "allow_nil?": true, + "generated?": false, + "primary_key?": false + }, + { + "default": "fragment(\"(now() AT TIME ZONE 'utc')\")", + "size": null, + "type": "utc_datetime_usec", + "source": "created_at", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + }, + { + "default": "fragment(\"(now() AT TIME ZONE 'utc')\")", + "size": null, + "type": "utc_datetime_usec", + "source": "updated_at", + "references": null, + "allow_nil?": false, + "generated?": false, + "primary_key?": false + } + ], + "table": "users", + "hash": "CCEA7CB459210745ECB50017F08F038AED128F4DE539E990D41969FAE96ED7A8", + "repo": "Elixir.AshHq.Repo", + "identities": [ + { + "name": "unique_email", + "keys": [ + "email" + ], + "all_tenants?": false, + "index_name": "users_unique_email_index", + "base_filter": null + } + ], + "schema": null, + "multitenancy": { + "global": null, + "attribute": null, + "strategy": null + }, + "base_filter": null, + "check_constraints": [], + "custom_indexes": [], + "custom_statements": [], + "has_create_action": false +} \ No newline at end of file