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

Table sahebkhabar.product_category | 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 |  | √ |  |

product.category_id | fk_product_category R
product_category.parent_id | fk_prodcat_parent R

active | bit | 1 |  |  |  |  |  |
created | datetime | 19 |  |  |  |  |  |
creator | int unsigned | 10 |  |  |  |  |  |
modified | datetime | 19 | √ |  | null |  |  |
modifier | int unsigned | 10 | √ |  | null |  |  |
site_id | int unsigned | 10 | √ |  | null |  |  |
search_title | varchar | 100 | √ |  | null |  |  |
code | varchar | 30 | √ |  | null |  |  |
depth | int unsigned | 10 |  |  |  |  |  |
description | varchar | 1000 | √ |  | null |  |  |
full_title | varchar | 255 |  |  |  |  |  |
title | varchar | 100 |  |  |  |  |  |
visible | bit | 1 |  |  |  |  |  |
icon_id | int unsigned | 10 | √ |  | null |  |

media.id | fk_prodcat_icon R

parent_id | int unsigned | 10 | √ |  | null |  |

product_category.id | fk_prodcat_parent R

Table contained 5 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
icon_id | Performance | Asc | fk_prodcat_icon |
parent_id | Performance | Asc | fk_prodcat_parent |

Close relationships within one two degrees of separation: