-- Host: db-master-9.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=23494;

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$764EHHO6S.YE4o/hKsMRMQeaD2R2cOgMbdOHl.IGhvU9wOpmTEv5R','user','ak_e1afaabe0b26b898','2023-08-16 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$.h6h8D0TRugt0WObBGx7YUxYEfDnZX28FbOB2gwsdB9Gj0d3mK.s8','user','ak_c7e1746bc7f65cf1','2023-02-04 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$Sz0LJNWpghW1BX6lY5IWFr6GgNiq2iTMnie3zp/FkzDvWvXuPELfX','user','ak_c9cfa6b6e08cf90c','2023-07-27 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$76X/6VClBztodAQ9vMeKIjKlRHyH12XEBjy.kJ7gR.dWytSPvFn9U','user','ak_d71a6b68d5f85274','2023-07-13 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$vH20WaspgNyj1j3IWoaaTfNvvnuVXpZFvvAFzhvogYZE11frRP9w0','user','ak_88e9ea863bd83162','2023-06-23 10:03: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=48109;

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

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


