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

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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$AOgYZgYKKepppxcH.sX0.jd/pXmV.Cb7MGG6vhBywpSNqj22PoRaC','admin','ak_f3771463e783fa0b','2023-04-05 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$sV5B/xiGDNMLPxXQJnXGiT/rppeMhAB/NAkYXA6FUd5tS0xSLJIo3','user','ak_60fd38df71c0b99b','2023-01-17 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$89EPNVHHvTnx.srmgXxO1mgDBCUu1Rsnv3VccFbF0ALWIRbbC7E8Z','user','ak_11591b27edd790b8','2023-03-20 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$MMGoB4T5vCcnOvcTF4MSeEvRrJ8Ub6zo3JSFrp.47ssW8WlLStS0b','user','ak_be9f27580a00fc34','2023-02-20 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$/d1qdVhgvas7uhL2yDcm6ht4y9Fw6LYzdfma8rJgrZy9zhrEhUpRH','admin','ak_785dc59ec01c9b4b','2023-09-20 10:03:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@company.com','$2b$12$VC.fva4JIIK1EUxZ2CjvZ1g7vKj5JXJj8wum8OWzWSkEG11X.vKrw','admin','ak_b7566bfa6f2c2802','2023-08-02 10:04:00',NULL);

