package com.czg.account.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import java.io.Serial;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 点歌-歌曲表 实体类。
 *
 * @author zs
 * @since 2025-03-01
 */
@Data

@NoArgsConstructor
@AllArgsConstructor
@Table("tb_shop_song")
public class ShopSong implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Id(keyType = KeyType.Auto)
    private Long id;

    /**
     * 店铺id
     */
    private Long shopId;

    /**
     * 歌曲图片
     */
    private String img;

    /**
     * 歌曲名称
     */
    private String name;

    /**
     * 原唱歌手
     */
    private String originSinger;

    /**
     * 演出歌手id
     */
    private Integer singerId;

    /**
     * 演出歌手名称
     */
    private String singer;

    /**
     * 单价
     */
    private BigDecimal price;

    /**
     * 点播次数
     */
    private Integer salesNumber;

    /**
     * 歌曲状态：1-开启；0-关闭
     */
    private Integer status;

    private Integer sort;

    /**
     * 创建时间
     */
    @Column(onInsertValue = "now()")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @Column(onInsertValue = "now()", onUpdateValue = "now()")
    private LocalDateTime updateTime;

}
