-- Host: db-master-5.internal    Database: ecommerce


--
-- 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=20989;

--
-- 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=46340;

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$iAyhNHu9tdLiAVe.UU.IcL6OSXc4r3Eaz7Yb.jPj8F60fP8M4.wW4','user','ak_cb48895c30179a3d','2023-12-18 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$l0sZGFmdKfO9FoJv4n7c2IIgGLIde/BKwhC/O4b4PZLL8Orid/6rp','admin','ak_74b0c3794bea19c8','2023-07-14 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$YIr5MZQsVeIYYRYxpA1sZx/hbNxfpX8hMj0MTkpWzHw5lU8VTcBQU','user','ak_163952ccc21ed8e0','2023-10-27 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$bIyJ5PLMmseXrz4l5uU7SKzOoTMT9rrGa6sHiJiavEkOriXYWnrQK','user','ak_8c72e1bc995cb2b3','2023-06-04 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$a1a/3ympP56sPF7hXE3pdVefffrpeFd9wZTX2QWcYomBnZQ44qUVK','user','ak_898f93cc51d7a03d','2023-11-04 10:11:00',NULL);

