16 lines
333 B
Elixir
16 lines
333 B
Elixir
defmodule Memex.Repo.Migrations.CreateNotes do
|
|
use Ecto.Migration
|
|
|
|
def change do
|
|
create table(:notes, primary_key: false) do
|
|
add :id, :binary_id, primary_key: true
|
|
add :title, :string
|
|
add :content, :text
|
|
add :tag, {:array, :string}
|
|
add :visibility, :string
|
|
|
|
timestamps()
|
|
end
|
|
end
|
|
end
|