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

package pb;

import "models/model_ns_cluster.proto";
import "models/model_ns_domain_group.proto";
import "models/model_user.proto";

// DNS域名
message NSDomain {
	int64 id = 1;
	string name = 2;
	bool isOn = 3;
	int64 createdAt = 4;
	bool isDeleted = 5;
	int64 version = 6;
	bytes tsigJSON = 7;
	repeated int64 nsDomainGroupIds = 8;
	string status = 9;
	int64 userId = 10; // 用户ID
	bytes recordsHealthCheckJSON = 11; // 健康检查设置

	NSCluster nsCluster = 30;
	User user = 31;
	repeated NSDomainGroup nsDomainGroups = 32;
}