package kz.cafe.db.model;

import java.util.*;
import kz.cafe.constants.*;
import kz.cafe.constants.InterfaceConstants.LANGS;
import kz.cafe.db.model.anotations.*;
import com.google.code.morphia.annotations.*;


@Entity(value="Feedback", noClassnameStored=true, concern = "SAFE")
@Indexes({@Index(unique = false, value = "CID, rate"),
          @Index(unique = false, value = "text_.RU"),
          @Index(unique = false, value = "text_.EN"),
          @Index(unique = false, value = "text_.KZ")})
public class MFeedback extends MAbstractEditableDataElement{
   private static final long serialVersionUID = 8699383153836817922L;

   @AnnotationNotExported
   public static final String F_CID  = "CID";
   
   @AnnotationNotExported
   public static final String F_RATE = "rate";
   
   
   @Indexed()
   @AnnotationRelated(foreign = MCafe.class)
   public int CID;
   
   public int rate;
   
   
   @Indexed()
   @AnnotationRelated(foreign = MUser.class)
   @AnnotationExport(foreign = MUser.class, column = "login, name", local_prefix="author_")
   public int UID;
   

   
   @AnnotationMultiLangString
   @AnnotationNoExportIndex
   public Map<InterfaceConstants.LANGS, String> title = new HashMap<LANGS, String>();
   
   @AnnotationMultiLangString
   @AnnotationNotExported
   public Map<InterfaceConstants.LANGS, String> title_ = new HashMap<LANGS, String>();
   
   
   
   
   @AnnotationMultiLangString
   @AnnotationNoExportIndex
   public Map<InterfaceConstants.LANGS, String> text = new HashMap<LANGS, String>();
   
   @AnnotationMultiLangString
   @AnnotationNotExported
   public Map<InterfaceConstants.LANGS, String> text_ = new HashMap<LANGS, String>();
}
