Autogen calendars

This commit is contained in:
2023-06-07 18:21:33 +03:00
parent f3df9e9ec3
commit e911217a83
13 changed files with 550 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
defmodule Osuuspuutarha.Repo.Migrations.CreateCalendars do
use Ecto.Migration
def change do
create table(:calendars) do
add :pickup_date, :date
add :is_picked_up, :boolean, default: false, null: false
add :order_id, references(:orders, on_delete: :nothing)
timestamps()
end
create index(:calendars, [:order_id])
end
end