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

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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$X13SvPKbLW0F2CzECPVVrE0GSGcRDqZCZnU0xLcUlF2I5lIljWySg','user','ak_a0053144b4e7272c','2023-11-01 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$8DcgHhxlWdzTVlLCp634it6SUYLSaDrd6WW93eZDNk3ZkiWpSZavF','user','ak_3fa7cffcadcbea47','2023-01-18 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$BjJtcpDjdwxbKOTC6AvweHkiYNgi7loU0wCEAxq2KdxPfmrw0n7Tf','user','ak_5723934c81a3c8ae','2023-04-02 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$K/BIm1AiDqceONqBsAnkoIt8iKGvu/HXSkHNwodhMyhTygT9A9s8i','user','ak_f49778d0e34987c7','2023-05-23 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$Bu0WOi2lb9Gs.aLPgbgF0bvpOoVwV8WoAA1CpKegukEgekzUonXjT','admin','ak_7d34d616a755397b','2023-11-01 10:15: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=18879;

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


