# `Lightning.Projects.File`
[🔗](https://github.com/OpenFn/lightning/blob/main/lib/lightning/projects/file.ex#L1)

The project files module

# `t`

```elixir
@type t() :: %Lightning.Projects.File{
  __meta__: Ecto.Schema.Metadata.t(),
  created_by: Lightning.Accounts.User.t(),
  created_by_id: term(),
  id: Ecto.UUID.t() | nil,
  inserted_at: term(),
  path: String.t(),
  project: Lightning.Projects.Project.t(),
  project_id: term(),
  size: term(),
  status: atom(),
  type: atom(),
  updated_at: term()
}
```

# `mark_failed`

```elixir
@spec mark_failed(t()) :: Ecto.Changeset.t()
```

# `new`

```elixir
@spec new(%{required(atom()) =&gt; any()}) :: Ecto.Changeset.t()
```

Creates a new file changeset.

Unlike regular changeset functions, this expects atom keys and the project
and user to be passed in as models.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
