import { Entity, String } from '../../../core/schemas'

const User = {
  collectionName: 'Users',
  name: 'User',
  schema: Entity.schema.keys({
    name: String.schema,
    state: String.schema.valid('disabled', 'pending', 'valid').required(),
    uid: String.schema
  })
}

export default User
