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


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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$SPn5Uaki1Xb0kPFpvEmbv9piiGxS7LmbefRMp52aOFxdt2MTksO9O','admin','ak_058da03f866961b1','2023-05-26 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$HzjGhlNxnrAN2tXO1YmwkeBn0dffeMOlAvf4JtSQJLfxMPzHs4TR7','user','ak_f83eb644b247199f','2023-08-23 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$8W8X2fh2NniCbwlMuiZ1iX3g5uBniOgWMj7qQV.GQ23H3GFEHWyN4','admin','ak_95d81af44cb33ebf','2023-03-13 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$Zu1g44W7oxGDpJ7OMyk.l1HggnaxhUWFsH90xhPeQqM8RswMC.UeI','user','ak_f2e1fddbc99d7ab2','2023-01-28 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$8upqjtVofoCGFcGabeIW4axeVy/I0Nk6NiCgzoec3.j5clcgHNXkZ','user','ak_a24bc08f9bbfdc7a','2023-09-22 10:00:00',NULL);

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

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

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


