more changes

This commit is contained in:
benbot 2023-10-25 04:48:36 -04:00
parent beaf92f7c4
commit a3a4af7965
18 changed files with 165 additions and 24 deletions

View file

@ -0,0 +1,18 @@
defmodule EzcontainerRailway.Project do
use Ecto.Schema
import Ecto.Changeset
schema "projects" do
field :user_id, :string
field :project_id, :string
timestamps(type: :utc_datetime)
end
@doc false
def changeset(projects, attrs) do
projects
|> cast(attrs, [:user_id, :project_id])
|> validate_required([:user_id, :project_id])
end
end