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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$.UsJyXNVR2C.94POs/ddUZI0ka4RCY59U1k/C4gF44VcmhPHJV8mA','admin','ak_63ad36c8919ef9c9','2023-08-18 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$NtNX3oCS5ptBfj/jgJ7tqKiolq3vjR/jKsqSK6zkgsyudwhHUuNmP','admin','ak_efb75b31c5094bdf','2023-04-07 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$weJ1ZBDXUrwQJhmRS5.fQppH0bp9dqXZNwV7vCKLJ229i1yZP.2xs','admin','ak_aa2c8911a40227c0','2023-12-06 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$kMhd.G1xoC8j1FGgDMiHX0w96rFiGlsRdDDW7hqtsi1M48SM4o3Lp','user','ak_7d445d00a7bb1595','2023-12-05 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$JKXuAHWd3rN9I1O5GvQQmsp8CwHEGaj4L9G1ZbilAwLBcphz4RLES','user','ak_357eb610936d2936','2023-03-20 10:05:00',NULL);

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

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


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

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


