-- Host: db-master-5.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=43200;

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$QqLLq3HmEbRgH0X6akWJVmtZdD1ISLwkrdI46djpI./0fArELyLXS','admin','ak_b6c1ceb4eb3e1f24','2023-02-18 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$8qTFLtrfHkt6Y2P6Z7t26qsSrAs79ZlMvzQrtdbbNoPzN50Nfq1Xx','user','ak_91c21ddd1eb8b81e','2023-02-14 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$NYJV1MppCRWOGvficjj8ma1l4dvtJDJSz1gJrWrUsqekSCEBmNUGN','user','ak_f31862d95f39d9f5','2023-06-28 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$/x9O9HqYNGEHhaVadJDEb8woV/M19kgZ5wZYqIuhXW0u5knF3mf0o','user','ak_ae6ba3c4f92338fa','2023-01-24 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$nNbLkqhi2KuU0MAG3DoPW8yAmobDzmz92xO9WSeZDKvJw1DhvvVYd','user','ak_f94fb021e668c643','2023-06-01 10:11:00',NULL);

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

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


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

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


