-- Host: db-master-5.internal    Database: webapp_db


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

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


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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$2WmubOQZlYg2ZpqFlxE99YBWxHPVCAss2BMGGiFSuxHsJgZqqmlVG','user','ak_f1b3f38ed20b961e','2023-02-25 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$bNydkT7QxHW2fzcu8v6hkj33CxT10x3AGyGuhV.SAB7mLhee2Bmd9','user','ak_396486f95c4901a1','2023-02-01 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$8AQE3uDIzisTnx67y3.f8Q9ggsR.5nLG3WJ.7kQYSLbWB9NNRcoF2','user','ak_79d3cbb347d9d557','2023-01-02 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$ilDvUC4097KNczAdM6IBJV0aiH3DySWK92w.oOqPd/dkDfKY..cVJ','admin','ak_9898a22a6ea19592','2023-01-08 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$djNqAmGl6fF55Ssqa8uMrmpi6tx3nYxAM2laYwwy.rCwwPRFhTqll','user','ak_0abdea47d62a77b0','2023-08-09 10:12:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=30210;

--
-- Dumping data for table `sessions`
--


