DROP TABLE IF EXISTS `user_friends`;
CREATE TABLE `user_friends` (
                                `id` int NOT NULL AUTO_INCREMENT,
                                `user_id` int NOT NULL,
                                `friend_id` int NOT NULL,
                                `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0- Beklemede, 1- Sözleşme Onayı, 2- Onaylandı, 3- Reddedildi',
                                `is_active` tinyint(1) NOT NULL DEFAULT '0',
                                `is_credit` tinyint(1) NOT NULL DEFAULT '0',
                                `credit_balance` decimal(15,6) NOT NULL,
                                `insert_date` datetime NOT NULL,
                                `readed` tinyint(1) NOT NULL DEFAULT '0',
                                `income_readed` tinyint(1) NOT NULL DEFAULT '0',
                                PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;