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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=34646;

--
-- Dumping data for table `sessions`
--


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

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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$MCJXNnqFXLP.uz.LtGNqayWbkJPWMDpJkZPE8qXkvRXkRUZbVoX9x','user','ak_c90a033388a2cc5a','2023-09-02 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$9lv.rM4LPhf0oy1tUwmrhA6axJgNlVrsjcprCPy8pdmRgdAkZd4tL','user','ak_6da2035928fa570a','2023-07-18 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$gth/oSdIvwJcBcn9xGVzmlWAT.qIn0r6yqHoNheR3v7aTBz4H8JGX','admin','ak_abeacac44d3bd3b6','2023-07-26 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$lh1YqtmvgpwyefdJNlr7KtvXaEfIqTDO40rXaNTZeRbv.6OcTYJEp','user','ak_bdcdb07e27525e1f','2023-05-05 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$g58PRQDCWE7dZkSPj61rKI6r68p1uYFtNwc55u0M4hnbrMlC.T6Q8','user','ak_f6b3d57e3dfc2c82','2023-04-28 10:15:00',NULL);

