- Tables
- Relationships
- Utility Tables
- Constraints
- Anomalies
- Columns
- Donate

Table sahebkhabar.region | Generated by SchemaSpy

Related columns Constraints Comments Legend |

Legend: |

Primary key columns
Columns with indexes
Implied relationships
Excluded column relationships
< n > number of related tables

Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments
--- | --- | --- | --- | --- | --- | --- | --- | ---
id | int unsigned | 10 |  | √ |  |

news.region_id | fk_news_region R
news_history.region_id | FK_news_history_region R
region.parent_id | FK_region_region R

title | varchar | 60 |  |  |  |  |  |
search_title | varchar | 200 |  |  |  |  |  |
full_title | varchar | 255 |  |  |  |  |  | full title in the form: parent > title
code | varchar | 10 | √ |  | null |  |  |
depth | tinyint unsigned | 3 |  |  |  |  |  |
parent_id | int unsigned | 10 | √ |  | null |  |

region.id | FK_region_region R

longitude | double | 22 | √ |  | null |  |  |
latitude | double | 22 | √ |  | null |  |  |
site_id | int unsigned | 10 | √ |  | null |  |  |
active | bit | 0 |  |  | 1 |  |  |
creator | int unsigned | 10 |  |  |  |  |  |
created | timestamp | 19 |  |  | CURRENT_TIMESTAMP |  |  |
modifier | int unsigned | 10 | √ |  | null |  |  |
modified | timestamp | 19 | √ |  | null |  |  |

Table contained 2 rows at Wed Jan 20 16:28 IRST 2016

Indexes:

Column(s) | Type | Sort | Constraint Name | Anomalies
--- | --- | --- | --- | ---
id | Primary key | Asc | PRIMARY |
code | Must be unique | Asc | code | This unique column is also nullable
parent_id | Performance | Asc | FK_region_region |
title + parent_id + site_id | Must be unique | Asc/Asc/Asc | title_parent_id_site_id |

Close relationships within one two degrees of separation: