more changes
This commit is contained in:
parent
beaf92f7c4
commit
a3a4af7965
18 changed files with 165 additions and 24 deletions
18
lib/ezcontainer_railway/projects/project.ex
Normal file
18
lib/ezcontainer_railway/projects/project.ex
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue