-- Host: db-master-8.internal    Database: production_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=48196;

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$2Pls09WFTM5raOKTIayXhc9fTF.CK3HnamgpkVgfDbIonzjIvltie','user','ak_5a2af7ac5079e23d','2023-04-27 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$W48E/woY3JEOZWRe3ThBWLSAfGGk//aAD6FjbnyCFIRNi83yMnVf.','user','ak_4c1bca086862eb37','2023-02-17 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$xTA6VefDhn0fRmpF0MRmKkG9ZngRvVFQaNkpUZ6FGebSlrBTx.hyp','admin','ak_3ac7d1cd8ad228cd','2023-04-28 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$zyCB84ooQDq.zGW9HfJnwLWtdtUEvS45DOMiwKPdO0fzTd/iGQIew','admin','ak_37addcbf9e0e4e2c','2023-10-14 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$1F4C2kb9qwSHVHrHLXQ/x8q93igONb3ztNn2nZ1pEQONhqIDcx3hY','user','ak_5dc280f58362eecb','2023-10-17 10:06: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=10213;

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


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=29743;

--
-- Dumping data for table `products`
--


