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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$EvG8ZdYvPJKvOuS0zbsVK260ct42JYPlsTg86qdY2SmcfA7KuX14/','user','ak_856dd153542ae77c','2023-11-11 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$mf52KOP4EcrxbLDqhc8DBn76NSnr.hL6KpxTeZK4blVZNKs4oHLm2','user','ak_9dc4d01ec0cd2b0c','2023-09-12 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$5LhyKJDfkgvGERzmHGYjYS0oSq96glefIMu1zqiEbK0LneTIddeX8','admin','ak_a25728f36381e9e4','2023-05-13 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$nbUAPhuRb5ESDts2e9gDLi6xlFY0NExMwXAowyjQOUwkGPs9BOh//','user','ak_50bd8d94198540ed','2023-05-23 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$G985Sk7HCFtjryhI1EVb9G/DpJw6AGkv/Ac4QrXoZBRm8iZkPW9p6','user','ak_3d88b39a51346b00','2023-12-09 10:14:00',NULL);

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

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


