acc

Models is related with account management

clink.model.acc.confirm_code = {'type': 'string', 'pattern': '^([a-zA-Z]{4}-){3}[a-zA-Z]{4}$'}
clink.model.acc.get_me_body = {'type': 'object', 'required': ['_id', 'name', 'email', 'phone', 'created_date', 'modified_date', 'last_action'], 'properties': {'_id': {'type': 'string', 'pattern': '^[a-fA-F0-9]{24}$'}, 'last_action': {'type': 'string'}, 'created_date': {'type': 'number'}, 'modified_date': {'type': 'number'}, 'phone': {'type': ['string', 'null'], 'pattern': '^\\+[0-9]{2}\\s[0-9]{3}\\s([0-9]{3}|[0-9]{4})\\s[0-9]{4}$'}, 'name': {'type': 'string', 'pattern': '^[a-z0-9-]{2,32}$'}, 'email': {'type': 'string', 'pattern': '^[a-zA-Z0-9-._]{1,64}\\@[a-zA-Z0-9\\[]{1}[a-zA-Z0-9.-:]{1,61}[a-zA-Z0-9\\]]{1}$'}}}
clink.model.acc.post_reg_code_body = {'type': 'object', 'required': ['name', 'email', 'pwd'], 'properties': {'phone': {'type': ['string', 'null'], 'pattern': '^\\+[0-9]{2}\\s[0-9]{3}\\s([0-9]{3}|[0-9]{4})\\s[0-9]{4}$'}, 'pwd': {'type': 'string', 'pattern': '^.{6,32}$'}, 'name': {'type': 'string', 'pattern': '^[a-z0-9-]{2,32}$'}, 'email': {'type': 'string', 'pattern': '^[a-zA-Z0-9-._]{1,64}\\@[a-zA-Z0-9\\[]{1}[a-zA-Z0-9.-:]{1,61}[a-zA-Z0-9\\]]{1}$'}}}
clink.model.acc.post_reg = {'type': 'object', 'required': ['code'], 'properties': {'code': {'type': 'string', 'pattern': '^([a-zA-Z]{4}-){3}[a-zA-Z]{4}$'}}}
clink.model.acc.put_pwd = {'type': 'object', 'required': ['old_pwd', 'new_pwd'], 'properties': {'old_pwd': {'type': 'string', 'pattern': '^.{6,32}$'}, 'new_pwd': {'type': 'string', 'pattern': '^.{6,32}$'}}}
clink.model.acc.post_rpwd_code = {'type': 'object', 'required': ['email'], 'properties': {'email': {'type': 'string', 'pattern': '^[a-zA-Z0-9-._]{1,64}\\@[a-zA-Z0-9\\[]{1}[a-zA-Z0-9.-:]{1,61}[a-zA-Z0-9\\]]{1}$'}}}
clink.model.acc.post_rpwd = {'type': 'object', 'required': ['code', 'new_pwd'], 'properties': {'new_pwd': {'type': 'string', 'pattern': '^.{6,32}$'}, 'code': {'type': 'string', 'pattern': '^([a-zA-Z]{4}-){3}[a-zA-Z]{4}$'}}}