Task #24
openCreate Advertisement
0%
Description
Implement an advertisement management module under the Admin Panel. Admin users should be able to create, upload, active, and deactivate advertisements.
Advertisements can be image-based or video-based and will be displayed in the application based on active status.
***advertisements_table
id (PK) – Unique identifier for each advertisement
media_type – Type of media (image / video)
media_url – Path or URL of the uploaded image or video
is_active – Status to enable or disable the advertisement
created_at – Date and time when the advertisement was created
**Validations
*media_type is mandatory and must be either image or video.
*media_url is mandatory and must be a valid file URL/path.
*If media_type = image, allowed formats are jpg, jpeg, png.
*If media_type = video, allowed formats are mp4, mov (as per project requirement).
*Maximum file size limits should be enforced (separate limits for image and video if required).
*is_active can only be updated by admin users.
*Only one or multiple advertisements can be active at a time based on business rules.
*created_at is auto-generated and cannot be edited manually.