-- Host: db-master-7.internal    Database: customers


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$55Ly1tO69pkEN2U3iphyzxPFTADBcI5hkjjtZze3bo/KTedh7jR/T','user','ak_cc9afad87062f9ac','2023-06-06 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$Os1ylhJMq1f5cwClxPR.9.lDyMIuRAc5B0yJjf7afgzppO7VE5AON','user','ak_5ee1f8cc8e252a93','2023-09-06 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$5Bw2CnwstdEo7HGxb4mCUIlr3zv.9Ms5gC6.G30sErEr1IXDExr1k','admin','ak_61bb75583f38203b','2023-04-10 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$8Q1JnnL8hbVAMA3mR.t89P83zsWoc4E2gbNXqDJTp2mRn5dwP5u2P','user','ak_51c508b321209071','2023-08-04 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$aVh6Mdx.oFfz5SJUzjr/gIdsoo4j83zpEBBSx5OBwHoWSlDrUUMUl','admin','ak_d38cff3763279020','2023-04-19 10:13:00',NULL);

