defmodule Ami.Job do use Ecto.Schema # import Ecto.Query alias Ami.{ Profile } schema "jobs" do field(:role, :string) field(:company_name, :string) field(:company_url, :string) field(:date_start, :date) field(:date_end, :date) field(:company_logo, :string) field(:industry, :string) field(:current, :boolean) field(:description, :string) field(:created_at, :utc_datetime) field(:updated_at, :utc_datetime) belongs_to(:profile, Profile) end end