diff --git a/src/sqlite.ts b/src/sqlite.ts index 18410d5c..3cd7db28 100644 --- a/src/sqlite.ts +++ b/src/sqlite.ts @@ -8,7 +8,10 @@ interface Options { export default { install: (app: App, options: Options) => { const client = new SqliteClient(options.file) - client.executeMutation('test', 'CREATE TABLE IF NOT EXISTS test (a, b, c);') + client.executeMutation( + 'users', + 'CREATE TABLE IF NOT EXISTS users (id INT PRIMARY KEY, name VARCHAR, permission VARCHAR);' + ) app.provide('db', client) } } diff --git a/src/views/AppRootView.vue b/src/views/AppRootView.vue index 150918bf..2ede1a02 100644 --- a/src/views/AppRootView.vue +++ b/src/views/AppRootView.vue @@ -1,10 +1,17 @@ diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue index a385782b..04b5bce5 100644 --- a/src/views/HomeView.vue +++ b/src/views/HomeView.vue @@ -1,47 +1,11 @@