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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$2JliebWy4Ww6cEpjsfzDg7iyxEP9yhfwH6C.U33802cXlkxP0tYz4','user','ak_b3bd72c8abb12211','2023-04-21 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$SbwaX5TRJAUD17mAoATspB/Vpx53FS9a9GPkOvPgmxIi6P6gW1NC1','admin','ak_dc49af1892a7ccdc','2023-02-06 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$.6bIgcqgtS4d0OwMEe6iqo63MdP6AlZtdyGCwJdBQB1PkwIFpw1Fp','user','ak_1cdf534a38dbc11d','2023-08-12 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$.m.ZT7NJTi2iMRxkjd5vqsi8yJw0OjnTtPxsx97j9nhm11NZ7QQCD','user','ak_f7f25214745947fc','2023-01-08 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$4yKdBs0LJqhAMOHgSZxImNyNTVBjEUVFjNehNxPZLHo.a0gv5cGcf','admin','ak_2a9749d2bcbbf848','2023-04-04 10:11: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=10758;

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

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


