initial book review schema
This commit is contained in:
parent
e218290e08
commit
90414e6b93
15 changed files with 653 additions and 0 deletions
15
priv/repo/migrations/20250109091315_create_authors.exs
Normal file
15
priv/repo/migrations/20250109091315_create_authors.exs
Normal file
|
@ -0,0 +1,15 @@
|
|||
defmodule Wild.Repo.Migrations.CreateAuthors do
|
||||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
create table(:authors) do
|
||||
add :name, :string
|
||||
add :country, :string
|
||||
add :bio, :string
|
||||
add :year_born, :string
|
||||
add :year_died, :string
|
||||
|
||||
timestamps(type: :utc_datetime)
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue