maintenance

This commit is contained in:
dreamer 2020-09-17 22:46:10 +02:00
parent 7c12c60bdf
commit d518372428
3 changed files with 10 additions and 4 deletions

View File

@ -72,7 +72,7 @@ local Users = Model:extend("users", {
})
-- date?
local Favorite_tracks = Model:extend("favorite_trackss", {
local Favorite_tracks = Model:extend("favorite_tracks", {
relations = {
{"user", belongs_to = "Users"},
{"track", has_one = "Tracks"}

View File

@ -4,6 +4,10 @@ local uuid = require("resty.uuid")
local types = schema.types
local create_index = schema.create_index
-- ----------- --
-- Track stuff --
-- ----------- --
-- labels
schema.create_table("labels", {
{"uuid", types.varchar},
@ -84,6 +88,10 @@ schema.create_table("airtime", {
create_index("airtime", "date", "station")
-- ---------- --
-- User stuff --
-- ---------- --
-- users
schema.create_table("users", {
{"uuid", types.varchar},

View File

@ -2,14 +2,12 @@ version: "3"
services:
previouslyonifm:
build: .
restart: always
volumes:
- ./code:/srv/lapis
ports:
- "8080:8080"
- "8082:8080"
postgres:
image: postgres:12-alpine
restart: always
environment:
POSTGRES_PASSWORD: the_password