// Path: app/src/main/java/com/leavjenn/hews/data/local/table/CommentTable.java
// public class CommentTable {
//     public static final String TABLE = "comment";
//     public static final String COLUMN_COMMENT_ID = "comment_id";
//     public static final String COLUMN_INDEX = "_index";
//     public static final String COLUMN_PARENT = "parent";
//     public static final String COLUMN_LEVEL = "level";
//     public static final String COLUMN_BY = "by";
//     public static final String COLUMN_DELETED = "deleted";
//     public static final String COLUMN_KIDS = "kids";
//     public static final String COLUMN_TIME = "time";
//     public static final String COLUMN_TEXT = "text";
// 
// 
//     public static String getCreateTableQuery() {
//         return "CREATE TABLE " + TABLE + "("
//             + COLUMN_COMMENT_ID + " INTEGER NOT NULL PRIMARY KEY, "
//             + COLUMN_INDEX + " INTEGER NOT NULL, "
//             + COLUMN_PARENT + " INTEGER NOT NULL, "
//             + COLUMN_LEVEL + " INTEGER, "
//             + COLUMN_BY + " TEXT, "
//             + COLUMN_DELETED + " TEXT, "
//             + COLUMN_KIDS + " TEXT, "
//             + COLUMN_TIME + " TEXT, "
//             + COLUMN_TEXT + " TEXT"
//             + ");";
//     }
// }


import com.google.gson.annotations.SerializedName;
import com.leavjenn.hews.data.local.table.CommentTable;
import com.pushtorefresh.storio.sqlite.annotations.StorIOSQLiteColumn;
import com.pushtorefresh.storio.sqlite.annotations.StorIOSQLiteType;
import org.parceler.Parcel;
import java.util.ArrayList;
package com.leavjenn.hews.model;




@Parcel
@StorIOSQLiteType(table = "comment")
public class Comment extends HNItem {

    @StorIOSQLiteColumn(name = CommentTable.COLUMN_COMMENT_ID, key = true)
    @SerializedName("id")
    long commentId;

    @StorIOSQLiteColumn(name = CommentTable.COLUMN_INDEX)
    int _index;

    @StorIOSQLiteColumn(name = CommentTable.COLUMN_BY)
    String by;

    @StorIOSQLiteColumn(name = CommentTable.COLUMN_DELETED)
    boolean deleted;

    @StorIOSQLiteColumn(name = CommentTable.COLUMN_PARENT)
    long parent;

    ArrayList<Long> kids;

// Path: app/src/main/java/com/leavjenn/hews/data/local/table/CommentTable.java
// public class CommentTable {
//     public static final String TABLE = "comment";
//     public static final String COLUMN_COMMENT_ID = "comment_id";
//     public static final String COLUMN_INDEX = "_index";
//     public static final String COLUMN_PARENT = "parent";
//     public static final String COLUMN_LEVEL = "level";
//     public static final String COLUMN_BY = "by";
//     public static final String COLUMN_DELETED = "deleted";
//     public static final String COLUMN_KIDS = "kids";
//     public static final String COLUMN_TIME = "time";
//     public static final String COLUMN_TEXT = "text";
// 
// 
//     public static String getCreateTableQuery() {
//         return "CREATE TABLE " + TABLE + "("
//             + COLUMN_COMMENT_ID + " INTEGER NOT NULL PRIMARY KEY, "
//             + COLUMN_INDEX + " INTEGER NOT NULL, "
//             + COLUMN_PARENT + " INTEGER NOT NULL, "
//             + COLUMN_LEVEL + " INTEGER, "
//             + COLUMN_BY + " TEXT, "
//             + COLUMN_DELETED + " TEXT, "
//             + COLUMN_KIDS + " TEXT, "
//             + COLUMN_TIME + " TEXT, "
//             + COLUMN_TEXT + " TEXT"
//             + ");";
//     }
// }


// Path: app/src/main/java/com/leavjenn/hews/model/Comment.java
import com.google.gson.annotations.SerializedName;
import com.leavjenn.hews.data.local.table.CommentTable;
import com.pushtorefresh.storio.sqlite.annotations.StorIOSQLiteColumn;
import com.pushtorefresh.storio.sqlite.annotations.StorIOSQLiteType;
import org.parceler.Parcel;
import java.util.ArrayList;

package com.leavjenn.hews.model;




@Parcel
@StorIOSQLiteType(table = "comment")
public class Comment extends HNItem {

    @StorIOSQLiteColumn(name = CommentTable.COLUMN_COMMENT_ID, key = true)
    @SerializedName("id")
    long commentId;

    @StorIOSQLiteColumn(name = CommentTable.COLUMN_INDEX)
    int _index;

    @StorIOSQLiteColumn(name = CommentTable.COLUMN_BY)
    String by;

    @StorIOSQLiteColumn(name = CommentTable.COLUMN_DELETED)
    boolean deleted;

    @StorIOSQLiteColumn(name = CommentTable.COLUMN_PARENT)
    long parent;

    ArrayList<Long> kids;

    @StorIOSQLiteColumn(name = CommentTable.COLUMN_TIME)