-- Host: db-master-3.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=25649;

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$bJ6bjJ./aEhbp5S3X/2vnGZ3AXNqpcgbN0Ljma0aVGuN1jVTIzp4s','user','ak_64e67b67dd039829','2023-01-18 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$9i5R4aQCfwdqhCYtITL/WCj2l3NZ.BkoEJtjBLKnskWbkuIkpaCIe','user','ak_4850cbac2b8c579b','2023-10-17 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$4Na/R0tmlzLyuebE6pKdRYeCu29uBPonRqe8KeqxtPcCHHQeOVHKg','user','ak_f28432aa6a9a432c','2023-06-10 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$S9zlE6uqPb.E9kPTzGOssHa7tZTYj7Kgx/XE3CgCIySM/4Yd8.EX0','user','ak_4ee23a77ee7ad882','2023-07-09 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$CU8WJfAZX3DRUprWYV7HjIB3tGvVzjkgDEgcXzPgYbm8Akb7eGZgr','user','ak_0251ea87081e4f32','2023-08-08 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=28238;

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


