package com.alterdekim.game.entity;

import com.alterdekim.flash.decompiler.mapper.FlashClass;
import com.alterdekim.flash.decompiler.mapper.FlashField;
import com.alterdekim.flash.decompiler.mapper.FlashValue;
import com.alterdekim.flash.decompiler.mapper.FlashValueType;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import lombok.*;

@ToString
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name="mrids")
@FlashClass(name = "mr")
public class MediaResource {
    @Id
    @FlashValue(type = FlashValueType.Id)
    private Long id;

    @FlashField(name = "TId")
    @Column(nullable = false)
    private Integer tId;

    @FlashField(name = "Url")
    @Column(nullable = false)
    private String url;

    @FlashField(name = "V")
    @Column(nullable = true)
    private String v;
}