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


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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$Nh5p1HelKYCGNBMDevCytJsYAa5UWqfNdVO4t.ieimuEtxgBAMHcW','admin','ak_1bdf117e0d5bb8d1','2023-08-02 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$ggfIhEYqSuSA9wudBbUzo2bWVyPEGmJlqc7x6xPOO/FWe08xhQIex','admin','ak_ed2b392e09e411d3','2023-02-12 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$8LS5QlFjw0yEu4E6evtvR0FkoXXedyYp78Dabsp6oL81355tSiXAz','user','ak_c685c121ae9a9a9d','2023-03-05 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$C9w7C85X1WofPBnJiiE3nZz0ObtE5jT7ED/61RQELigKazfgiu6jk','user','ak_f9644685435b37c3','2023-07-22 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$kCYLYfT1woBR3gD5cGaiE7LRteWdtkDGVqi0gEJxRVuAoMwEle9sV','admin','ak_426cb8822a45b868','2023-05-03 10:01: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=10917;

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


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

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


