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


--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `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=33069;

--
-- Dumping data for table `audit_log`
--


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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$H7ewGT9e3kvHsYoLSziY5joq4X611s9NKFogbfLA.Aon.DP0c/cfE','user','ak_80755c9109a77258','2023-06-19 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$y8zO/XmEwkuJ/cBJ6R8FcBoKipRR6iK8e8c8L4aRdLQzmkdM8HnYc','user','ak_6d31d3a07c374a41','2023-01-10 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$/8kAaP.B4V/nvrIiR0xwOXIiFG5lNHYRSOGHdmGT6hgSU32xW.1jc','user','ak_1cc073772125db4e','2023-08-16 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$neSMSpMZyWmzoyFFSFCkENIkhHSfDZlkK0cIycmZym00Y.IzPre3I','user','ak_ec12fdb02c9ea698','2023-12-19 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$werOqIqStkibF35x.X/iBSBSv4gB2G0/xkXUMvgA0yymJj98jTDZI','user','ak_869771832f622fdb','2023-09-10 10:12:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@internal.io','$2b$12$oXeMWYwnWtW73oH6SCcX9YxeN9qpsYWN2xFIMEEtPVHKlbsQ28tEs','user','ak_636ddf2fbb3d06d1','2023-02-16 10:10:00',NULL);

