# collab: Decouple session principal from \`User\` database model \(\#55440\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/90b3ef0c65b454b202c7bee6fb01afccb7131af2)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 90b3ef0c65b454b202c7bee6fb01afccb7131af2

Requested commit: 90b3ef0c65b454b202c7bee6fb01afccb7131af2

Commit: 90b3ef0c65b454b202c7bee6fb01afccb7131af2

Tree: e3b8bff564ba5fc1c25fabfc14aaf9a036377f3a

Author: Marshall Bowers

Committer: GitHub

## Message

```
collab: Decouple session principal from `User` database model (#55440)

This PR decouples the session principal in Collab from the `User`
database model.

We have introduced a new `User` domain entity that we use for the
principal. Currently we just construct it from the database model, but
this separation will make it easier to remove reliance on reading the
database directly soon.

Release Notes:

- N/A
```

## Parents

- [0152d12505f3a18cf64614b01a97f0fbd2c7247e](https://git.cafe/gitcafe/zed/commit/0152d12505f3a18cf64614b01a97f0fbd2c7247e?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/90b3ef0c65b454b202c7bee6fb01afccb7131af2?format=markdown)
