Skip to content

temp_verify_codes

Column NameTypeCommentDefaultNullRemark
idbigint UNSIGNEDPrimary Key IDNOAuto Increment
template_idtinyint UNSIGNEDTemplate IDNO
typetinyint UNSIGNEDTypeNO1.Email / 2.SMS
accountvarchar(128)AccountNOEmail or phone, phone number with international area code, no plus sign
codevarchar(8)Verification CodeNO
is_enabledtinyint UNSIGNEDIs Valid1NO0.Invalid / 1.Valid
expired_attimestampExpiration TimeNO
created_attimestampCreate TimeuseCurrentNOFor example, MySQL defaults to CURRENT_TIMESTAMP
updated_attimestampUpdate TimeYES
deleted_attimestampDelete TimeYES

template_id

NumberConst NameDescription
1TEMPLATE_GENERALGeneral Verify Code
2TEMPLATE_REGISTER_ACCOUNTRegister New Account
3TEMPLATE_UPDATE_PROFILEModify Information Verify
4TEMPLATE_CHANGE_EMAIL_OR_PHONEChange New Binding
5TEMPLATE_RESET_LOGIN_PASSWORDReset Login Password
6TEMPLATE_RESET_WALLET_PASSWORDReset Payment Password
7TEMPLATE_LOGIN_ACCOUNTUse Verify Code to Login
8TEMPLATE_DELETE_ACCOUNTUse Verify Code to Delete Account

type

NumberConst NameDescription
1TYPE_EMAILEmail
2TYPE_SMSSMS

Released under the Apache-2.0 License