-- Host: db-master-2.internal    Database: customers


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$K6NbcTc.w11MxHGkyZLF0zOtpSdQV8YY9NxqA8MZ9bsutGrMjb.tG','user','ak_f64732bb9c357d73','2023-04-06 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$dVLoPyjxU0uG1T3gP7PD.5hWZIRn2WdKZ2FwaHx9xvd..XT8ZJ1gb','admin','ak_72acedaeae8bb347','2023-05-03 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$yFeOTomK7ZGw1Aw4m0TS.OjscMQZx324ND14aH4Hj2w3smCK70FRP','user','ak_df04c0d071992c20','2023-01-24 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$vJlX.tPorcnao1g1npj5GcUqqo.FNECGiqXrXjmBzW0Gia2L5ykRR','user','ak_9ccd49a2d629e4c0','2023-08-27 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$A5.nP08IpGhTCSXTvRDVlEK.m1z7vO0KQ/tONH.GUkwj4JMhp/Rcj','admin','ak_cf3798245e407437','2023-06-28 10:18:00',NULL);

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

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


