Skip to main content

finance

-- -- Table structure for table tbl_withdrawal_request​

CREATE TABLE tbl_withdrawal_request ( id int(11) NOT NULL, user_id int(11) NOT NULL, amount int(11) NOT NULL, payment_type varchar(255) NOT NULL, payment_detail text NOT NULL, status int(11) NOT NULL DEFAULT 0 COMMENT '0 - Pending, 1- Completed', created_at timestamp NOT NULL DEFAULT current_timestamp(), updated_at timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--

Transactions​

--
-- Table structure for table `tbl_transaction`
--

CREATE TABLE `tbl_transaction` (
`id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`package_id` int(11) NOT NULL,
`transaction_id` varchar(255) NOT NULL,
`price` varchar(255) NOT NULL,
`description` text NOT NULL,
`expiry_date` varchar(255) NOT NULL,
`status` int(11) NOT NULL DEFAULT 1,
`created_at` timestamp NOT NULL DEFAULT current_timestamp(),
`updated_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Table structure for table `tbl_transaction`
--

CREATE TABLE `tbl_transaction` (
`id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`package_id` int(11) NOT NULL,
`transaction_id` varchar(255) NOT NULL,
`price` varchar(255) NOT NULL,
`description` text NOT NULL,
`expiry_date` varchar(255) NOT NULL,
`status` int(11) NOT NULL DEFAULT 1,
`created_at` timestamp NOT NULL DEFAULT current_timestamp(),
`updated_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;