Created
December 27, 2015 12:23
-
-
Save yishai-glide/d3c01cc49d2b4745dede to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// create CUSTOMER table | |
db.execSQL("CREATE TABLE \"CUSTOMER\" (" + // | |
"\"_id\" INTEGER PRIMARY KEY ," + // 0: id | |
"\"NAME\" TEXT NOT NULL );"); // 1: name | |
// create NOTE table | |
db.execSQL("CREATE TABLE \"NOTE\" (" + // | |
"\"_id\" INTEGER PRIMARY KEY ," + // 0: id | |
"\"TEXT\" TEXT NOT NULL ," + // 1: text | |
"\"COMMENT\" TEXT," + // 2: comment | |
"\"DATE\" INTEGER);"); // 3: date | |
// create ORDERS table | |
db.execSQL("CREATE TABLE \"ORDERS\" (" + // | |
"\"_id\" INTEGER PRIMARY KEY ," + // 0: id | |
"\"DATE\" INTEGER," + // 1: date | |
"\"CUSTOMER_ID\" INTEGER NOT NULL );"); // 2: customerId |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment