You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/constants/Config.ts
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
importSQLitefrom'react-native-sqlite-storage';
2
2
3
-
constDB_NAME='MyTSC.db';
3
+
constDB_NAME: string='MyTSC.db';
4
4
5
-
constscripts=[
5
+
constscripts: string[]=[
6
6
'CREATE TABLE IF NOT EXISTS active_user (userId INTEGER, name VARCHAR, mobile INTEGER, role VARCHAR, username VARCHAR)',
7
7
'CREATE TABLE IF NOT EXISTS users (userId INTEGER PRIMARY KEY AUTOINCREMENT, name VARCHAR, mobile INTEGER, role VARCHAR, username VARCHAR, password VARCHAR)',
8
8
'CREATE TABLE IF NOT EXISTS todos (id INTEGER PRIMARY KEY AUTOINCREMENT,userId INTEGER, title VARCHAR, is_completed BOOLEAN, FOREIGN KEY(userId) REFERENCES users(userId))',
0 commit comments