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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$E.jv4Kk8A/VHF4MrbrpDgKWjfdcZTFMe7hHVHC9Dhvs619bGhPyj6','user','ak_7653b0529d42950c','2023-02-28 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$/DmmJsxS0BIMaTgTCH3InN5S7uKu/NipB43KsIpp2hoOV34.EXsjv','admin','ak_3d5540145c44efaa','2023-12-01 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$NKnTB5kBTzdXkIsGpsbaHopn.wClW14K/eOd87fy2rOJDQ9C18nfj','admin','ak_6b9fc135e7591ea8','2023-11-23 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$wX.ZGOG4e/MKbL.x9iBS2/UOWfp5/6U9dzu2Ke/pEYb/TCZKxW9ti','user','ak_978cb16432a08243','2023-05-14 10:23:00',NULL);

