# users_view

0 rows

### Columns

Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments
--- | --- | --- | --- | --- | --- | --- | --- | ---

email

text

2147483647

√

null

users .email | Implied ConstraintR

valid

bool

1

√

null

role

text

2147483647

√

null

user_roles .role | Implied ConstraintR

first_access

timestamptz

35,6

√

null

last_access

timestamptz

35,6

√

null

countries

_text

2147483647

√

null

### Relationships

### View Definition

SELECT u.email, u.valid, u.role, u.first_access, u.last_access, array_remove(array_agg(uc.country), NULL::text) AS countries FROM (users u LEFT JOIN user_countries uc ON ((u.email = uc.email))) GROUP BY u.email, u.valid, u.role, u.first_access, u.last_access ORDER BY u.email;

### Possibly Referenced Tables/Views

- countries
- users
- user_countries