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


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

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

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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$EK52baqVV46hlTOXltXOGs4ZHfeERvUaizZce7fH.m34P6VaPozt5','admin','ak_f247e042617dcc26','2023-01-19 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$PTEqI9veN6ED2BJyn5Blt36Qbsu2Qod8PklvnXDOZqw0i2lAjPXGV','admin','ak_61f412ce3694f345','2023-07-02 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$u9qp1yG54JFF1MeaB2KwO3DdnrA7Gc4GqZG02.GqSQCxp5671TrkY','user','ak_e6422647c99ca237','2023-10-25 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$va3vr.tQ/gwBpO9poBEK7oE/m6kLDt2fVVzi41q6cbF0bTwnCN.Hi','user','ak_1dd0ed1a3288efc5','2023-06-24 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$2fFMEqziHau2IN09ZeXtfklcT2azzyAXPADb8mGj4heD/BzhfmfTP','user','ak_16bb5e1413465f28','2023-09-05 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@corp.net','$2b$12$/deUOCBN9oSwfkrgF.RoNUvddCUEilB.PAls73sYvD4802QnpMMXV','user','ak_960650feb73c26fc','2023-02-23 10:04:00',NULL);

