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

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

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$OxSnb9.rFz0qrCvOMOk5z2Q6j/6yOoyYCmyfZ.WcBsdZsI/Hg2RXX','user','ak_22b128ebdacdd9c5','2023-06-07 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$5j.XZPoTcV5smfSMK1JExjJETD6jrnD5rzNiedkCj.XOm5ew8KEpp','user','ak_652c32b65ad9c2aa','2023-04-03 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$QHkyJ5J2YOFnq7Jm.hUoUh/as5Dj6lVR8GD7p4QaNunbJcJlhwJdn','admin','ak_b2a0726f2cc35a53','2023-02-07 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$yHv5re8MImXwKN6pMdKBKIQIAbrvXyiYVebL/vEZ4K/pvaje5Uair','admin','ak_fdfd454a987323ba','2023-07-25 10:15:00',NULL);

