# party.whey.files.file

> A file. Its parent is the drive meta record or a directory.

- Kind: record
- Record key: tid
- Authority: files.whey.party
- Lexicon: 1
- Published by [whey.party](https://lexicon.garden/identity/did:plc:mn45tewwnse5btfftvd3powc), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:mn45tewwnse5btfftvd3powc/party.whey.files.file)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:mn45tewwnse5btfftvd3powc/party.whey.files.file/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:mn45tewwnse5btfftvd3powc/party.whey.files.file/analytics)

## Record (`party.whey.files.file`)

Type: record · key tid

### Properties

- `createdAt` (string · datetime, required)
- `file` (ref, required)
  - Reference: `party.whey.files.defs#file`
- `name` (string, required)
  - Constraints: minLength: 1, maxLength: 255
- `parent` (ref, required)
  - Reference: `party.whey.files.defs#parent`
- `posix` (ref, required)
  - Reference: `party.whey.files.defs#posix`
- `trashedAt` (string · datetime): When set, this file is hidden from listings and can be restored.
- `trashedFrom` (ref)
  - Reference: `party.whey.files.defs#trashedFrom`
- `updatedAt` (string · datetime)

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A file. Its parent is the drive meta record or a directory.",
      "key": "tid",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "file": {
            "ref": "party.whey.files.defs#file",
            "type": "ref"
          },
          "name": {
            "maxLength": 255,
            "minLength": 1,
            "type": "string"
          },
          "parent": {
            "ref": "party.whey.files.defs#parent",
            "type": "ref"
          },
          "posix": {
            "ref": "party.whey.files.defs#posix",
            "type": "ref"
          },
          "trashedAt": {
            "description": "When set, this file is hidden from listings and can be restored.",
            "format": "datetime",
            "type": "string"
          },
          "trashedFrom": {
            "ref": "party.whey.files.defs#trashedFrom",
            "type": "ref"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "parent",
          "name",
          "posix",
          "file",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "party.whey.files.file",
  "lexicon": 1
}
```
