maintenance
This commit is contained in:
parent
7c12c60bdf
commit
d518372428
@ -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"}
|
||||
|
||||
@ -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},
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user