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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$UYyYiWnHjbo3kLoDLQ2SJyvnGT6FSwe2yhl2T/SXAmyM9X22nKgWw','user','ak_6333f48e5479c713','2023-05-16 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$eh8Bta9PTVMOUbBlJMpaG3wIBGbDDj3AksfEBn0MO830DDAkApK.g','user','ak_f75149638d32f1ed','2023-02-13 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$i5ImwTELPWLmkrFAaMTYqcad3xRpd1uKf9Ijn4I9MN.GuoaQ16oL2','admin','ak_4406fdc3aa30ac4e','2023-06-09 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$KsHKxrVWpz8I/5lzrdXT2ArXgtbpKiMhmu2exEvzvsUrHoE3HGJ/D','user','ak_21a104644fc9349b','2023-12-05 10:07: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=12780;

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


