package anabalica.github.io.meowletters.storage;

import android.provider.BaseColumns;

/**
 * Contract class for the table of highscores. 
 *
 * @author Ana Balica
 */
public final class HighscoresContract {
    public HighscoresContract() {}

    public static abstract class HighscoreEntry implements BaseColumns {
        public static final String TABLE_NAME = "highscores";
        public static final String COLUMN_NAME_HIGHSCORE_ID = "highscoreid";
        public static final String COLUMN_NAME_USERNAME = "username";
        public static final String COLUMN_NAME_SCORE = "score";
    }
}

@@ -115,17 +115,8 @@
 the 
-table of 
 high
@@ -125,10 +125,18 @@
 ores
-.
  
+database.
 %0A *%0A
@@ -201,16 +201,369 @@
 tract %7B%0A
+    public static final int DATABASE_VERSION = 1;%0A    public static final String DATABASE_NAME = %22highscores.db%22;%0A    private static final String TEXT_TYPE = %22 TEXT%22;%0A    private static final String INTEGER_TYPE = %22 INTEGER%22;%0A    private static final String COMMA_SEP = %22,%22;%0A%0A    // To prevent someone from accidentally instantiating the contract class%0A
     publ
@@ -776,35 +776,28 @@
 AME_
-HIGHSCORE_ID = %22highscoreid
+USERNAME = %22username
 %22;%0A 
@@ -842,39 +842,34 @@
 MN_NAME_
-USERNAME = %22usernam
+SCORE = %22scor
 e%22;%0A
+%0A
         
@@ -899,35 +899,387 @@
 ing 
-COLUMN_NAME_SCORE = %22score%22
+SQL_CREATE_TABLE =%0A                %22CREATE TABLE %22 + HighscoreEntry.TABLE_NAME + %22 (%22 +%0A                _ID + %22 INTEGER PRIMARY KEY AUTOINCREMENT, %22 +%0A                COLUMN_NAME_USERNAME + TEXT_TYPE + COMMA_SEP +%0A                COLUMN_NAME_SCORE + INTEGER_TYPE + %22 );%22;%0A%0A        public static final String SQL_DELETE_TABLE =%0A                %22DROP TABLE IF EXISTS %22 + TABLE_NAME
 ;%0A  

update HighscoresContract class