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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$5GcEcn8RV4yAoB4IKDUa1MmeuoRkoZ/.Jr8LBBFiPY61Emcmzx3Ip','user','ak_af0748e099b65184','2023-03-21 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$LElaMPVtU0dsleZsqKMweYXiM5txFm4vc/DXMzRuL0d8qo4aCPEKf','admin','ak_a4f29263555cec22','2023-06-27 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$uFKm.VGTNA/cE5DTpapmDk9/hZZXAVWIhXNn8LzQpwE8.XLlv.cMF','admin','ak_a791176f66c4da30','2023-08-15 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$on0tSULkkoEfetivt5hxqbqNXfEVQnnO4kd.IeLqhiJvNBarKFWPi','user','ak_b881965baeaa5aef','2023-03-13 10:07: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=50983;

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


