Nuevos cambios hechos de diseño

This commit is contained in:
ellecio2
2023-08-23 17:33:44 -04:00
parent 7a806f84ff
commit d2e9ba53ab
3485 changed files with 691106 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
CREATE TABLE `affiliate_logs` (
`id` int(11) NOT NULL,
`user_id` int(11) DEFAULT NULL,
`guest_id` int(11) DEFAULT NULL,
`referred_by_user` int(11) NOT NULL,
`amount` double(20,2) NOT NULL,
`order_id` bigint(20) DEFAULT NULL,
`order_detail_id` bigint(20) DEFAULT NULL,
`affiliate_type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`status` tinyint(4) NOT NULL DEFAULT 0,
`created_at` timestamp NOT NULL DEFAULT current_timestamp(),
`updated_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
ALTER TABLE `affiliate_logs`
ADD PRIMARY KEY (`id`);
ALTER TABLE `affiliate_logs`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
COMMIT;