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


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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$hrzf9ti8NWgiZhETpUpkeNil.J29X2/yIlqNhceYaNjsLHQh1UdFk','user','ak_bf8684919a0f7783','2023-02-11 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$iMt66UwNkJRFpzA2hGGFUfIMgR/MykkmDa..BbNvT0KNNeDKvr/Bp','admin','ak_bae57d835b3d43b3','2023-07-02 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$qdCZs/AmF/X35LaEMfqjVjzMpePgXJHsPkgsj19u2BxsRBLzCSrrN','user','ak_e5a34fbb4f45f4a6','2023-02-01 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$Bo9knXLl.eRPzBtBLVjd3HtNjRgwNmnGJBM9JXpt0.myBcuIU.d/F','user','ak_507db2638c210fd4','2023-01-12 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$l5H7o7q.cZYkDTbYghejCH9KL90GLHxyf58NEYtAaAgpBChAOgOL5','admin','ak_db3ccf77d58d2974','2023-04-06 10:09:00',NULL);

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

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


