syntax = "proto3";
option go_package = "./pb";

package pb;

import "models/model_node_cluster.proto";
import "models/model_user_feature.proto";
import "models/model_login.proto";

message User {
	int64 id = 1;
	string username = 2;
	string fullname = 3;
	string mobile = 4;
	string tel = 5;
	string email = 6;
	string verifiedEmail = 20;
	string remark = 7;
	bool isOn = 8;
	int64 createdAt = 9;
	string registeredIP = 12;
	bool isVerified = 13;
	bool isRejected = 14;
	string rejectReason = 15;
	bool isDeleted = 16;
	bool isIndividualIdentified = 17;
	bool isEnterpriseIdentified = 18;
	string bandwidthAlgo = 21; // 带宽算法

	Login otpLogin = 19; // OTP认证

	NodeCluster nodeCluster = 10;
	repeated UserFeature features = 11;
}