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

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


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

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


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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$hzl4TJ8Mw6ZJFus9.N/IaJb49x12Kw4RxAOfD/ki32SwFpxTiMHVW','user','ak_b34f62cdcca2b65a','2023-10-09 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$hbyzzwjaq2N57CzybUmd3KX7/kOcVya79G5NedET71a81ECcXCE7b','user','ak_4cdff1d0cfa139e4','2023-01-16 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$bD.ECytGifFiFYqOZPaQNUmmhbLVs9LGOHNRLiM74F5R2EfQKmXwv','user','ak_e0f492bf5e264b7a','2023-12-28 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$./p/cyEN.yQ86jDzVAvxCdZF4iYOwyXKWB/ewb2o8kxb8vuofZs55','user','ak_66765057897a2e71','2023-07-23 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$mafRwMqDCu8H6ZYRApn1aM9aD6ia2caJ8dLPinscv8nSHcFrQMkHH','user','ak_206f427f560e0b4f','2023-01-17 10:20:00',NULL);
INSERT INTO `users` VALUES (6,'admin@internal.io','$2b$12$pHt.3N388SvrvfaAat45CXIab6don5a3zQ7xJEdkgBL/IX9UCM166','user','ak_421724b7aee778b6','2023-12-05 10:06:00',NULL);

