Project

General

Profile

Actions

Aye Aye Aung #112

open

Buy Election Package By User

Added by Aye Aye Aung 11 months ago. Updated 11 months ago.

Status:
Resolved
Priority:
Normal Priority
Assignee:
Start date:
02/10/2025
Due date:
02/12/2025 (about 11 months late)
% Done:

100%

Estimated time:

Description

To implement a "buy package by user" functionality, you'll need a mechanism to allow users to purchase a pricing package, associate the package with the user, and store the relevant details in the database.
user_packages_tbl
id (BIGINT UNSIGNED)
user_id (BIGINT UNSIGNED) <- foreign key
package_id (BIGINT UNSIGNED) <- foreign key
start_date (TIMESTAMP)
end_date (TIMESTAMP)
status (ENUM('new', 'used'))
created_at (TIMESTAMP)
updated_at (TIMESTAMP)

Actions #1

Updated by Aye Aye Aung 11 months ago

Buy package data explanation:

User 1 (AAA):
Package: Free Package (Package 1)
Start Date: Current timestamp (NOW())
End Date: 1 year from the start date (DATE_ADD(NOW(), get data from setting table))
Status: 'new' (not used yet)

User 2 (BBB):
Package: Standard Package (Package 2)
Start Date: Current timestamp (NOW())
End Date: 1 year from the start date (DATE_ADD(NOW(), get data from setting table))
Status: 'new' (not used yet)

User 3 (CCC):
Package: Premium Package (Package 3)
Start Date: Current timestamp (NOW())
End Date: 1 year from the start date (DATE_ADD(NOW(), get data from setting table))
Status: 'used'

Actions #2

Updated by Aung Tin 11 months ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 10
Actions #3

Updated by Aung Tin 11 months ago

  • % Done changed from 10 to 50
Actions #4

Updated by Aung Tin 11 months ago

  • Status changed from In Progress to Resolved
  • % Done changed from 50 to 100

Remain to update status when use package.

Actions

Also available in: Atom PDF