Skip to content

Instantly share code, notes, and snippets.

@erangaeb
Created August 29, 2015 17:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erangaeb/1f5123285d6bcaf9dc28 to your computer and use it in GitHub Desktop.
Save erangaeb/1f5123285d6bcaf9dc28 to your computer and use it in GitHub Desktop.
package com.score.myexp.db;
import android.provider.BaseColumns;
/**
* Define Database schemas here(Keep database table attributes)
*
* @author eranga herath(erangaeb@gmail.com)
*/
public class ExpenseDbContract {
/* Inner class that defines Expense table contents */
public static abstract class Expense implements BaseColumns {
public static final String TABLE_NAME = "expense";
public static final String COLUMN_NAME_NAME = "name";
public static final String COLUMN_NAME_AMOUNT = "amount";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment