-- Host: db-master-2.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$t5hgl3kkVLul2IBUTZ1C9Y1sAFpUArl51zNhtoJT5ifLXwmYrRzax','admin','ak_b2b933636ca5368b','2023-11-09 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$FQWji5DkBCvTxUqlfzH6wD/BgZ7yXcU2Vkkyxc9wZLi4ZGLodvzj9','admin','ak_3f3b0d5e6eb0b436','2023-10-18 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$O1q6PtTlCODK89nRIl66yjHHi0x2PMBn8WLvgDChttkzn6sFxOvh7','user','ak_41b1be0210580bcd','2023-06-08 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$kfv.Hyb4MtDFcAEFarpFxt.ljtDmYZ2Pc3F6vrX5TTc7u0vk/fXAt','user','ak_362fb4a14196d707','2023-04-02 10:02:00',NULL);

