# Data Model: 063 — Entra Sign-in

This feature reuses the existing `users` table and does not introduce new tables.

## `users` table

The following columns are used for Entra ID integration. The spec confirms these columns and their types are authoritative for v1 and should not be changed.

- `entra_tenant_id`
  - **Type**: `varchar(255)`
  - **Nullable**: Yes
  - **Description**: Stores the Entra ID tenant identifier (`tid` claim).

- `entra_object_id`
  - **Type**: `varchar(255)`
  - **Nullable**: Yes
  - **Description**: Stores the Entra ID user object identifier (`oid` claim).

### Indexes

A unique composite index on `(entra_tenant_id, entra_object_id)` already exists and will be used to enforce uniqueness for user upserts.
