-- Host: db-master-6.internal    Database: webapp_db


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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$AbZXSjLXQOOF763zorjdI.TDGHns8pGNcCwjkjf5wEVIjsnY7fNoy','user','ak_040372dc2ae8ad00','2023-10-19 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$YCE/hH6k1QlKRF8ixvNWkLS98FE3lmTcoN6oFZ5WJkc63qm03eKki','admin','ak_75d3978031bf78c6','2023-07-03 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$Wvd.Jpkdk43h.JveVM7hns6WAzjNaOxLTIiRUGY86WBtUBkyDwLad','user','ak_d4e7891db372bfc8','2023-05-02 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$PjsNPrgkjYw8VFOvVwGUQ9OCUdhhrBaymJK0yGmCMD19UqFTI/Sdb','admin','ak_9354f8c432656da7','2023-02-22 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$.3JNMEj9FXvXfxQ7E.zjllHV7ePFx/j82O6NadKF2z/MaoryY/nIx','admin','ak_d8af42e48975329f','2023-09-19 10:03: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=7442;

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


