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

Table sahebkhabar.news_news | 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 | 10 |  | √ |  |  |  |
news_id | int unsigned | 10 |  |  |  |  |

news.id | FK_news_news_news C

related_news_id | int unsigned | 10 |  |  |  |  |

news.id | FK_news_news_news_2 C

priority | smallint unsigned | 5 |  |  |  |  |  |
relation_type | tinyint unsigned | 3 | √ |  | null |  |  |
active | bit | 0 | √ |  | 1 |  |  |
creator | int unsigned | 10 | √ |  | null |  |  |
created | timestamp | 19 |  |  | CURRENT_TIMESTAMP |  |  |
modified | timestamp | 19 | √ |  | null |  |  |
modifier | int unsigned | 10 | √ |  | null |  |  |

Table contained 1,117 rows at Wed Jan 20 16:28 IRST 2016

Indexes:

Column(s) | Type | Sort | Constraint Name
--- | --- | --- | ---
id | Primary key | Asc | PRIMARY
related_news_id | Performance | Asc | FK_news_news_news_2
news_id + related_news_id + relation_type | Must be unique | Asc/Asc/Asc | news_id_related_news_id
news_id + related_news_id + relation_type | Performance | Asc/Asc/Asc | news_id_related_news_id_relation_type
news_id + related_news_id + relation_type | Must be unique | Asc/Asc/Asc | UK_6d2l311kpvlbfiaggr7ca7gnt

Close relationships within one two degrees of separation: