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? -- date?
local Favorite_tracks = Model:extend("favorite_trackss", { local Favorite_tracks = Model:extend("favorite_tracks", {
relations = { relations = {
{"user", belongs_to = "Users"}, {"user", belongs_to = "Users"},
{"track", has_one = "Tracks"} {"track", has_one = "Tracks"}

View File

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

View File

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