package kz.cafe.db.model;

import org.bson.types.*;
import com.google.code.morphia.annotations.*;



@Entity(value = "CounterModel", noClassnameStored = true)
public class MCounterModel{
   
   public static final String NEXT  = "nextFreeID";
   public static final String CLASS = "clas";
   
   @Id
   public ObjectId _id; // auto-generated, if not set (see ObjectId)

   @Version
   public long _version;

   @Indexed(unique = true)
   public String clas;


   public int nextFreeID = 0;


   public MCounterModel(){
   }


   public MCounterModel(String clas){
      this.clas = clas;
   }
}
