Add more documentation
@ -0,0 +1,26 @@
|
||||
# Database documentation
|
||||
|
||||
Database should store everything in 1 db, multiple 2 or 3, because easy.
|
||||
|
||||
## files.db
|
||||
|
||||
### files table
|
||||
|
||||
- **file** as text - contains the filename
|
||||
- **expiry** as int - contains unix time of when the file will be deleted - AS COMPUTED BY ENGINE MODE. (this is kept as is, never changed after initial upload)
|
||||
- **expiry_override** - _can_ contain unixtime of when the file will actaully be deleted, if it's set, this is used for overriding files.
|
||||
- **views** - counts up for each view to the file.
|
||||
- **isDeleted** - simple flag to archive the thing in the DB.
|
||||
- **adminkey** - key for deletion and setting expiry_override
|
||||
- **accessed** - last time the file was accessed
|
||||
- **filesize** - size of the file, in kb or something idk
|
||||
|
||||
### qrscan table
|
||||
|
||||
- **time** as int - when the qr code was scanned
|
||||
- **ip** as text? - who scanned it.
|
||||
- **version** as int - simple int for the version of qrcode, so I can track what edition the qrcodes are. (/qr1/2/3/4/5/6)
|
||||
|
||||
### stats table
|
||||
|
||||
Hopefully we can move away from having a separate stats table, and use metrics generated from the files table instead.
|
After Width: | Height: | Size: 56 KiB |
After Width: | Height: | Size: 395 KiB |
After Width: | Height: | Size: 254 KiB |
After Width: | Height: | Size: 509 KiB |
After Width: | Height: | Size: 616 KiB |
After Width: | Height: | Size: 304 KiB |
After Width: | Height: | Size: 403 KiB |
After Width: | Height: | Size: 359 KiB |
After Width: | Height: | Size: 375 KiB |
After Width: | Height: | Size: 335 KiB |
After Width: | Height: | Size: 391 KiB |
After Width: | Height: | Size: 368 KiB |
After Width: | Height: | Size: 594 KiB |
After Width: | Height: | Size: 281 KiB |
After Width: | Height: | Size: 424 KiB |
After Width: | Height: | Size: 39 KiB |
After Width: | Height: | Size: 243 KiB |
After Width: | Height: | Size: 35 KiB |
After Width: | Height: | Size: 687 B |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 179 KiB |
@ -0,0 +1 @@
|
||||
{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}
|