implement notes
This commit is contained in:
@ -6,9 +6,11 @@ defmodule Memex.Repo.Migrations.CreateNotes do
|
||||
add :id, :binary_id, primary_key: true
|
||||
add :title, :string
|
||||
add :content, :text
|
||||
add :tag, {:array, :string}
|
||||
add :tags, {:array, :string}
|
||||
add :visibility, :string
|
||||
|
||||
add :user_id, references(:users, on_delete: :delete_all, type: :binary_id)
|
||||
|
||||
timestamps()
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user