From 0d9e48752db39117e62b681b85688a9eac962308 Mon Sep 17 00:00:00 2001 From: Jonathan Date: Sun, 17 Mar 2024 16:54:08 -0500 Subject: [PATCH] initialized database --- app.lua | 3 +++ database.sqlite3 | Bin 0 -> 20480 bytes setup_db | 24 ++++++++++++++++++++++++ 3 files changed, 27 insertions(+) create mode 100644 database.sqlite3 create mode 100755 setup_db diff --git a/app.lua b/app.lua index 4e3bee7..49da45a 100644 --- a/app.lua +++ b/app.lua @@ -6,6 +6,8 @@ local player = require('player') local db = require("lapis.db") local Model = require("lapis.db.model").Model +local db = Model:extend('database') + app:enable("etlua") app.layout = require "views.layout" @@ -58,5 +60,6 @@ return app + diff --git a/database.sqlite3 b/database.sqlite3 new file mode 100644 index 0000000000000000000000000000000000000000..d5c7d8885092a70b7dfb65935ced5151f85890cb GIT binary patch literal 20480 zcmeI#%TB^T6oBE@qNF5Vq6^|~SeQTnH@<*q8bcIBtck3e0z+&9r9d%u32)%j_<9Zv zcVnVk@=s`(>C7SLe8c8EKRtM%6rKLC=Z4}+JJEDqyB0#zG($c6>RF80I`UKZsPDuJ8mDJ9yQg3fdB#sAb*GX zH)Ay<92P8{*z-h|-Jw zSgxw@idD4>>RcEFQrOmOycmpKKlH+A5js228T&0~C_C|?l$o0pjbu8L(We)2swzPh zFgviCB{tGqz5iEY^RQJNKeBxb*7ICq#mUZVSNYcV4$}F&-iWgu4Z5m5c1ChAmVQfa zEsc%5w>GoB+mi(qnVX#J$@JNoK0S|rv*!ltv$qkeUi_=rkL49a%UQqG8V8K>4aw!b~1Q0*~0R#|0 z009ILKmdWc0R2CI1q2X4009ILKmY**5I_I{1a@D5{(txHm