defmodule GitGud.Repositories.GitCommit do
use Ecto.Schema
alias GitGud.Repositories.Repository
@primary_key false
schema "git_commits" do
field :sha, :binary, primary_key: true
field :tree_sha, :binary
field :parent_shas, {:array, :binary}, default: []
field :author_name, :string
field :author_email, :string
field :authored_at, :utc_datetime
field :committer_name, :string
field :committer_email, :string
field :committed_at, :utc_datetime
field :message, :string
field :generation, :integer
field :inserted_at, :utc_datetime
belongs_to :repository, Repository, primary_key: true
end
end
656 B · text
5af55d9