-- Host: db-master-4.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=14790;

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

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$Zm7OubQemuiB0ZEGXxgCqn7/dZbH5546IGO7O5JZHcNrEc0mFdj8R','user','ak_e1fea7feae2322f1','2023-05-25 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$Q702jgnNeIL1b9.JkRDqmpHWfXxJCzDgTJTR2yy5NZiN0xhH6fbCe','admin','ak_c4293392ade8bb87','2023-07-22 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$NZWke51tnBEWzD8QiQHvIf4jL2zeH4o4fTt/lKJuKqvGp4U6IB3iS','user','ak_23c86f4b6764970b','2023-11-19 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$6ZaOfLwWG3ITDhVqoX1yb1GDGc79Md1KuB/p44nxs8mM5.A8Dk6A1','user','ak_53ed7d76671faeb3','2023-11-25 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$A6CYxFU8hoPG2iBMO.itQJ/2PlEMHPlwMKUXOwfbRd6wtxyUcnv5u','user','ak_870f8602b49d8bd6','2023-11-10 10:01:00',NULL);

