| package com.example.myproject.entity; |
| |
| import com.baomidou.mybatisplus.annotation.IdType; |
| import com.baomidou.mybatisplus.annotation.TableId; |
| import com.baomidou.mybatisplus.annotation.TableName; |
| import lombok.Data; |
| |
| import java.time.LocalDateTime; |
| import java.util.List; |
| |
| @Data |
| @TableName("promotion") |
| public class Promotion { |
| @TableId(type = IdType.AUTO) |
| private Long id; |
| |
| private String name; |
| |
| private String description; |
| |
| private LocalDateTime startTime; |
| |
| private LocalDateTime endTime; |
| |
| private double discountPercentage; |
| |
| private String applicableTorrentIds; |
| |
| private LocalDateTime createTime; |
| |
| private LocalDateTime updateTime; |
| |
| private Boolean isDeleted; |
| } |