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


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

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

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$NQe1Z75.zur54/.nUpRW4ftlEQt28KmsviPdF0hyzZAKwWIfumh6x','admin','ak_d20c618770f393d7','2023-04-12 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$Svkqxny7R9YvTcxDd6aPG3ybLrIM4POdahcYBbhZNJpO/CE7n0Jil','admin','ak_018da0691edaf31e','2023-03-14 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$pbyeEdFailMJDqTP2ff/nEAVNAvULgj.fgo8uwO.iSZKTiz.Gf.9n','user','ak_ea5176420989320a','2023-04-15 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$xSPGLvUQnnDxXGzJESz5gmCZxhgVskJk3Y70nLtZLX6NTbQkfdfAO','user','ak_f83ee9f867e525bc','2023-07-17 10:10:00',NULL);

