﻿# `crew_accounts`

**Module:** Authentication

---

## Purpose

Extended profile for Event Crew users. Each crew member has a desk label and active status within their workspace.

---

## Columns (Summary)

| Column | Notes |
|--------|-------|
| `id BIGINT UNSIGNED AUTO_INCREMENT PK` | — |
| `workspace_id BIGINT UNSIGNED NOT NULL FK→workspaces` | — |
| `user_id BIGINT UNSIGNED NOT NULL FK→users` | — |
| `display_name VARCHAR(100) NOT NULL` | — |
| `desk_label VARCHAR(50) NULL` | — |
| `is_active TINYINT(1) DEFAULT 1` | — |
| `created_at DATETIME DEFAULT CURRENT_TIMESTAMP` | — |
| `deactivated_at DATETIME NULL` | — |

---

## Referenced By

None

---

## Notes

See `docs/database/RELATIONSHIP.md` for full entity relationships and `database/schema.sql` for authoritative DDL.
