dt0/migrations.moon

16 lines
397 B
Plaintext
Raw Normal View History

2018-09-09 23:29:56 +00:00
import create_table, types from require "lapis.db.schema"
{
[1535648305]: =>
create_table "sessions", {
{"id", types.varchar primary_key: true, unique: true}
{"started_at", types.double}
{"updated_at", types.double}
}
create_table "deltas", {
{"session_id", types.varchar primary_key: true}
{"type", types.varchar}
{"time", types.double}
}
}