import "mapreduce/yt/interface/protos/extension.proto";
import "wmconsole/version3/protos/favicons.proto";

package NWebmaster.NProto;

message TFaviconIndexingRecord {
    optional string Url            = 1 [(NYT.column_name) = "Url"];
    optional uint64 TableTimestamp = 2 [(NYT.column_name) = "TableTimestamp"];
    optional uint64 LastAccess     = 3 [(NYT.column_name) = "LastAccess"];
    optional uint64 AddTime        = 4 [(NYT.column_name) = "AddTime"];
    optional int32 HttpCode        = 5 [(NYT.column_name) = "HttpCode"];
    optional int32 FilterCode      = 6 [(NYT.column_name) = "FilterCode"];
    optional int32 MimeType        = 7 [(NYT.column_name) = "MimeType"];
    optional string RedirTarget    = 8 [(NYT.column_name) = "RedirTarget"];
    optional string SourceName     = 9 [(NYT.column_name) = "SourceName"];
    optional string SourceHost     = 10 [(NYT.column_name) = "SourceHost"];
}

message TWebmasterHost {
    optional string Host            = 1 [(NYT.column_name) = "Host"];
}

message TFaviconRecord {
    optional string Host           = 1 [(NYT.column_name) = "Host"];
    optional string Url            = 2 [(NYT.column_name) = "Url"];
    optional uint64 LastAccess     = 3 [(NYT.column_name) = "LastAccess"];
    optional uint64 AddTime        = 4 [(NYT.column_name) = "AddTime"];
    optional int32 HttpCode        = 5 [(NYT.column_name) = "HttpCode"];
    optional int32 FilterCode      = 6 [(NYT.column_name) = "FilterCode"];
    optional int32 MimeType        = 7 [(NYT.column_name) = "MimeType"];
    optional string RedirTarget    = 8 [(NYT.column_name) = "RedirTarget"];
    optional string SourceName     = 9 [(NYT.column_name) = "SourceName"];
    optional bool IsFromMorda      = 10 [(NYT.column_name) = "IsFromMorda"];
    optional bool IsOnSearch       = 11 [(NYT.column_name) = "IsOnSearch"];
    optional int32 TargetSize      = 12 [(NYT.column_name) = "TargetSize"];
    optional int32 Height          = 13 [(NYT.column_name) = "Height"];
    optional int32 Width           = 14 [(NYT.column_name) = "Width"];
}

message THostWithFaviconsAndProblems {
    optional string Host                                  = 1 [(NYT.column_name) = "Host"];
    optional THostFaviconsAndProblems FaviconsAndProblems = 2 [(NYT.column_name) = "FaviconsAndProblems"];
}
