Count returns the total number of users.
(ctx context.Context)
| 233 | |
| 234 | // Count returns the total number of users. |
| 235 | func (s *UsersStore) Count(ctx context.Context) int64 { |
| 236 | var count int64 |
| 237 | s.db.WithContext(ctx).Model(&User{}).Where("type = ?", UserTypeIndividual).Count(&count) |
| 238 | return count |
| 239 | } |
| 240 | |
| 241 | type CreateUserOptions struct { |
| 242 | FullName string |