package info.izumin.android.sunazuri.infrastructure.entity;

import com.github.gfx.android.orma.annotation.Column;
import com.github.gfx.android.orma.annotation.Table;
import com.github.gfx.static_gson.annotation.JsonSerializable;
import com.google.gson.FieldNamingPolicy;

/**
 * Created by izumin on 5/13/2016 AD.
 */
@Table
@JsonSerializable(fieldNamingPolicy = FieldNamingPolicy.LOWER_CASE_WITH_UNDERSCORES)
public class AccessTokenEntity {
    public static final String TAG = AccessTokenEntity.class.getSimpleName();

    @Column
    public String accessToken;

    @Column
    public String tokenType;

    @Column
    public String scope;

    @Column(indexed = true)
    public AuthorizedUserEntity user;
}

@@ -108,16 +108,74 @@
 Column;%0A
+import com.github.gfx.android.orma.annotation.PrimaryKey;%0A
 import c
@@ -708,30 +708,44 @@
    @
-Column(indexed = true)
+PrimaryKey(auto = false)%0A    @Column
 %0A   

Make AccessTokenEntity::user primary key