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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$tK01pqg.OG2KvfOwUI8M8aWacvO75sa53iLNqXtxzlxfJeLnV0Q84','admin','ak_2e754810689a2794','2023-03-25 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$CMKAV1VAwradQpWgg0zkIgC7sYg4vBUOn9dtmHR9a7AI907EY.0kW','admin','ak_be3b80f79e0bf400','2023-09-10 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$ELDV9VdpLP/7Ns7cihhoIqlbUdvPHEPZiJSWd/uudfpAJbwKDwlPX','user','ak_b54b54fee3c7ac52','2023-05-07 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$2tC/g0eckN6ZK0yKB13fytptWMDUazfNRDVLM7inTedg7fVGuJ.Sa','user','ak_7ea86ef4aca28d9e','2023-09-19 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$/UsFHuBcVc/zfevEQNeNifGi65rRRbw1R.tggWf2iyNFw1bWqQj7m','admin','ak_1a2c4664b3eb7b6b','2023-06-07 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=14654;

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


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=8379;

--
-- Dumping data for table `products`
--


