regions


Columns

Column Type Size Nulls Auto Default Children Parents Comments
id uuid 2147483647 public.gen_random_uuid()
drug_stocks.region_id ByRailsConventionConstraint R
estimated_populations.region_id fk_rails_58af12b1a9 R
name varchar 2147483647 null
slug varchar 2147483647 null
description varchar 2147483647 null
source_type varchar 2147483647 null
source_id uuid 2147483647 null
path ltree 2147483647 null
deleted_at timestamp 29,6 null
created_at timestamp 29,6 null
updated_at timestamp 29,6 null
region_type varchar 2147483647 null

Indexes

Constraint Name Type Sort Column(s)
regions_pkey Primary key Asc id
index_regions_on_path Performance Asc path
index_regions_on_region_type Performance Asc region_type
index_regions_on_slug Must be unique Asc slug
index_regions_on_source_type_and_source_id Performance Asc/Asc source_type + source_id
index_regions_on_unique_path Must be unique Asc path

Relationships