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


--
-- Table structure for table `payments`
--

CREATE TABLE `payments` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `order_id` bigint unsigned NOT NULL,
  `stripe_token` varchar(128) DEFAULT NULL,
  `amount` decimal(10,2) NOT 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=23471;

--
-- Dumping data for table `payments`
--


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

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$NPfHhZdGWlB4aPYQ0uftIbOMpT/DmOfuJGmI.Vr4HnxKqgcf1GDg5','user','ak_4fafb1f76a4a342e','2023-05-14 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$aJrw28f.OutkxSIpeexWoABe6u4ERfDYVjAbEnMmu8BUn76lO5pJ5','user','ak_ebfc7e60ba687bd2','2023-01-11 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$0OsCFd58T1.ZNyiLU1xvik9X5uR/PuvKAGDzz33OPqGz4fP1Iy7fb','admin','ak_d80970c435380609','2023-01-07 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$KbgjiwZw1ofdyEwy9A9c9C1pIIfIYk2WXVKE8hid/mVEWOaeVWqOp','admin','ak_34d666012b52e9d7','2023-03-23 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$Rdi8jDri1EVRH8/YjWF7xiYEFywx8HE9CsxMsIgXoUcS2SPod9eSh','admin','ak_174d14f12bff6c61','2023-06-20 10:01:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@internal.io','$2b$12$.eSqml5MlOfAHa4THu75wS97k.ErOc93Dz9yqIW7pxxcjuJ6.jm4e','admin','ak_7660aa09bc27511f','2023-10-09 10:11:00',NULL);

