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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$RYeo/9hxYiULTWcRdO86biy3l3CuArMNEA1Nd1ttl.F7DA8TDcG5k','admin','ak_3364c99869e0ef05','2023-08-17 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$rfh2PvrlHTWzJYSzx9a2ujn94dwBfqtgxbttmrBXnF1CWU99Fi51A','user','ak_038eb85dd7e5dd3a','2023-06-22 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$7up5sP3mrgk6gf1IpVsygh5b25.RxMecTk.GcSuWYWfyJjYudw8cY','user','ak_305a957e5a5661e7','2023-07-12 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$pyXqb7usV8TdfKoVrP1Az8ahz43w8TcLQfwZXxNRlms3ZqV2NWbyx','admin','ak_00a49cb79b045f20','2023-01-15 10:04: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=9677;

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


