1
mirror of https://github.com/jakejarvis/hoot.git synced 2025-10-18 20:14:25 -04:00
Files
hoot/drizzle/meta/0000_snapshot.json

1207 lines
30 KiB
JSON

{
"id": "bcc62004-d123-4026-8854-303595cfaad8",
"prevId": "00000000-0000-0000-0000-000000000000",
"version": "7",
"dialect": "postgresql",
"tables": {
"public.certificates": {
"name": "certificates",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "uuid",
"primaryKey": true,
"notNull": true,
"default": "gen_random_uuid()"
},
"domain_id": {
"name": "domain_id",
"type": "uuid",
"primaryKey": false,
"notNull": true
},
"issuer": {
"name": "issuer",
"type": "text",
"primaryKey": false,
"notNull": true
},
"subject": {
"name": "subject",
"type": "text",
"primaryKey": false,
"notNull": true
},
"alt_names": {
"name": "alt_names",
"type": "jsonb",
"primaryKey": false,
"notNull": true,
"default": "'[]'::jsonb"
},
"valid_from": {
"name": "valid_from",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": true
},
"valid_to": {
"name": "valid_to",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": true
},
"ca_provider_id": {
"name": "ca_provider_id",
"type": "uuid",
"primaryKey": false,
"notNull": false
},
"fetched_at": {
"name": "fetched_at",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": true
},
"expires_at": {
"name": "expires_at",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": true
}
},
"indexes": {
"i_certs_domain": {
"name": "i_certs_domain",
"columns": [
{
"expression": "domain_id",
"isExpression": false,
"asc": true,
"nulls": "last"
}
],
"isUnique": false,
"concurrently": false,
"method": "btree",
"with": {}
},
"i_certs_valid_to": {
"name": "i_certs_valid_to",
"columns": [
{
"expression": "valid_to",
"isExpression": false,
"asc": true,
"nulls": "last"
}
],
"isUnique": false,
"concurrently": false,
"method": "btree",
"with": {}
},
"i_certs_expires": {
"name": "i_certs_expires",
"columns": [
{
"expression": "expires_at",
"isExpression": false,
"asc": true,
"nulls": "last"
}
],
"isUnique": false,
"concurrently": false,
"method": "btree",
"with": {}
}
},
"foreignKeys": {
"certificates_domain_id_domains_id_fk": {
"name": "certificates_domain_id_domains_id_fk",
"tableFrom": "certificates",
"tableTo": "domains",
"columnsFrom": [
"domain_id"
],
"columnsTo": [
"id"
],
"onDelete": "cascade",
"onUpdate": "no action"
},
"certificates_ca_provider_id_providers_id_fk": {
"name": "certificates_ca_provider_id_providers_id_fk",
"tableFrom": "certificates",
"tableTo": "providers",
"columnsFrom": [
"ca_provider_id"
],
"columnsTo": [
"id"
],
"onDelete": "no action",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"policies": {},
"checkConstraints": {
"ck_cert_valid_window": {
"name": "ck_cert_valid_window",
"value": "\"certificates\".\"valid_to\" >= \"certificates\".\"valid_from\""
}
},
"isRLSEnabled": false
},
"public.dns_records": {
"name": "dns_records",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "uuid",
"primaryKey": true,
"notNull": true,
"default": "gen_random_uuid()"
},
"domain_id": {
"name": "domain_id",
"type": "uuid",
"primaryKey": false,
"notNull": true
},
"type": {
"name": "type",
"type": "dns_record_type",
"typeSchema": "public",
"primaryKey": false,
"notNull": true
},
"name": {
"name": "name",
"type": "text",
"primaryKey": false,
"notNull": true
},
"value": {
"name": "value",
"type": "text",
"primaryKey": false,
"notNull": true
},
"ttl": {
"name": "ttl",
"type": "integer",
"primaryKey": false,
"notNull": false
},
"priority": {
"name": "priority",
"type": "integer",
"primaryKey": false,
"notNull": false
},
"is_cloudflare": {
"name": "is_cloudflare",
"type": "boolean",
"primaryKey": false,
"notNull": false
},
"resolver": {
"name": "resolver",
"type": "dns_resolver",
"typeSchema": "public",
"primaryKey": false,
"notNull": true
},
"fetched_at": {
"name": "fetched_at",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": true
},
"expires_at": {
"name": "expires_at",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": true
}
},
"indexes": {
"i_dns_domain_type": {
"name": "i_dns_domain_type",
"columns": [
{
"expression": "domain_id",
"isExpression": false,
"asc": true,
"nulls": "last"
},
{
"expression": "type",
"isExpression": false,
"asc": true,
"nulls": "last"
}
],
"isUnique": false,
"concurrently": false,
"method": "btree",
"with": {}
},
"i_dns_type_value": {
"name": "i_dns_type_value",
"columns": [
{
"expression": "type",
"isExpression": false,
"asc": true,
"nulls": "last"
},
{
"expression": "value",
"isExpression": false,
"asc": true,
"nulls": "last"
}
],
"isUnique": false,
"concurrently": false,
"method": "btree",
"with": {}
},
"i_dns_expires": {
"name": "i_dns_expires",
"columns": [
{
"expression": "expires_at",
"isExpression": false,
"asc": true,
"nulls": "last"
}
],
"isUnique": false,
"concurrently": false,
"method": "btree",
"with": {}
}
},
"foreignKeys": {
"dns_records_domain_id_domains_id_fk": {
"name": "dns_records_domain_id_domains_id_fk",
"tableFrom": "dns_records",
"tableTo": "domains",
"columnsFrom": [
"domain_id"
],
"columnsTo": [
"id"
],
"onDelete": "cascade",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {
"u_dns_record": {
"name": "u_dns_record",
"nullsNotDistinct": false,
"columns": [
"domain_id",
"type",
"name",
"value"
]
}
},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
"public.domains": {
"name": "domains",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "uuid",
"primaryKey": true,
"notNull": true,
"default": "gen_random_uuid()"
},
"name": {
"name": "name",
"type": "text",
"primaryKey": false,
"notNull": true
},
"tld": {
"name": "tld",
"type": "text",
"primaryKey": false,
"notNull": true
},
"unicode_name": {
"name": "unicode_name",
"type": "text",
"primaryKey": false,
"notNull": true
},
"created_at": {
"name": "created_at",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": true,
"default": "now()"
},
"updated_at": {
"name": "updated_at",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": true,
"default": "now()"
}
},
"indexes": {
"i_domains_tld": {
"name": "i_domains_tld",
"columns": [
{
"expression": "tld",
"isExpression": false,
"asc": true,
"nulls": "last"
}
],
"isUnique": false,
"concurrently": false,
"method": "btree",
"with": {}
}
},
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {
"u_domains_name": {
"name": "u_domains_name",
"nullsNotDistinct": false,
"columns": [
"name"
]
}
},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
"public.hosting": {
"name": "hosting",
"schema": "",
"columns": {
"domain_id": {
"name": "domain_id",
"type": "uuid",
"primaryKey": true,
"notNull": true
},
"hosting_provider_id": {
"name": "hosting_provider_id",
"type": "uuid",
"primaryKey": false,
"notNull": false
},
"email_provider_id": {
"name": "email_provider_id",
"type": "uuid",
"primaryKey": false,
"notNull": false
},
"dns_provider_id": {
"name": "dns_provider_id",
"type": "uuid",
"primaryKey": false,
"notNull": false
},
"geo_city": {
"name": "geo_city",
"type": "text",
"primaryKey": false,
"notNull": false
},
"geo_region": {
"name": "geo_region",
"type": "text",
"primaryKey": false,
"notNull": false
},
"geo_country": {
"name": "geo_country",
"type": "text",
"primaryKey": false,
"notNull": false
},
"geo_country_code": {
"name": "geo_country_code",
"type": "text",
"primaryKey": false,
"notNull": false
},
"geo_lat": {
"name": "geo_lat",
"type": "double precision",
"primaryKey": false,
"notNull": false
},
"geo_lon": {
"name": "geo_lon",
"type": "double precision",
"primaryKey": false,
"notNull": false
},
"fetched_at": {
"name": "fetched_at",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": true
},
"expires_at": {
"name": "expires_at",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": true
}
},
"indexes": {
"i_hosting_providers": {
"name": "i_hosting_providers",
"columns": [
{
"expression": "hosting_provider_id",
"isExpression": false,
"asc": true,
"nulls": "last"
},
{
"expression": "email_provider_id",
"isExpression": false,
"asc": true,
"nulls": "last"
},
{
"expression": "dns_provider_id",
"isExpression": false,
"asc": true,
"nulls": "last"
}
],
"isUnique": false,
"concurrently": false,
"method": "btree",
"with": {}
}
},
"foreignKeys": {
"hosting_domain_id_domains_id_fk": {
"name": "hosting_domain_id_domains_id_fk",
"tableFrom": "hosting",
"tableTo": "domains",
"columnsFrom": [
"domain_id"
],
"columnsTo": [
"id"
],
"onDelete": "cascade",
"onUpdate": "no action"
},
"hosting_hosting_provider_id_providers_id_fk": {
"name": "hosting_hosting_provider_id_providers_id_fk",
"tableFrom": "hosting",
"tableTo": "providers",
"columnsFrom": [
"hosting_provider_id"
],
"columnsTo": [
"id"
],
"onDelete": "no action",
"onUpdate": "no action"
},
"hosting_email_provider_id_providers_id_fk": {
"name": "hosting_email_provider_id_providers_id_fk",
"tableFrom": "hosting",
"tableTo": "providers",
"columnsFrom": [
"email_provider_id"
],
"columnsTo": [
"id"
],
"onDelete": "no action",
"onUpdate": "no action"
},
"hosting_dns_provider_id_providers_id_fk": {
"name": "hosting_dns_provider_id_providers_id_fk",
"tableFrom": "hosting",
"tableTo": "providers",
"columnsFrom": [
"dns_provider_id"
],
"columnsTo": [
"id"
],
"onDelete": "no action",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
"public.http_headers": {
"name": "http_headers",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "uuid",
"primaryKey": true,
"notNull": true,
"default": "gen_random_uuid()"
},
"domain_id": {
"name": "domain_id",
"type": "uuid",
"primaryKey": false,
"notNull": true
},
"name": {
"name": "name",
"type": "text",
"primaryKey": false,
"notNull": true
},
"value": {
"name": "value",
"type": "text",
"primaryKey": false,
"notNull": true
},
"fetched_at": {
"name": "fetched_at",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": true
},
"expires_at": {
"name": "expires_at",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": true
}
},
"indexes": {
"i_http_name": {
"name": "i_http_name",
"columns": [
{
"expression": "name",
"isExpression": false,
"asc": true,
"nulls": "last"
}
],
"isUnique": false,
"concurrently": false,
"method": "btree",
"with": {}
}
},
"foreignKeys": {
"http_headers_domain_id_domains_id_fk": {
"name": "http_headers_domain_id_domains_id_fk",
"tableFrom": "http_headers",
"tableTo": "domains",
"columnsFrom": [
"domain_id"
],
"columnsTo": [
"id"
],
"onDelete": "cascade",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {
"u_http_header": {
"name": "u_http_header",
"nullsNotDistinct": false,
"columns": [
"domain_id",
"name"
]
}
},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
"public.providers": {
"name": "providers",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "uuid",
"primaryKey": true,
"notNull": true,
"default": "gen_random_uuid()"
},
"category": {
"name": "category",
"type": "provider_category",
"typeSchema": "public",
"primaryKey": false,
"notNull": true
},
"name": {
"name": "name",
"type": "text",
"primaryKey": false,
"notNull": true
},
"domain": {
"name": "domain",
"type": "text",
"primaryKey": false,
"notNull": false
},
"slug": {
"name": "slug",
"type": "text",
"primaryKey": false,
"notNull": true
},
"created_at": {
"name": "created_at",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": true,
"default": "now()"
},
"updated_at": {
"name": "updated_at",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": true,
"default": "now()"
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {
"u_providers_category_slug": {
"name": "u_providers_category_slug",
"nullsNotDistinct": false,
"columns": [
"category",
"slug"
]
}
},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
"public.registration_nameservers": {
"name": "registration_nameservers",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "uuid",
"primaryKey": true,
"notNull": true,
"default": "gen_random_uuid()"
},
"domain_id": {
"name": "domain_id",
"type": "uuid",
"primaryKey": false,
"notNull": true
},
"host": {
"name": "host",
"type": "text",
"primaryKey": false,
"notNull": true
},
"ipv4": {
"name": "ipv4",
"type": "jsonb",
"primaryKey": false,
"notNull": true,
"default": "'[]'::jsonb"
},
"ipv6": {
"name": "ipv6",
"type": "jsonb",
"primaryKey": false,
"notNull": true,
"default": "'[]'::jsonb"
}
},
"indexes": {
"i_reg_ns_host": {
"name": "i_reg_ns_host",
"columns": [
{
"expression": "host",
"isExpression": false,
"asc": true,
"nulls": "last"
}
],
"isUnique": false,
"concurrently": false,
"method": "btree",
"with": {}
}
},
"foreignKeys": {
"registration_nameservers_domain_id_domains_id_fk": {
"name": "registration_nameservers_domain_id_domains_id_fk",
"tableFrom": "registration_nameservers",
"tableTo": "domains",
"columnsFrom": [
"domain_id"
],
"columnsTo": [
"id"
],
"onDelete": "cascade",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {
"u_reg_ns": {
"name": "u_reg_ns",
"nullsNotDistinct": false,
"columns": [
"domain_id",
"host"
]
}
},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
"public.registrations": {
"name": "registrations",
"schema": "",
"columns": {
"domain_id": {
"name": "domain_id",
"type": "uuid",
"primaryKey": true,
"notNull": true
},
"is_registered": {
"name": "is_registered",
"type": "boolean",
"primaryKey": false,
"notNull": true
},
"privacy_enabled": {
"name": "privacy_enabled",
"type": "boolean",
"primaryKey": false,
"notNull": false
},
"registry": {
"name": "registry",
"type": "text",
"primaryKey": false,
"notNull": false
},
"creation_date": {
"name": "creation_date",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": false
},
"updated_date": {
"name": "updated_date",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": false
},
"expiration_date": {
"name": "expiration_date",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": false
},
"deletion_date": {
"name": "deletion_date",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": false
},
"transfer_lock": {
"name": "transfer_lock",
"type": "boolean",
"primaryKey": false,
"notNull": false
},
"statuses": {
"name": "statuses",
"type": "jsonb",
"primaryKey": false,
"notNull": true,
"default": "'[]'::jsonb"
},
"contacts": {
"name": "contacts",
"type": "jsonb",
"primaryKey": false,
"notNull": true,
"default": "'{}'::jsonb"
},
"whois_server": {
"name": "whois_server",
"type": "text",
"primaryKey": false,
"notNull": false
},
"rdap_servers": {
"name": "rdap_servers",
"type": "jsonb",
"primaryKey": false,
"notNull": true,
"default": "'[]'::jsonb"
},
"source": {
"name": "source",
"type": "text",
"primaryKey": false,
"notNull": true
},
"registrar_provider_id": {
"name": "registrar_provider_id",
"type": "uuid",
"primaryKey": false,
"notNull": false
},
"reseller_provider_id": {
"name": "reseller_provider_id",
"type": "uuid",
"primaryKey": false,
"notNull": false
},
"fetched_at": {
"name": "fetched_at",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": true
},
"expires_at": {
"name": "expires_at",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": true
}
},
"indexes": {
"i_reg_registrar": {
"name": "i_reg_registrar",
"columns": [
{
"expression": "registrar_provider_id",
"isExpression": false,
"asc": true,
"nulls": "last"
}
],
"isUnique": false,
"concurrently": false,
"method": "btree",
"with": {}
},
"i_reg_expires": {
"name": "i_reg_expires",
"columns": [
{
"expression": "expires_at",
"isExpression": false,
"asc": true,
"nulls": "last"
}
],
"isUnique": false,
"concurrently": false,
"method": "btree",
"with": {}
}
},
"foreignKeys": {
"registrations_domain_id_domains_id_fk": {
"name": "registrations_domain_id_domains_id_fk",
"tableFrom": "registrations",
"tableTo": "domains",
"columnsFrom": [
"domain_id"
],
"columnsTo": [
"id"
],
"onDelete": "cascade",
"onUpdate": "no action"
},
"registrations_registrar_provider_id_providers_id_fk": {
"name": "registrations_registrar_provider_id_providers_id_fk",
"tableFrom": "registrations",
"tableTo": "providers",
"columnsFrom": [
"registrar_provider_id"
],
"columnsTo": [
"id"
],
"onDelete": "no action",
"onUpdate": "no action"
},
"registrations_reseller_provider_id_providers_id_fk": {
"name": "registrations_reseller_provider_id_providers_id_fk",
"tableFrom": "registrations",
"tableTo": "providers",
"columnsFrom": [
"reseller_provider_id"
],
"columnsTo": [
"id"
],
"onDelete": "no action",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
"public.seo": {
"name": "seo",
"schema": "",
"columns": {
"domain_id": {
"name": "domain_id",
"type": "uuid",
"primaryKey": true,
"notNull": true
},
"source_final_url": {
"name": "source_final_url",
"type": "text",
"primaryKey": false,
"notNull": false
},
"source_status": {
"name": "source_status",
"type": "integer",
"primaryKey": false,
"notNull": false
},
"meta_open_graph": {
"name": "meta_open_graph",
"type": "jsonb",
"primaryKey": false,
"notNull": true,
"default": "'{}'::jsonb"
},
"meta_twitter": {
"name": "meta_twitter",
"type": "jsonb",
"primaryKey": false,
"notNull": true,
"default": "'{}'::jsonb"
},
"meta_general": {
"name": "meta_general",
"type": "jsonb",
"primaryKey": false,
"notNull": true,
"default": "'{}'::jsonb"
},
"preview_title": {
"name": "preview_title",
"type": "text",
"primaryKey": false,
"notNull": false
},
"preview_description": {
"name": "preview_description",
"type": "text",
"primaryKey": false,
"notNull": false
},
"preview_image_url": {
"name": "preview_image_url",
"type": "text",
"primaryKey": false,
"notNull": false
},
"preview_image_uploaded_url": {
"name": "preview_image_uploaded_url",
"type": "text",
"primaryKey": false,
"notNull": false
},
"canonical_url": {
"name": "canonical_url",
"type": "text",
"primaryKey": false,
"notNull": false
},
"robots": {
"name": "robots",
"type": "jsonb",
"primaryKey": false,
"notNull": true,
"default": "'{}'::jsonb"
},
"robots_sitemaps": {
"name": "robots_sitemaps",
"type": "jsonb",
"primaryKey": false,
"notNull": true,
"default": "'[]'::jsonb"
},
"errors": {
"name": "errors",
"type": "jsonb",
"primaryKey": false,
"notNull": true,
"default": "'[]'::jsonb"
},
"fetched_at": {
"name": "fetched_at",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": true
},
"expires_at": {
"name": "expires_at",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": true
}
},
"indexes": {
"i_seo_src_final_url": {
"name": "i_seo_src_final_url",
"columns": [
{
"expression": "source_final_url",
"isExpression": false,
"asc": true,
"nulls": "last"
}
],
"isUnique": false,
"concurrently": false,
"method": "btree",
"with": {}
},
"i_seo_canonical": {
"name": "i_seo_canonical",
"columns": [
{
"expression": "canonical_url",
"isExpression": false,
"asc": true,
"nulls": "last"
}
],
"isUnique": false,
"concurrently": false,
"method": "btree",
"with": {}
}
},
"foreignKeys": {
"seo_domain_id_domains_id_fk": {
"name": "seo_domain_id_domains_id_fk",
"tableFrom": "seo",
"tableTo": "domains",
"columnsFrom": [
"domain_id"
],
"columnsTo": [
"id"
],
"onDelete": "cascade",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
}
},
"enums": {
"public.dns_record_type": {
"name": "dns_record_type",
"schema": "public",
"values": [
"A",
"AAAA",
"MX",
"TXT",
"NS"
]
},
"public.dns_resolver": {
"name": "dns_resolver",
"schema": "public",
"values": [
"cloudflare",
"google"
]
},
"public.provider_category": {
"name": "provider_category",
"schema": "public",
"values": [
"hosting",
"email",
"dns",
"ca",
"registrar"
]
}
},
"schemas": {},
"sequences": {},
"roles": {},
"policies": {},
"views": {},
"_meta": {
"columns": {},
"schemas": {},
"tables": {}
}
}