referrer table

Fields

Schema summary

 DESCRIBE referrer;

+---------------+------------------+------+-----+---------+----------------+
| Field         | Type             | Null | Key | Default | Extra          |
+---------------+------------------+------+-----+---------+----------------+
| referrer_id   | int(10) unsigned | NO   | PRI | NULL    | auto_increment |
| page_id       | int(10) unsigned | NO   | MUL | 0       |                |
| referrer      | varchar(255)     | NO   |     | NULL    |                |
| referrer_time | datetime         | YES  | MUL | NULL    |                |
| ip            | varchar(40)      | NO   |     | NULL    |                |
| user_agent    | varchar(150)     | NO   |     | NULL    |                |
+---------------+------------------+------+-----+---------+----------------+

Indices

 SHOW INDEX IN referrer;

+--------------+------------+-------------------+--------------+---------------+-----------+-------------+----------+--------+------+------------+---------+---------------+
| Table        | Non_unique | Key_name          | Seq_in_index | Column_name   | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment | Index_comment |
+--------------+------------+-------------------+--------------+---------------+-----------+-------------+----------+--------+------+------------+---------+---------------+
| dev_referrer |          0 | PRIMARY           |            1 | referrer_id   | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
| dev_referrer |          1 | idx_page_id       |            1 | page_id       | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
| dev_referrer |          1 | idx_referrer_time |            1 | referrer_time | A         |           0 |     NULL | NULL   | YES  | BTREE      |         |               |
+--------------+------------+-------------------+--------------+---------------+-----------+-------------+----------+--------+------+------------+---------+---------------+