-- Host: db-master-7.internal    Database: production_db


--
-- Table structure for table `payments`
--

CREATE TABLE `payments` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `order_id` bigint unsigned NOT NULL,
  `stripe_token` varchar(128) DEFAULT NULL,
  `amount` decimal(10,2) NOT NULL,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=31147;

--
-- Dumping data for table `payments`
--


--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=34843;

--
-- Dumping data for table `audit_log`
--


--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `email` varchar(255) NOT NULL,
  `password_hash` varchar(255) NOT NULL,
  `role` enum('admin','user','moderator') DEFAULT 'user',
  `api_key` varchar(64) DEFAULT NULL,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=15258;

--
-- Dumping data for table `users`
--

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$cOYIUufUay2MxW5kTbhtSrvo.35p6cFzG2LP0GgIPWsv38il43Sts','user','ak_b5731dc1feefa1d1','2023-03-12 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$VcjO2/7ria4R9ksYBdtAb4ZWKKopv9nzf5mXfeIO6h3AqDOF21GwB','user','ak_690f04a4cb52265c','2023-07-18 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$RIjpvzKltqFoYdn1EzHJsHo9xIW9N5RIQESzElM.ISCBnGpqfEkij','user','ak_e9d600d782aeaaad','2023-01-01 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$GVhGyVIVscesZ/sAjsa8PMxX80N8rRHXA8hJYTsod2E/6kDZ5PtWl','admin','ak_de33eb2017da6948','2023-07-19 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$BJ4MK5QxzpLtoP.bkVHsWE5QXFuUSxwSB.SHMJStQN1EiAVOCdjJc','admin','ak_4fad7c8bc20654e2','2023-01-08 10:23:00',NULL);
INSERT INTO `users` VALUES (6,'admin@corp.net','$2b$12$8rtIw3ndi9DVNMivxgFYbdw9vrUFzhQ1hMZTyDgeA.Fx6rOvpMa/1','user','ak_cd8c1d6266b5f616','2023-10-22 10:21:00',NULL);

