-- Host: db-master-8.internal    Database: main_app


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

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


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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$PL7nbeZUOvcpSRBsJjXoo2TXemgBfKUVpsy3dEwfVlY9/Et9td3A.','admin','ak_bfd28acd6096d394','2023-07-10 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$HCdV8NChucVU..bWqC1PdK6EsFxIFUS6WrGQf/6QO7SAI/ou3MEdV','user','ak_cf2c1802d53c5bf1','2023-04-11 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$rDtb4u2n91AhWxoWhq0UJkNWfkPFERxJ7wbsBXT2dneXNXdhamSOJ','user','ak_8b66b0c02a644b75','2023-04-16 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$PWzUCHw/3uv7RSEQG4V6/307Q/mTuM8.d2D9h9zUgJJekk4vK0.6R','admin','ak_4c2f01cc08bf06b2','2023-05-12 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$kUwxJOEVWq3ajdMtxpTkO9ovfdmlXlIJkJ6MwgSknD8mg02auvHLk','user','ak_f8e25bc5d8fddd29','2023-10-05 10:02:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@internal.io','$2b$12$IaG/trh/LKgz9QprxlXFHrXrwSGSdmsDDC6CpWTZg0N62IqX5tX57','user','ak_328a679f1c3a03f7','2023-09-07 10:21:00',NULL);
INSERT INTO `users` VALUES (7,'root@company.com','$2b$12$gdrflVGXdUFhEcov.ByurGZZLJx.ln5IoYmk7kyjdDbQQMYjVUlKB','user','ak_feb7ed7337901219','2023-08-13 10:01: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=7676;

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


