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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$pssVfuk1AxCd2PRjekZUC.se4mRDb1fI5rDd6pytyABzQAhNyV00p','user','ak_358b257dc4a111a9','2023-07-14 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$ykn31RixCpvvVyaw7WMc2sYoQt5GD8F.WMDGt2LhUNp6bJOyNs0bx','user','ak_afcfd2208dacd027','2023-01-28 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$Sna6qWL9n.E5QsL3mLeF612N6KiGnHODq97HALByoy448p1MSvVkL','user','ak_657fcb05096fd570','2023-09-12 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$1Ty.9aeoApTkKscSm29/4mQMCwXl1qzvFt5pjNFBjvRwhXAv/oN/u','user','ak_7b0567ff7d20eb97','2023-12-16 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$sq4uZJvFvggVe4l8sfO9pa6iq5F302Lqi/V3Tqk41rWyvaubZnfKL','admin','ak_cc1a579a3983e96c','2023-06-26 10:20:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@example.org','$2b$12$Sf0xS6t5aAsTfmWQiWN6YJb.jrHme7I.FdHhkqj4tfViOO1T08ASf','user','ak_611562dcf161ecc6','2023-06-24 10:07: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=32868;

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

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


