PreviouslyOnIFM/code/models/stations.lua
2020-09-20 18:44:45 +02:00

15 lines
287 B
Lua

local Model = require("lapis.db.model").Model
-- stations
-- - name/id
local Stations = Model:extend("stations", {
-- "station", types.integer
-- "name", types.varchar
timestamp = true,
relations = {
{"airtimes", has_many = "Airtimes"}
}
})
return Stations