NEW: Initial task mgmt (#4)
This commit is contained in:
parent
9990771c18
commit
61de82e24e
17 changed files with 261 additions and 104 deletions
15
priv/repo/migrations/20200614031655_initial_tasks.exs
Normal file
15
priv/repo/migrations/20200614031655_initial_tasks.exs
Normal file
|
@ -0,0 +1,15 @@
|
|||
defmodule Planner.Repo.Migrations.InitialTasks do
|
||||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
create table(:tasks, primary_key: false) do
|
||||
add(:id, :binary_id, primary_key: true)
|
||||
add(:value, :text, null: false)
|
||||
add(:filed_at, :naive_datetime)
|
||||
add(:finished_at, :naive_datetime)
|
||||
add(:due_at, :naive_datetime)
|
||||
|
||||
timestamps()
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue