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