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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$5EhkLCQqqNSgTaum4lrsgXMVB4eskhSpDvGsIwEWy2D7lfNZn9vPB','admin','ak_08c81b64023d8dce','2023-05-02 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$Uac.iON9GCk67e5F6VOUHmfCXTz84pJUNU1YuhK8JIHpBQaQh.OH.','user','ak_619d179578d40ec8','2023-08-18 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$mTicnY9QX5BEEGegmxnjEOVWv7qxv5Hbs1xMuAK5UbaXDIJ61Pz1d','user','ak_869c80eb9fc17754','2023-01-12 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$5rekZRDH2pFuC2EnPsnqyQWiBSMOiZbimPVIdlveQh036gPTv9Ysm','admin','ak_22ff66bf2a54d2e3','2023-11-07 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$TS5w8Qe1FpjtxK8Q4Jj2/0EhZ83VtJwjrETh/yd7XBp9IaAyXU7vo','admin','ak_27707cf4edf6e374','2023-11-03 10:13:00',NULL);

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

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


