// Path: app/src/main/java/com/turo/ktalk/model/dao/UserAccountTable.java
// public class UserAccountTable {
//     public static final String TAB_NAME = "tab_account";
//     public static final String COL_NAME = "name";
//     public static final String COL_HXID = "hxid";
//     public static final String COL_NICK = "nick";
//     public static final String COL_PHOTO = "photo";
// 
//     public static final String CREATE_TAB = "create table "
//             + TAB_NAME + " ("
//             + COL_HXID + " text primary key,"
//             + COL_NAME + " text,"
//             + COL_NICK + " text,"
//             + COL_PHOTO + " text);";
// 
//     //    create table ( hxid text primary key, name text, nick text, photo text);
// }


import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import com.turo.ktalk.model.dao.UserAccountTable;
package com.turo.ktalk.model.db;



/**
 * Created by YQ950209 on 2017/4/23.
 */

public class UserAccountDB extends SQLiteOpenHelper {

    //构造
    public UserAccountDB(Context context) {
        super(context, "account.db", null, 1);
    }

    //数据库创建得时候调用
    @Override
    public void onCreate(SQLiteDatabase db) {
        //创建数据库表的语句
// Path: app/src/main/java/com/turo/ktalk/model/dao/UserAccountTable.java
// public class UserAccountTable {
//     public static final String TAB_NAME = "tab_account";
//     public static final String COL_NAME = "name";
//     public static final String COL_HXID = "hxid";
//     public static final String COL_NICK = "nick";
//     public static final String COL_PHOTO = "photo";
// 
//     public static final String CREATE_TAB = "create table "
//             + TAB_NAME + " ("
//             + COL_HXID + " text primary key,"
//             + COL_NAME + " text,"
//             + COL_NICK + " text,"
//             + COL_PHOTO + " text);";
// 
//     //    create table ( hxid text primary key, name text, nick text, photo text);
// }


// Path: app/src/main/java/com/turo/ktalk/model/db/UserAccountDB.java
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import com.turo.ktalk.model.dao.UserAccountTable;

package com.turo.ktalk.model.db;



/**
 * Created by YQ950209 on 2017/4/23.
 */

public class UserAccountDB extends SQLiteOpenHelper {

    //构造
    public UserAccountDB(Context context) {
        super(context, "account.db", null, 1);
    }

    //数据库创建得时候调用
    @Override
    public void onCreate(SQLiteDatabase db) {
        //创建数据库表的语句
        db.execSQL(UserAccountTable.CREATE_TAB);