diff --git a/src/Microservices/Services/News/NewsAggregator.News.Mvc/Components/NewsReactions.cs b/src/Microservices/Services/News/NewsAggregator.News.Mvc/Components/NewsReactions.cs new file mode 100644 index 0000000..2eac745 --- /dev/null +++ b/src/Microservices/Services/News/NewsAggregator.News.Mvc/Components/NewsReactions.cs @@ -0,0 +1,24 @@ +using MediatR; +using Microsoft.AspNetCore.Mvc; +using NewsAggregator.News.UseCases.Queries; + +namespace NewsAggregator.News.Mvc.Components +{ + public class NewsReactions : ViewComponent + { + private readonly IMediator _mediator; + + public NewsReactions(IMediator mediator) + { + _mediator = mediator; + } + + public async Task InvokeAsync(Guid newsId, + CancellationToken cancellationToken = default) + { + var reactions = await _mediator.Send(new GetNewsReactionsQuery(newsId), cancellationToken); + + return View(reactions); + } + } +} diff --git a/src/Microservices/Services/News/NewsAggregator.News.Mvc/Controllers/NewsController.cs b/src/Microservices/Services/News/NewsAggregator.News.Mvc/Controllers/NewsController.cs index 1818088..8c626bc 100644 --- a/src/Microservices/Services/News/NewsAggregator.News.Mvc/Controllers/NewsController.cs +++ b/src/Microservices/Services/News/NewsAggregator.News.Mvc/Controllers/NewsController.cs @@ -1,6 +1,7 @@ using MediatR; using Microsoft.AspNetCore.Mvc; using NewsAggregator.News.DTOs; +using NewsAggregator.News.Extensions; using NewsAggregator.News.Messages; using NewsAggregator.News.UseCases.Queries; using System.ComponentModel.DataAnnotations; @@ -32,12 +33,20 @@ public async Task GetNewsPageByIdAsync([Required][FromRoute(Name { var news = await _mediator.Send(new GetNewsByIdQuery(id), cancellationToken); - await _mediator.Publish(new NewsViewed(id, - HttpContext.Request.Headers.FirstOrDefault(header => header.Key == "X-Real-IP").Value.FirstOrDefault() - ?? HttpContext.Connection.RemoteIpAddress?.ToString() - ?? string.Empty)); + await _mediator.Publish(new NewsViewed(id, HttpContext.GetConnectionIpAddress())); return View("News", news); } + + [HttpPost] + [Route("{newsId:guid:required}/sendNewsReaction")] + public async Task SendNewsReactionAsync([Required][FromRoute(Name = "newsId")] Guid newsId, + [Required][FromQuery(Name = "reactionId")] Guid reactionId, CancellationToken cancellationToken = default) + { + await _mediator.Publish(new NewsReacted(newsId, reactionId, HttpContext.GetConnectionIpAddress()), + cancellationToken); + + return Ok(); + } } } diff --git a/src/Microservices/Services/News/NewsAggregator.News.Mvc/Views/News/News.cshtml b/src/Microservices/Services/News/NewsAggregator.News.Mvc/Views/News/News.cshtml index d9cfe1b..6c369df 100644 --- a/src/Microservices/Services/News/NewsAggregator.News.Mvc/Views/News/News.cshtml +++ b/src/Microservices/Services/News/NewsAggregator.News.Mvc/Views/News/News.cshtml @@ -90,6 +90,38 @@ video[itemprop="video"] { width: 100%; } + + .news-reactions { + display: flex; + flex-wrap: wrap; + flex-direction: row; + justify-content: center; + } + + .news-reactions .news-reactions__reaction { + margin: 5px; + padding: 5px; + gap: 5px; + min-width: 150px; + max-width: 150px; + cursor: pointer; + display: flex; + flex-direction: row; + align-items: center; + justify-content: center; + border: 1px solid var(--bs-border-color); + border-radius: 5px; + font-weight: bold; + font-size: 20px; + } + + .news-reactions .news-reactions__reaction .news-reactions__reaction__counter { + overflow: hidden; + -webkit-line-clamp: 1; + text-overflow: ellipsis; + line-clamp: 1; + -webkit-box-orient: vertical; + } } @@ -161,6 +193,7 @@ } +
diff --git a/src/Microservices/Services/News/NewsAggregator.News.Mvc/Views/Shared/Components/NewsReactions/Default.cshtml b/src/Microservices/Services/News/NewsAggregator.News.Mvc/Views/Shared/Components/NewsReactions/Default.cshtml new file mode 100644 index 0000000..9cd382f --- /dev/null +++ b/src/Microservices/Services/News/NewsAggregator.News.Mvc/Views/Shared/Components/NewsReactions/Default.cshtml @@ -0,0 +1,13 @@ +@model IReadOnlyCollection + +
+ @foreach (var reaction in Model) + { +
+ + + @reaction.Count.ToString("N0", new CultureInfo("en-US")) + +
+ } +
\ No newline at end of file diff --git a/src/Microservices/Services/News/NewsAggregator.News.Mvc/Views/Shared/Components/NewsReactions/Default.cshtml.cs b/src/Microservices/Services/News/NewsAggregator.News.Mvc/Views/Shared/Components/NewsReactions/Default.cshtml.cs new file mode 100644 index 0000000..824d67d --- /dev/null +++ b/src/Microservices/Services/News/NewsAggregator.News.Mvc/Views/Shared/Components/NewsReactions/Default.cshtml.cs @@ -0,0 +1,12 @@ +using Microsoft.AspNetCore.Mvc.RazorPages; + +namespace NewsAggregator.News.Mvc.Views.Shared.Components.NewsReactions +{ + public class DefaultModel : PageModel + { + public void OnGet() + { + + } + } +} diff --git a/src/Microservices/Services/News/NewsAggregator.News.Mvc/Views/Shared/_Scripts.cshtml b/src/Microservices/Services/News/NewsAggregator.News.Mvc/Views/Shared/_Scripts.cshtml index 01d31b3..3b93312 100644 --- a/src/Microservices/Services/News/NewsAggregator.News.Mvc/Views/Shared/_Scripts.cshtml +++ b/src/Microservices/Services/News/NewsAggregator.News.Mvc/Views/Shared/_Scripts.cshtml @@ -1,4 +1,5 @@  + @@ -6,5 +7,6 @@ + \ No newline at end of file diff --git a/src/Microservices/Services/News/NewsAggregator.News.Mvc/Views/Shared/_Styles.cshtml b/src/Microservices/Services/News/NewsAggregator.News.Mvc/Views/Shared/_Styles.cshtml index 4e34ff7..33f77e9 100644 --- a/src/Microservices/Services/News/NewsAggregator.News.Mvc/Views/Shared/_Styles.cshtml +++ b/src/Microservices/Services/News/NewsAggregator.News.Mvc/Views/Shared/_Styles.cshtml @@ -1,5 +1,7 @@  + + \ No newline at end of file diff --git a/src/Microservices/Services/News/NewsAggregator.News.Mvc/wwwroot/js/news-reaction.js b/src/Microservices/Services/News/NewsAggregator.News.Mvc/wwwroot/js/news-reaction.js new file mode 100644 index 0000000..7304bd3 --- /dev/null +++ b/src/Microservices/Services/News/NewsAggregator.News.Mvc/wwwroot/js/news-reaction.js @@ -0,0 +1,20 @@ +document.addEventListener('DOMContentLoaded', function (e) { + var newsReactionsContainer = document.querySelector('div.news-reactions'); + var newsReactions = newsReactionsContainer?.querySelectorAll('div.news-reactions__reaction[data-reaction-newsId][data-reaction-id]'); + + if (newsReactions) { + newsReactions.forEach(function (newsReactionElement) { + newsReactionElement.addEventListener('click', async function () { + var newsId = newsReactionElement.getAttribute('data-reaction-newsId'); + var reactionId = newsReactionElement.getAttribute('data-reaction-id'); + + try { + await axios.post(`http://${window.location.hostname}/news/${newsId}/sendNewsReaction?reactionId=${reactionId}`); + alert('Sending a reaction to the news was successful.'); + } catch (error) { + alert('An error occurred when sending a reaction to the news'); + } + }); + }); + } +}); \ No newline at end of file diff --git a/src/Microservices/Services/News/NewsAggregator.News.Mvc/wwwroot/lib/axios/dist/axios.min.js b/src/Microservices/Services/News/NewsAggregator.News.Mvc/wwwroot/lib/axios/dist/axios.min.js new file mode 100644 index 0000000..4e67f4a --- /dev/null +++ b/src/Microservices/Services/News/NewsAggregator.News.Mvc/wwwroot/lib/axios/dist/axios.min.js @@ -0,0 +1,2 @@ +!function (e, t) { "object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : (e = "undefined" != typeof globalThis ? globalThis : e || self).axios = t() }(this, (function () { "use strict"; function e(e, t) { var r = Object.keys(e); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); t && (n = n.filter((function (t) { return Object.getOwnPropertyDescriptor(e, t).enumerable }))), r.push.apply(r, n) } return r } function t(t) { for (var r = 1; r < arguments.length; r++) { var n = null != arguments[r] ? arguments[r] : {}; r % 2 ? e(Object(n), !0).forEach((function (e) { c(t, e, n[e]) })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : e(Object(n)).forEach((function (e) { Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(n, e)) })) } return t } function r() { r = function () { return t }; var e, t = {}, n = Object.prototype, o = n.hasOwnProperty, i = Object.defineProperty || function (e, t, r) { e[t] = r.value }, a = "function" == typeof Symbol ? Symbol : {}, s = a.iterator || "@@iterator", u = a.asyncIterator || "@@asyncIterator", c = a.toStringTag || "@@toStringTag"; function f(e, t, r) { return Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }), e[t] } try { f({}, "") } catch (e) { f = function (e, t, r) { return e[t] = r } } function l(e, t, r, n) { var o = t && t.prototype instanceof m ? t : m, a = Object.create(o.prototype), s = new N(n || []); return i(a, "_invoke", { value: A(e, r, s) }), a } function h(e, t, r) { try { return { type: "normal", arg: e.call(t, r) } } catch (e) { return { type: "throw", arg: e } } } t.wrap = l; var p = "suspendedStart", d = "executing", y = "completed", v = {}; function m() { } function g() { } function b() { } var w = {}; f(w, s, (function () { return this })); var E = Object.getPrototypeOf, O = E && E(E(k([]))); O && O !== n && o.call(O, s) && (w = O); var S = b.prototype = m.prototype = Object.create(w); function j(e) { ["next", "throw", "return"].forEach((function (t) { f(e, t, (function (e) { return this._invoke(t, e) })) })) } function R(e, t) { function r(n, i, a, s) { var u = h(e[n], e, i); if ("throw" !== u.type) { var c = u.arg, f = c.value; return f && "object" == typeof f && o.call(f, "__await") ? t.resolve(f.__await).then((function (e) { r("next", e, a, s) }), (function (e) { r("throw", e, a, s) })) : t.resolve(f).then((function (e) { c.value = e, a(c) }), (function (e) { return r("throw", e, a, s) })) } s(u.arg) } var n; i(this, "_invoke", { value: function (e, o) { function i() { return new t((function (t, n) { r(e, o, t, n) })) } return n = n ? n.then(i, i) : i() } }) } function A(t, r, n) { var o = p; return function (i, a) { if (o === d) throw new Error("Generator is already running"); if (o === y) { if ("throw" === i) throw a; return { value: e, done: !0 } } for (n.method = i, n.arg = a; ;) { var s = n.delegate; if (s) { var u = T(s, n); if (u) { if (u === v) continue; return u } } if ("next" === n.method) n.sent = n._sent = n.arg; else if ("throw" === n.method) { if (o === p) throw o = y, n.arg; n.dispatchException(n.arg) } else "return" === n.method && n.abrupt("return", n.arg); o = d; var c = h(t, r, n); if ("normal" === c.type) { if (o = n.done ? y : "suspendedYield", c.arg === v) continue; return { value: c.arg, done: n.done } } "throw" === c.type && (o = y, n.method = "throw", n.arg = c.arg) } } } function T(t, r) { var n = r.method, o = t.iterator[n]; if (o === e) return r.delegate = null, "throw" === n && t.iterator.return && (r.method = "return", r.arg = e, T(t, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), v; var i = h(o, t.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, v; var a = i.arg; return a ? a.done ? (r[t.resultName] = a.value, r.next = t.nextLoc, "return" !== r.method && (r.method = "next", r.arg = e), r.delegate = null, v) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, v) } function x(e) { var t = { tryLoc: e[0] }; 1 in e && (t.catchLoc = e[1]), 2 in e && (t.finallyLoc = e[2], t.afterLoc = e[3]), this.tryEntries.push(t) } function P(e) { var t = e.completion || {}; t.type = "normal", delete t.arg, e.completion = t } function N(e) { this.tryEntries = [{ tryLoc: "root" }], e.forEach(x, this), this.reset(!0) } function k(t) { if (t || "" === t) { var r = t[s]; if (r) return r.call(t); if ("function" == typeof t.next) return t; if (!isNaN(t.length)) { var n = -1, i = function r() { for (; ++n < t.length;)if (o.call(t, n)) return r.value = t[n], r.done = !1, r; return r.value = e, r.done = !0, r }; return i.next = i } } throw new TypeError(typeof t + " is not iterable") } return g.prototype = b, i(S, "constructor", { value: b, configurable: !0 }), i(b, "constructor", { value: g, configurable: !0 }), g.displayName = f(b, c, "GeneratorFunction"), t.isGeneratorFunction = function (e) { var t = "function" == typeof e && e.constructor; return !!t && (t === g || "GeneratorFunction" === (t.displayName || t.name)) }, t.mark = function (e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, b) : (e.__proto__ = b, f(e, c, "GeneratorFunction")), e.prototype = Object.create(S), e }, t.awrap = function (e) { return { __await: e } }, j(R.prototype), f(R.prototype, u, (function () { return this })), t.AsyncIterator = R, t.async = function (e, r, n, o, i) { void 0 === i && (i = Promise); var a = new R(l(e, r, n, o), i); return t.isGeneratorFunction(r) ? a : a.next().then((function (e) { return e.done ? e.value : a.next() })) }, j(S), f(S, c, "Generator"), f(S, s, (function () { return this })), f(S, "toString", (function () { return "[object Generator]" })), t.keys = function (e) { var t = Object(e), r = []; for (var n in t) r.push(n); return r.reverse(), function e() { for (; r.length;) { var n = r.pop(); if (n in t) return e.value = n, e.done = !1, e } return e.done = !0, e } }, t.values = k, N.prototype = { constructor: N, reset: function (t) { if (this.prev = 0, this.next = 0, this.sent = this._sent = e, this.done = !1, this.delegate = null, this.method = "next", this.arg = e, this.tryEntries.forEach(P), !t) for (var r in this) "t" === r.charAt(0) && o.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = e) }, stop: function () { this.done = !0; var e = this.tryEntries[0].completion; if ("throw" === e.type) throw e.arg; return this.rval }, dispatchException: function (t) { if (this.done) throw t; var r = this; function n(n, o) { return s.type = "throw", s.arg = t, r.next = n, o && (r.method = "next", r.arg = e), !!o } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var a = this.tryEntries[i], s = a.completion; if ("root" === a.tryLoc) return n("end"); if (a.tryLoc <= this.prev) { var u = o.call(a, "catchLoc"), c = o.call(a, "finallyLoc"); if (u && c) { if (this.prev < a.catchLoc) return n(a.catchLoc, !0); if (this.prev < a.finallyLoc) return n(a.finallyLoc) } else if (u) { if (this.prev < a.catchLoc) return n(a.catchLoc, !0) } else { if (!c) throw new Error("try statement without catch or finally"); if (this.prev < a.finallyLoc) return n(a.finallyLoc) } } } }, abrupt: function (e, t) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var n = this.tryEntries[r]; if (n.tryLoc <= this.prev && o.call(n, "finallyLoc") && this.prev < n.finallyLoc) { var i = n; break } } i && ("break" === e || "continue" === e) && i.tryLoc <= t && t <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = e, a.arg = t, i ? (this.method = "next", this.next = i.finallyLoc, v) : this.complete(a) }, complete: function (e, t) { if ("throw" === e.type) throw e.arg; return "break" === e.type || "continue" === e.type ? this.next = e.arg : "return" === e.type ? (this.rval = this.arg = e.arg, this.method = "return", this.next = "end") : "normal" === e.type && t && (this.next = t), v }, finish: function (e) { for (var t = this.tryEntries.length - 1; t >= 0; --t) { var r = this.tryEntries[t]; if (r.finallyLoc === e) return this.complete(r.completion, r.afterLoc), P(r), v } }, catch: function (e) { for (var t = this.tryEntries.length - 1; t >= 0; --t) { var r = this.tryEntries[t]; if (r.tryLoc === e) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; P(r) } return o } } throw new Error("illegal catch attempt") }, delegateYield: function (t, r, n) { return this.delegate = { iterator: k(t), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = e), v } }, t } function n(e) { var t = function (e, t) { if ("object" != typeof e || !e) return e; var r = e[Symbol.toPrimitive]; if (void 0 !== r) { var n = r.call(e, t || "default"); if ("object" != typeof n) return n; throw new TypeError("@@toPrimitive must return a primitive value.") } return ("string" === t ? String : Number)(e) }(e, "string"); return "symbol" == typeof t ? t : String(t) } function o(e) { return o = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) { return typeof e } : function (e) { return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e }, o(e) } function i(e, t, r, n, o, i, a) { try { var s = e[i](a), u = s.value } catch (e) { return void r(e) } s.done ? t(u) : Promise.resolve(u).then(n, o) } function a(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") } function s(e, t) { for (var r = 0; r < t.length; r++) { var o = t[r]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, n(o.key), o) } } function u(e, t, r) { return t && s(e.prototype, t), r && s(e, r), Object.defineProperty(e, "prototype", { writable: !1 }), e } function c(e, t, r) { return (t = n(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e } function f(e, t) { return h(e) || function (e, t) { var r = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"]; if (null != r) { var n, o, i, a, s = [], u = !0, c = !1; try { if (i = (r = r.call(e)).next, 0 === t) { if (Object(r) !== r) return; u = !1 } else for (; !(u = (n = i.call(r)).done) && (s.push(n.value), s.length !== t); u = !0); } catch (e) { c = !0, o = e } finally { try { if (!u && null != r.return && (a = r.return(), Object(a) !== a)) return } finally { if (c) throw o } } return s } }(e, t) || d(e, t) || v() } function l(e) { return function (e) { if (Array.isArray(e)) return y(e) }(e) || p(e) || d(e) || function () { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.") }() } function h(e) { if (Array.isArray(e)) return e } function p(e) { if ("undefined" != typeof Symbol && null != e[Symbol.iterator] || null != e["@@iterator"]) return Array.from(e) } function d(e, t) { if (e) { if ("string" == typeof e) return y(e, t); var r = Object.prototype.toString.call(e).slice(8, -1); return "Object" === r && e.constructor && (r = e.constructor.name), "Map" === r || "Set" === r ? Array.from(e) : "Arguments" === r || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? y(e, t) : void 0 } } function y(e, t) { (null == t || t > e.length) && (t = e.length); for (var r = 0, n = new Array(t); r < t; r++)n[r] = e[r]; return n } function v() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.") } function m(e, t) { return function () { return e.apply(t, arguments) } } var g, b = Object.prototype.toString, w = Object.getPrototypeOf, E = (g = Object.create(null), function (e) { var t = b.call(e); return g[t] || (g[t] = t.slice(8, -1).toLowerCase()) }), O = function (e) { return e = e.toLowerCase(), function (t) { return E(t) === e } }, S = function (e) { return function (t) { return o(t) === e } }, j = Array.isArray, R = S("undefined"); var A = O("ArrayBuffer"); var T = S("string"), x = S("function"), P = S("number"), N = function (e) { return null !== e && "object" === o(e) }, k = function (e) { if ("object" !== E(e)) return !1; var t = w(e); return !(null !== t && t !== Object.prototype && null !== Object.getPrototypeOf(t) || Symbol.toStringTag in e || Symbol.iterator in e) }, _ = O("Date"), L = O("File"), C = O("Blob"), F = O("FileList"), U = O("URLSearchParams"); function D(e, t) { var r, n, i = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}, a = i.allOwnKeys, s = void 0 !== a && a; if (null != e) if ("object" !== o(e) && (e = [e]), j(e)) for (r = 0, n = e.length; r < n; r++)t.call(null, e[r], r, e); else { var u, c = s ? Object.getOwnPropertyNames(e) : Object.keys(e), f = c.length; for (r = 0; r < f; r++)u = c[r], t.call(null, e[u], u, e) } } function B(e, t) { t = t.toLowerCase(); for (var r, n = Object.keys(e), o = n.length; o-- > 0;)if (t === (r = n[o]).toLowerCase()) return r; return null } var I = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : "undefined" != typeof window ? window : global, q = function (e) { return !R(e) && e !== I }; var z, M = (z = "undefined" != typeof Uint8Array && w(Uint8Array), function (e) { return z && e instanceof z }), H = O("HTMLFormElement"), J = function (e) { var t = Object.prototype.hasOwnProperty; return function (e, r) { return t.call(e, r) } }(), G = O("RegExp"), W = function (e, t) { var r = Object.getOwnPropertyDescriptors(e), n = {}; D(r, (function (r, o) { var i; !1 !== (i = t(r, o, e)) && (n[o] = i || r) })), Object.defineProperties(e, n) }, K = "abcdefghijklmnopqrstuvwxyz", V = "0123456789", X = { DIGIT: V, ALPHA: K, ALPHA_DIGIT: K + K.toUpperCase() + V }; var $ = O("AsyncFunction"), Q = { isArray: j, isArrayBuffer: A, isBuffer: function (e) { return null !== e && !R(e) && null !== e.constructor && !R(e.constructor) && x(e.constructor.isBuffer) && e.constructor.isBuffer(e) }, isFormData: function (e) { var t; return e && ("function" == typeof FormData && e instanceof FormData || x(e.append) && ("formdata" === (t = E(e)) || "object" === t && x(e.toString) && "[object FormData]" === e.toString())) }, isArrayBufferView: function (e) { return "undefined" != typeof ArrayBuffer && ArrayBuffer.isView ? ArrayBuffer.isView(e) : e && e.buffer && A(e.buffer) }, isString: T, isNumber: P, isBoolean: function (e) { return !0 === e || !1 === e }, isObject: N, isPlainObject: k, isUndefined: R, isDate: _, isFile: L, isBlob: C, isRegExp: G, isFunction: x, isStream: function (e) { return N(e) && x(e.pipe) }, isURLSearchParams: U, isTypedArray: M, isFileList: F, forEach: D, merge: function e() { for (var t = q(this) && this || {}, r = t.caseless, n = {}, o = function (t, o) { var i = r && B(n, o) || o; k(n[i]) && k(t) ? n[i] = e(n[i], t) : k(t) ? n[i] = e({}, t) : j(t) ? n[i] = t.slice() : n[i] = t }, i = 0, a = arguments.length; i < a; i++)arguments[i] && D(arguments[i], o); return n }, extend: function (e, t, r) { var n = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : {}, o = n.allOwnKeys; return D(t, (function (t, n) { r && x(t) ? e[n] = m(t, r) : e[n] = t }), { allOwnKeys: o }), e }, trim: function (e) { return e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "") }, stripBOM: function (e) { return 65279 === e.charCodeAt(0) && (e = e.slice(1)), e }, inherits: function (e, t, r, n) { e.prototype = Object.create(t.prototype, n), e.prototype.constructor = e, Object.defineProperty(e, "super", { value: t.prototype }), r && Object.assign(e.prototype, r) }, toFlatObject: function (e, t, r, n) { var o, i, a, s = {}; if (t = t || {}, null == e) return t; do { for (i = (o = Object.getOwnPropertyNames(e)).length; i-- > 0;)a = o[i], n && !n(a, e, t) || s[a] || (t[a] = e[a], s[a] = !0); e = !1 !== r && w(e) } while (e && (!r || r(e, t)) && e !== Object.prototype); return t }, kindOf: E, kindOfTest: O, endsWith: function (e, t, r) { e = String(e), (void 0 === r || r > e.length) && (r = e.length), r -= t.length; var n = e.indexOf(t, r); return -1 !== n && n === r }, toArray: function (e) { if (!e) return null; if (j(e)) return e; var t = e.length; if (!P(t)) return null; for (var r = new Array(t); t-- > 0;)r[t] = e[t]; return r }, forEachEntry: function (e, t) { for (var r, n = (e && e[Symbol.iterator]).call(e); (r = n.next()) && !r.done;) { var o = r.value; t.call(e, o[0], o[1]) } }, matchAll: function (e, t) { for (var r, n = []; null !== (r = e.exec(t));)n.push(r); return n }, isHTMLForm: H, hasOwnProperty: J, hasOwnProp: J, reduceDescriptors: W, freezeMethods: function (e) { W(e, (function (t, r) { if (x(e) && -1 !== ["arguments", "caller", "callee"].indexOf(r)) return !1; var n = e[r]; x(n) && (t.enumerable = !1, "writable" in t ? t.writable = !1 : t.set || (t.set = function () { throw Error("Can not rewrite read-only method '" + r + "'") })) })) }, toObjectSet: function (e, t) { var r = {}, n = function (e) { e.forEach((function (e) { r[e] = !0 })) }; return j(e) ? n(e) : n(String(e).split(t)), r }, toCamelCase: function (e) { return e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, (function (e, t, r) { return t.toUpperCase() + r })) }, noop: function () { }, toFiniteNumber: function (e, t) { return e = +e, Number.isFinite(e) ? e : t }, findKey: B, global: I, isContextDefined: q, ALPHABET: X, generateString: function () { for (var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 16, t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : X.ALPHA_DIGIT, r = "", n = t.length; e--;)r += t[Math.random() * n | 0]; return r }, isSpecCompliantForm: function (e) { return !!(e && x(e.append) && "FormData" === e[Symbol.toStringTag] && e[Symbol.iterator]) }, toJSONObject: function (e) { var t = new Array(10); return function e(r, n) { if (N(r)) { if (t.indexOf(r) >= 0) return; if (!("toJSON" in r)) { t[n] = r; var o = j(r) ? [] : {}; return D(r, (function (t, r) { var i = e(t, n + 1); !R(i) && (o[r] = i) })), t[n] = void 0, o } } return r }(e, 0) }, isAsyncFn: $, isThenable: function (e) { return e && (N(e) || x(e)) && x(e.then) && x(e.catch) } }; function Y(e, t, r, n, o) { Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = (new Error).stack, this.message = e, this.name = "AxiosError", t && (this.code = t), r && (this.config = r), n && (this.request = n), o && (this.response = o) } Q.inherits(Y, Error, { toJSON: function () { return { message: this.message, name: this.name, description: this.description, number: this.number, fileName: this.fileName, lineNumber: this.lineNumber, columnNumber: this.columnNumber, stack: this.stack, config: Q.toJSONObject(this.config), code: this.code, status: this.response && this.response.status ? this.response.status : null } } }); var Z = Y.prototype, ee = {};["ERR_BAD_OPTION_VALUE", "ERR_BAD_OPTION", "ECONNABORTED", "ETIMEDOUT", "ERR_NETWORK", "ERR_FR_TOO_MANY_REDIRECTS", "ERR_DEPRECATED", "ERR_BAD_RESPONSE", "ERR_BAD_REQUEST", "ERR_CANCELED", "ERR_NOT_SUPPORT", "ERR_INVALID_URL"].forEach((function (e) { ee[e] = { value: e } })), Object.defineProperties(Y, ee), Object.defineProperty(Z, "isAxiosError", { value: !0 }), Y.from = function (e, t, r, n, o, i) { var a = Object.create(Z); return Q.toFlatObject(e, a, (function (e) { return e !== Error.prototype }), (function (e) { return "isAxiosError" !== e })), Y.call(a, e.message, t, r, n, o), a.cause = e, a.name = e.name, i && Object.assign(a, i), a }; function te(e) { return Q.isPlainObject(e) || Q.isArray(e) } function re(e) { return Q.endsWith(e, "[]") ? e.slice(0, -2) : e } function ne(e, t, r) { return e ? e.concat(t).map((function (e, t) { return e = re(e), !r && t ? "[" + e + "]" : e })).join(r ? "." : "") : t } var oe = Q.toFlatObject(Q, {}, null, (function (e) { return /^is[A-Z]/.test(e) })); function ie(e, t, r) { if (!Q.isObject(e)) throw new TypeError("target must be an object"); t = t || new FormData; var n = (r = Q.toFlatObject(r, { metaTokens: !0, dots: !1, indexes: !1 }, !1, (function (e, t) { return !Q.isUndefined(t[e]) }))).metaTokens, i = r.visitor || f, a = r.dots, s = r.indexes, u = (r.Blob || "undefined" != typeof Blob && Blob) && Q.isSpecCompliantForm(t); if (!Q.isFunction(i)) throw new TypeError("visitor must be a function"); function c(e) { if (null === e) return ""; if (Q.isDate(e)) return e.toISOString(); if (!u && Q.isBlob(e)) throw new Y("Blob is not supported. Use a Buffer instead."); return Q.isArrayBuffer(e) || Q.isTypedArray(e) ? u && "function" == typeof Blob ? new Blob([e]) : Buffer.from(e) : e } function f(e, r, i) { var u = e; if (e && !i && "object" === o(e)) if (Q.endsWith(r, "{}")) r = n ? r : r.slice(0, -2), e = JSON.stringify(e); else if (Q.isArray(e) && function (e) { return Q.isArray(e) && !e.some(te) }(e) || (Q.isFileList(e) || Q.endsWith(r, "[]")) && (u = Q.toArray(e))) return r = re(r), u.forEach((function (e, n) { !Q.isUndefined(e) && null !== e && t.append(!0 === s ? ne([r], n, a) : null === s ? r : r + "[]", c(e)) })), !1; return !!te(e) || (t.append(ne(i, r, a), c(e)), !1) } var l = [], h = Object.assign(oe, { defaultVisitor: f, convertValue: c, isVisitable: te }); if (!Q.isObject(e)) throw new TypeError("data must be an object"); return function e(r, n) { if (!Q.isUndefined(r)) { if (-1 !== l.indexOf(r)) throw Error("Circular reference detected in " + n.join(".")); l.push(r), Q.forEach(r, (function (r, o) { !0 === (!(Q.isUndefined(r) || null === r) && i.call(t, r, Q.isString(o) ? o.trim() : o, n, h)) && e(r, n ? n.concat(o) : [o]) })), l.pop() } }(e), t } function ae(e) { var t = { "!": "%21", "'": "%27", "(": "%28", ")": "%29", "~": "%7E", "%20": "+", "%00": "\0" }; return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, (function (e) { return t[e] })) } function se(e, t) { this._pairs = [], e && ie(e, this, t) } var ue = se.prototype; function ce(e) { return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]") } function fe(e, t, r) { if (!t) return e; var n, o = r && r.encode || ce, i = r && r.serialize; if (n = i ? i(t, r) : Q.isURLSearchParams(t) ? t.toString() : new se(t, r).toString(o)) { var a = e.indexOf("#"); -1 !== a && (e = e.slice(0, a)), e += (-1 === e.indexOf("?") ? "?" : "&") + n } return e } ue.append = function (e, t) { this._pairs.push([e, t]) }, ue.toString = function (e) { var t = e ? function (t) { return e.call(this, t, ae) } : ae; return this._pairs.map((function (e) { return t(e[0]) + "=" + t(e[1]) }), "").join("&") }; var le, he = function () { function e() { a(this, e), this.handlers = [] } return u(e, [{ key: "use", value: function (e, t, r) { return this.handlers.push({ fulfilled: e, rejected: t, synchronous: !!r && r.synchronous, runWhen: r ? r.runWhen : null }), this.handlers.length - 1 } }, { key: "eject", value: function (e) { this.handlers[e] && (this.handlers[e] = null) } }, { key: "clear", value: function () { this.handlers && (this.handlers = []) } }, { key: "forEach", value: function (e) { Q.forEach(this.handlers, (function (t) { null !== t && e(t) })) } }]), e }(), pe = { silentJSONParsing: !0, forcedJSONParsing: !0, clarifyTimeoutError: !1 }, de = { isBrowser: !0, classes: { URLSearchParams: "undefined" != typeof URLSearchParams ? URLSearchParams : se, FormData: "undefined" != typeof FormData ? FormData : null, Blob: "undefined" != typeof Blob ? Blob : null }, protocols: ["http", "https", "file", "blob", "url", "data"] }, ye = "undefined" != typeof window && "undefined" != typeof document, ve = (le = "undefined" != typeof navigator && navigator.product, ye && ["ReactNative", "NativeScript", "NS"].indexOf(le) < 0), me = "undefined" != typeof WorkerGlobalScope && self instanceof WorkerGlobalScope && "function" == typeof self.importScripts, ge = t(t({}, Object.freeze({ __proto__: null, hasBrowserEnv: ye, hasStandardBrowserWebWorkerEnv: me, hasStandardBrowserEnv: ve })), de); function be(e) { function t(e, r, n, o) { var i = e[o++]; if ("__proto__" === i) return !0; var a = Number.isFinite(+i), s = o >= e.length; return i = !i && Q.isArray(n) ? n.length : i, s ? (Q.hasOwnProp(n, i) ? n[i] = [n[i], r] : n[i] = r, !a) : (n[i] && Q.isObject(n[i]) || (n[i] = []), t(e, r, n[i], o) && Q.isArray(n[i]) && (n[i] = function (e) { var t, r, n = {}, o = Object.keys(e), i = o.length; for (t = 0; t < i; t++)n[r = o[t]] = e[r]; return n }(n[i])), !a) } if (Q.isFormData(e) && Q.isFunction(e.entries)) { var r = {}; return Q.forEachEntry(e, (function (e, n) { t(function (e) { return Q.matchAll(/\w+|\[(\w*)]/g, e).map((function (e) { return "[]" === e[0] ? "" : e[1] || e[0] })) }(e), n, r, 0) })), r } return null } var we = { transitional: pe, adapter: ["xhr", "http"], transformRequest: [function (e, t) { var r, n = t.getContentType() || "", o = n.indexOf("application/json") > -1, i = Q.isObject(e); if (i && Q.isHTMLForm(e) && (e = new FormData(e)), Q.isFormData(e)) return o ? JSON.stringify(be(e)) : e; if (Q.isArrayBuffer(e) || Q.isBuffer(e) || Q.isStream(e) || Q.isFile(e) || Q.isBlob(e)) return e; if (Q.isArrayBufferView(e)) return e.buffer; if (Q.isURLSearchParams(e)) return t.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString(); if (i) { if (n.indexOf("application/x-www-form-urlencoded") > -1) return function (e, t) { return ie(e, new ge.classes.URLSearchParams, Object.assign({ visitor: function (e, t, r, n) { return ge.isNode && Q.isBuffer(e) ? (this.append(t, e.toString("base64")), !1) : n.defaultVisitor.apply(this, arguments) } }, t)) }(e, this.formSerializer).toString(); if ((r = Q.isFileList(e)) || n.indexOf("multipart/form-data") > -1) { var a = this.env && this.env.FormData; return ie(r ? { "files[]": e } : e, a && new a, this.formSerializer) } } return i || o ? (t.setContentType("application/json", !1), function (e, t, r) { if (Q.isString(e)) try { return (t || JSON.parse)(e), Q.trim(e) } catch (e) { if ("SyntaxError" !== e.name) throw e } return (r || JSON.stringify)(e) }(e)) : e }], transformResponse: [function (e) { var t = this.transitional || we.transitional, r = t && t.forcedJSONParsing, n = "json" === this.responseType; if (e && Q.isString(e) && (r && !this.responseType || n)) { var o = !(t && t.silentJSONParsing) && n; try { return JSON.parse(e) } catch (e) { if (o) { if ("SyntaxError" === e.name) throw Y.from(e, Y.ERR_BAD_RESPONSE, this, null, this.response); throw e } } } return e }], timeout: 0, xsrfCookieName: "XSRF-TOKEN", xsrfHeaderName: "X-XSRF-TOKEN", maxContentLength: -1, maxBodyLength: -1, env: { FormData: ge.classes.FormData, Blob: ge.classes.Blob }, validateStatus: function (e) { return e >= 200 && e < 300 }, headers: { common: { Accept: "application/json, text/plain, */*", "Content-Type": void 0 } } }; Q.forEach(["delete", "get", "head", "post", "put", "patch"], (function (e) { we.headers[e] = {} })); var Ee = we, Oe = Q.toObjectSet(["age", "authorization", "content-length", "content-type", "etag", "expires", "from", "host", "if-modified-since", "if-unmodified-since", "last-modified", "location", "max-forwards", "proxy-authorization", "referer", "retry-after", "user-agent"]), Se = Symbol("internals"); function je(e) { return e && String(e).trim().toLowerCase() } function Re(e) { return !1 === e || null == e ? e : Q.isArray(e) ? e.map(Re) : String(e) } function Ae(e, t, r, n, o) { return Q.isFunction(n) ? n.call(this, t, r) : (o && (t = r), Q.isString(t) ? Q.isString(n) ? -1 !== t.indexOf(n) : Q.isRegExp(n) ? n.test(t) : void 0 : void 0) } var Te = function (e, t) { function r(e) { a(this, r), e && this.set(e) } return u(r, [{ key: "set", value: function (e, t, r) { var n = this; function o(e, t, r) { var o = je(t); if (!o) throw new Error("header name must be a non-empty string"); var i = Q.findKey(n, o); (!i || void 0 === n[i] || !0 === r || void 0 === r && !1 !== n[i]) && (n[i || t] = Re(e)) } var i, a, s, u, c, f = function (e, t) { return Q.forEach(e, (function (e, r) { return o(e, r, t) })) }; return Q.isPlainObject(e) || e instanceof this.constructor ? f(e, t) : Q.isString(e) && (e = e.trim()) && !/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()) ? f((c = {}, (i = e) && i.split("\n").forEach((function (e) { u = e.indexOf(":"), a = e.substring(0, u).trim().toLowerCase(), s = e.substring(u + 1).trim(), !a || c[a] && Oe[a] || ("set-cookie" === a ? c[a] ? c[a].push(s) : c[a] = [s] : c[a] = c[a] ? c[a] + ", " + s : s) })), c), t) : null != e && o(t, e, r), this } }, { key: "get", value: function (e, t) { if (e = je(e)) { var r = Q.findKey(this, e); if (r) { var n = this[r]; if (!t) return n; if (!0 === t) return function (e) { for (var t, r = Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g; t = n.exec(e);)r[t[1]] = t[2]; return r }(n); if (Q.isFunction(t)) return t.call(this, n, r); if (Q.isRegExp(t)) return t.exec(n); throw new TypeError("parser must be boolean|regexp|function") } } } }, { key: "has", value: function (e, t) { if (e = je(e)) { var r = Q.findKey(this, e); return !(!r || void 0 === this[r] || t && !Ae(0, this[r], r, t)) } return !1 } }, { key: "delete", value: function (e, t) { var r = this, n = !1; function o(e) { if (e = je(e)) { var o = Q.findKey(r, e); !o || t && !Ae(0, r[o], o, t) || (delete r[o], n = !0) } } return Q.isArray(e) ? e.forEach(o) : o(e), n } }, { key: "clear", value: function (e) { for (var t = Object.keys(this), r = t.length, n = !1; r--;) { var o = t[r]; e && !Ae(0, this[o], o, e, !0) || (delete this[o], n = !0) } return n } }, { key: "normalize", value: function (e) { var t = this, r = {}; return Q.forEach(this, (function (n, o) { var i = Q.findKey(r, o); if (i) return t[i] = Re(n), void delete t[o]; var a = e ? function (e) { return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (function (e, t, r) { return t.toUpperCase() + r })) }(o) : String(o).trim(); a !== o && delete t[o], t[a] = Re(n), r[a] = !0 })), this } }, { key: "concat", value: function () { for (var e, t = arguments.length, r = new Array(t), n = 0; n < t; n++)r[n] = arguments[n]; return (e = this.constructor).concat.apply(e, [this].concat(r)) } }, { key: "toJSON", value: function (e) { var t = Object.create(null); return Q.forEach(this, (function (r, n) { null != r && !1 !== r && (t[n] = e && Q.isArray(r) ? r.join(", ") : r) })), t } }, { key: Symbol.iterator, value: function () { return Object.entries(this.toJSON())[Symbol.iterator]() } }, { key: "toString", value: function () { return Object.entries(this.toJSON()).map((function (e) { var t = f(e, 2); return t[0] + ": " + t[1] })).join("\n") } }, { key: Symbol.toStringTag, get: function () { return "AxiosHeaders" } }], [{ key: "from", value: function (e) { return e instanceof this ? e : new this(e) } }, { key: "concat", value: function (e) { for (var t = new this(e), r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), o = 1; o < r; o++)n[o - 1] = arguments[o]; return n.forEach((function (e) { return t.set(e) })), t } }, { key: "accessor", value: function (e) { var t = (this[Se] = this[Se] = { accessors: {} }).accessors, r = this.prototype; function n(e) { var n = je(e); t[n] || (!function (e, t) { var r = Q.toCamelCase(" " + t);["get", "set", "has"].forEach((function (n) { Object.defineProperty(e, n + r, { value: function (e, r, o) { return this[n].call(this, t, e, r, o) }, configurable: !0 }) })) }(r, e), t[n] = !0) } return Q.isArray(e) ? e.forEach(n) : n(e), this } }]), r }(); Te.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]), Q.reduceDescriptors(Te.prototype, (function (e, t) { var r = e.value, n = t[0].toUpperCase() + t.slice(1); return { get: function () { return r }, set: function (e) { this[n] = e } } })), Q.freezeMethods(Te); var xe = Te; function Pe(e, t) { var r = this || Ee, n = t || r, o = xe.from(n.headers), i = n.data; return Q.forEach(e, (function (e) { i = e.call(r, i, o.normalize(), t ? t.status : void 0) })), o.normalize(), i } function Ne(e) { return !(!e || !e.__CANCEL__) } function ke(e, t, r) { Y.call(this, null == e ? "canceled" : e, Y.ERR_CANCELED, t, r), this.name = "CanceledError" } Q.inherits(ke, Y, { __CANCEL__: !0 }); var _e = ge.hasStandardBrowserEnv ? { write: function (e, t, r, n, o, i) { var a = [e + "=" + encodeURIComponent(t)]; Q.isNumber(r) && a.push("expires=" + new Date(r).toGMTString()), Q.isString(n) && a.push("path=" + n), Q.isString(o) && a.push("domain=" + o), !0 === i && a.push("secure"), document.cookie = a.join("; ") }, read: function (e) { var t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)")); return t ? decodeURIComponent(t[3]) : null }, remove: function (e) { this.write(e, "", Date.now() - 864e5) } } : { write: function () { }, read: function () { return null }, remove: function () { } }; function Le(e, t) { return e && !/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t) ? function (e, t) { return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e }(e, t) : t } var Ce = ge.hasStandardBrowserEnv ? function () { var e, t = /(msie|trident)/i.test(navigator.userAgent), r = document.createElement("a"); function n(e) { var n = e; return t && (r.setAttribute("href", n), n = r.href), r.setAttribute("href", n), { href: r.href, protocol: r.protocol ? r.protocol.replace(/:$/, "") : "", host: r.host, search: r.search ? r.search.replace(/^\?/, "") : "", hash: r.hash ? r.hash.replace(/^#/, "") : "", hostname: r.hostname, port: r.port, pathname: "/" === r.pathname.charAt(0) ? r.pathname : "/" + r.pathname } } return e = n(window.location.href), function (t) { var r = Q.isString(t) ? n(t) : t; return r.protocol === e.protocol && r.host === e.host } }() : function () { return !0 }; function Fe(e, t) { var r = 0, n = function (e, t) { e = e || 10; var r, n = new Array(e), o = new Array(e), i = 0, a = 0; return t = void 0 !== t ? t : 1e3, function (s) { var u = Date.now(), c = o[a]; r || (r = u), n[i] = s, o[i] = u; for (var f = a, l = 0; f !== i;)l += n[f++], f %= e; if ((i = (i + 1) % e) === a && (a = (a + 1) % e), !(u - r < t)) { var h = c && u - c; return h ? Math.round(1e3 * l / h) : void 0 } } }(50, 250); return function (o) { var i = o.loaded, a = o.lengthComputable ? o.total : void 0, s = i - r, u = n(s); r = i; var c = { loaded: i, total: a, progress: a ? i / a : void 0, bytes: s, rate: u || void 0, estimated: u && a && i <= a ? (a - i) / u : void 0, event: o }; c[t ? "download" : "upload"] = !0, e(c) } } var Ue = { http: null, xhr: "undefined" != typeof XMLHttpRequest && function (e) { return new Promise((function (t, r) { var n, o, i, a = e.data, s = xe.from(e.headers).normalize(), u = e.responseType, c = e.withXSRFToken; function f() { e.cancelToken && e.cancelToken.unsubscribe(n), e.signal && e.signal.removeEventListener("abort", n) } if (Q.isFormData(a)) if (ge.hasStandardBrowserEnv || ge.hasStandardBrowserWebWorkerEnv) s.setContentType(!1); else if (!1 !== (o = s.getContentType())) { var y = o ? o.split(";").map((function (e) { return e.trim() })).filter(Boolean) : [], m = h(i = y) || p(i) || d(i) || v(), g = m[0], b = m.slice(1); s.setContentType([g || "multipart/form-data"].concat(l(b)).join("; ")) } var w = new XMLHttpRequest; if (e.auth) { var E = e.auth.username || "", O = e.auth.password ? unescape(encodeURIComponent(e.auth.password)) : ""; s.set("Authorization", "Basic " + btoa(E + ":" + O)) } var S = Le(e.baseURL, e.url); function j() { if (w) { var n = xe.from("getAllResponseHeaders" in w && w.getAllResponseHeaders()); !function (e, t, r) { var n = r.config.validateStatus; r.status && n && !n(r.status) ? t(new Y("Request failed with status code " + r.status, [Y.ERR_BAD_REQUEST, Y.ERR_BAD_RESPONSE][Math.floor(r.status / 100) - 4], r.config, r.request, r)) : e(r) }((function (e) { t(e), f() }), (function (e) { r(e), f() }), { data: u && "text" !== u && "json" !== u ? w.response : w.responseText, status: w.status, statusText: w.statusText, headers: n, config: e, request: w }), w = null } } if (w.open(e.method.toUpperCase(), fe(S, e.params, e.paramsSerializer), !0), w.timeout = e.timeout, "onloadend" in w ? w.onloadend = j : w.onreadystatechange = function () { w && 4 === w.readyState && (0 !== w.status || w.responseURL && 0 === w.responseURL.indexOf("file:")) && setTimeout(j) }, w.onabort = function () { w && (r(new Y("Request aborted", Y.ECONNABORTED, e, w)), w = null) }, w.onerror = function () { r(new Y("Network Error", Y.ERR_NETWORK, e, w)), w = null }, w.ontimeout = function () { var t = e.timeout ? "timeout of " + e.timeout + "ms exceeded" : "timeout exceeded", n = e.transitional || pe; e.timeoutErrorMessage && (t = e.timeoutErrorMessage), r(new Y(t, n.clarifyTimeoutError ? Y.ETIMEDOUT : Y.ECONNABORTED, e, w)), w = null }, ge.hasStandardBrowserEnv && (c && Q.isFunction(c) && (c = c(e)), c || !1 !== c && Ce(S))) { var R = e.xsrfHeaderName && e.xsrfCookieName && _e.read(e.xsrfCookieName); R && s.set(e.xsrfHeaderName, R) } void 0 === a && s.setContentType(null), "setRequestHeader" in w && Q.forEach(s.toJSON(), (function (e, t) { w.setRequestHeader(t, e) })), Q.isUndefined(e.withCredentials) || (w.withCredentials = !!e.withCredentials), u && "json" !== u && (w.responseType = e.responseType), "function" == typeof e.onDownloadProgress && w.addEventListener("progress", Fe(e.onDownloadProgress, !0)), "function" == typeof e.onUploadProgress && w.upload && w.upload.addEventListener("progress", Fe(e.onUploadProgress)), (e.cancelToken || e.signal) && (n = function (t) { w && (r(!t || t.type ? new ke(null, e, w) : t), w.abort(), w = null) }, e.cancelToken && e.cancelToken.subscribe(n), e.signal && (e.signal.aborted ? n() : e.signal.addEventListener("abort", n))); var A, T = (A = /^([-+\w]{1,25})(:?\/\/|:)/.exec(S)) && A[1] || ""; T && -1 === ge.protocols.indexOf(T) ? r(new Y("Unsupported protocol " + T + ":", Y.ERR_BAD_REQUEST, e)) : w.send(a || null) })) } }; Q.forEach(Ue, (function (e, t) { if (e) { try { Object.defineProperty(e, "name", { value: t }) } catch (e) { } Object.defineProperty(e, "adapterName", { value: t }) } })); var De = function (e) { return "- ".concat(e) }, Be = function (e) { return Q.isFunction(e) || null === e || !1 === e }, Ie = function (e) { for (var t, r, n = (e = Q.isArray(e) ? e : [e]).length, o = {}, i = 0; i < n; i++) { var a = void 0; if (r = t = e[i], !Be(t) && void 0 === (r = Ue[(a = String(t)).toLowerCase()])) throw new Y("Unknown adapter '".concat(a, "'")); if (r) break; o[a || "#" + i] = r } if (!r) { var s = Object.entries(o).map((function (e) { var t = f(e, 2), r = t[0], n = t[1]; return "adapter ".concat(r, " ") + (!1 === n ? "is not supported by the environment" : "is not available in the build") })); throw new Y("There is no suitable adapter to dispatch the request " + (n ? s.length > 1 ? "since :\n" + s.map(De).join("\n") : " " + De(s[0]) : "as no adapter specified"), "ERR_NOT_SUPPORT") } return r }; function qe(e) { if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted) throw new ke(null, e) } function ze(e) { return qe(e), e.headers = xe.from(e.headers), e.data = Pe.call(e, e.transformRequest), -1 !== ["post", "put", "patch"].indexOf(e.method) && e.headers.setContentType("application/x-www-form-urlencoded", !1), Ie(e.adapter || Ee.adapter)(e).then((function (t) { return qe(e), t.data = Pe.call(e, e.transformResponse, t), t.headers = xe.from(t.headers), t }), (function (t) { return Ne(t) || (qe(e), t && t.response && (t.response.data = Pe.call(e, e.transformResponse, t.response), t.response.headers = xe.from(t.response.headers))), Promise.reject(t) })) } var Me = function (e) { return e instanceof xe ? t({}, e) : e }; function He(e, t) { t = t || {}; var r = {}; function n(e, t, r) { return Q.isPlainObject(e) && Q.isPlainObject(t) ? Q.merge.call({ caseless: r }, e, t) : Q.isPlainObject(t) ? Q.merge({}, t) : Q.isArray(t) ? t.slice() : t } function o(e, t, r) { return Q.isUndefined(t) ? Q.isUndefined(e) ? void 0 : n(void 0, e, r) : n(e, t, r) } function i(e, t) { if (!Q.isUndefined(t)) return n(void 0, t) } function a(e, t) { return Q.isUndefined(t) ? Q.isUndefined(e) ? void 0 : n(void 0, e) : n(void 0, t) } function s(r, o, i) { return i in t ? n(r, o) : i in e ? n(void 0, r) : void 0 } var u = { url: i, method: i, data: i, baseURL: a, transformRequest: a, transformResponse: a, paramsSerializer: a, timeout: a, timeoutMessage: a, withCredentials: a, withXSRFToken: a, adapter: a, responseType: a, xsrfCookieName: a, xsrfHeaderName: a, onUploadProgress: a, onDownloadProgress: a, decompress: a, maxContentLength: a, maxBodyLength: a, beforeRedirect: a, transport: a, httpAgent: a, httpsAgent: a, cancelToken: a, socketPath: a, responseEncoding: a, validateStatus: s, headers: function (e, t) { return o(Me(e), Me(t), !0) } }; return Q.forEach(Object.keys(Object.assign({}, e, t)), (function (n) { var i = u[n] || o, a = i(e[n], t[n], n); Q.isUndefined(a) && i !== s || (r[n] = a) })), r } var Je = "1.6.8", Ge = {};["object", "boolean", "number", "function", "string", "symbol"].forEach((function (e, t) { Ge[e] = function (r) { return o(r) === e || "a" + (t < 1 ? "n " : " ") + e } })); var We = {}; Ge.transitional = function (e, t, r) { function n(e, t) { return "[Axios v1.6.8] Transitional option '" + e + "'" + t + (r ? ". " + r : "") } return function (r, o, i) { if (!1 === e) throw new Y(n(o, " has been removed" + (t ? " in " + t : "")), Y.ERR_DEPRECATED); return t && !We[o] && (We[o] = !0, console.warn(n(o, " has been deprecated since v" + t + " and will be removed in the near future"))), !e || e(r, o, i) } }; var Ke = { assertOptions: function (e, t, r) { if ("object" !== o(e)) throw new Y("options must be an object", Y.ERR_BAD_OPTION_VALUE); for (var n = Object.keys(e), i = n.length; i-- > 0;) { var a = n[i], s = t[a]; if (s) { var u = e[a], c = void 0 === u || s(u, a, e); if (!0 !== c) throw new Y("option " + a + " must be " + c, Y.ERR_BAD_OPTION_VALUE) } else if (!0 !== r) throw new Y("Unknown option " + a, Y.ERR_BAD_OPTION) } }, validators: Ge }, Ve = Ke.validators, Xe = function () { function e(t) { a(this, e), this.defaults = t, this.interceptors = { request: new he, response: new he } } var t, n; return u(e, [{ key: "request", value: (t = r().mark((function e(t, n) { var o, i; return r().wrap((function (e) { for (; ;)switch (e.prev = e.next) { case 0: return e.prev = 0, e.next = 3, this._request(t, n); case 3: return e.abrupt("return", e.sent); case 6: throw e.prev = 6, e.t0 = e.catch(0), e.t0 instanceof Error && (Error.captureStackTrace ? Error.captureStackTrace(o = {}) : o = new Error, i = o.stack ? o.stack.replace(/^.+\n/, "") : "", e.t0.stack ? i && !String(e.t0.stack).endsWith(i.replace(/^.+\n.+\n/, "")) && (e.t0.stack += "\n" + i) : e.t0.stack = i), e.t0; case 10: case "end": return e.stop() } }), e, this, [[0, 6]]) })), n = function () { var e = this, r = arguments; return new Promise((function (n, o) { var a = t.apply(e, r); function s(e) { i(a, n, o, s, u, "next", e) } function u(e) { i(a, n, o, s, u, "throw", e) } s(void 0) })) }, function (e, t) { return n.apply(this, arguments) }) }, { key: "_request", value: function (e, t) { "string" == typeof e ? (t = t || {}).url = e : t = e || {}; var r = t = He(this.defaults, t), n = r.transitional, o = r.paramsSerializer, i = r.headers; void 0 !== n && Ke.assertOptions(n, { silentJSONParsing: Ve.transitional(Ve.boolean), forcedJSONParsing: Ve.transitional(Ve.boolean), clarifyTimeoutError: Ve.transitional(Ve.boolean) }, !1), null != o && (Q.isFunction(o) ? t.paramsSerializer = { serialize: o } : Ke.assertOptions(o, { encode: Ve.function, serialize: Ve.function }, !0)), t.method = (t.method || this.defaults.method || "get").toLowerCase(); var a = i && Q.merge(i.common, i[t.method]); i && Q.forEach(["delete", "get", "head", "post", "put", "patch", "common"], (function (e) { delete i[e] })), t.headers = xe.concat(a, i); var s = [], u = !0; this.interceptors.request.forEach((function (e) { "function" == typeof e.runWhen && !1 === e.runWhen(t) || (u = u && e.synchronous, s.unshift(e.fulfilled, e.rejected)) })); var c, f = []; this.interceptors.response.forEach((function (e) { f.push(e.fulfilled, e.rejected) })); var l, h = 0; if (!u) { var p = [ze.bind(this), void 0]; for (p.unshift.apply(p, s), p.push.apply(p, f), l = p.length, c = Promise.resolve(t); h < l;)c = c.then(p[h++], p[h++]); return c } l = s.length; var d = t; for (h = 0; h < l;) { var y = s[h++], v = s[h++]; try { d = y(d) } catch (e) { v.call(this, e); break } } try { c = ze.call(this, d) } catch (e) { return Promise.reject(e) } for (h = 0, l = f.length; h < l;)c = c.then(f[h++], f[h++]); return c } }, { key: "getUri", value: function (e) { return fe(Le((e = He(this.defaults, e)).baseURL, e.url), e.params, e.paramsSerializer) } }]), e }(); Q.forEach(["delete", "get", "head", "options"], (function (e) { Xe.prototype[e] = function (t, r) { return this.request(He(r || {}, { method: e, url: t, data: (r || {}).data })) } })), Q.forEach(["post", "put", "patch"], (function (e) { function t(t) { return function (r, n, o) { return this.request(He(o || {}, { method: e, headers: t ? { "Content-Type": "multipart/form-data" } : {}, url: r, data: n })) } } Xe.prototype[e] = t(), Xe.prototype[e + "Form"] = t(!0) })); var $e = Xe, Qe = function () { function e(t) { if (a(this, e), "function" != typeof t) throw new TypeError("executor must be a function."); var r; this.promise = new Promise((function (e) { r = e })); var n = this; this.promise.then((function (e) { if (n._listeners) { for (var t = n._listeners.length; t-- > 0;)n._listeners[t](e); n._listeners = null } })), this.promise.then = function (e) { var t, r = new Promise((function (e) { n.subscribe(e), t = e })).then(e); return r.cancel = function () { n.unsubscribe(t) }, r }, t((function (e, t, o) { n.reason || (n.reason = new ke(e, t, o), r(n.reason)) })) } return u(e, [{ key: "throwIfRequested", value: function () { if (this.reason) throw this.reason } }, { key: "subscribe", value: function (e) { this.reason ? e(this.reason) : this._listeners ? this._listeners.push(e) : this._listeners = [e] } }, { key: "unsubscribe", value: function (e) { if (this._listeners) { var t = this._listeners.indexOf(e); -1 !== t && this._listeners.splice(t, 1) } } }], [{ key: "source", value: function () { var t; return { token: new e((function (e) { t = e })), cancel: t } } }]), e }(); var Ye = { Continue: 100, SwitchingProtocols: 101, Processing: 102, EarlyHints: 103, Ok: 200, Created: 201, Accepted: 202, NonAuthoritativeInformation: 203, NoContent: 204, ResetContent: 205, PartialContent: 206, MultiStatus: 207, AlreadyReported: 208, ImUsed: 226, MultipleChoices: 300, MovedPermanently: 301, Found: 302, SeeOther: 303, NotModified: 304, UseProxy: 305, Unused: 306, TemporaryRedirect: 307, PermanentRedirect: 308, BadRequest: 400, Unauthorized: 401, PaymentRequired: 402, Forbidden: 403, NotFound: 404, MethodNotAllowed: 405, NotAcceptable: 406, ProxyAuthenticationRequired: 407, RequestTimeout: 408, Conflict: 409, Gone: 410, LengthRequired: 411, PreconditionFailed: 412, PayloadTooLarge: 413, UriTooLong: 414, UnsupportedMediaType: 415, RangeNotSatisfiable: 416, ExpectationFailed: 417, ImATeapot: 418, MisdirectedRequest: 421, UnprocessableEntity: 422, Locked: 423, FailedDependency: 424, TooEarly: 425, UpgradeRequired: 426, PreconditionRequired: 428, TooManyRequests: 429, RequestHeaderFieldsTooLarge: 431, UnavailableForLegalReasons: 451, InternalServerError: 500, NotImplemented: 501, BadGateway: 502, ServiceUnavailable: 503, GatewayTimeout: 504, HttpVersionNotSupported: 505, VariantAlsoNegotiates: 506, InsufficientStorage: 507, LoopDetected: 508, NotExtended: 510, NetworkAuthenticationRequired: 511 }; Object.entries(Ye).forEach((function (e) { var t = f(e, 2), r = t[0], n = t[1]; Ye[n] = r })); var Ze = Ye; var et = function e(t) { var r = new $e(t), n = m($e.prototype.request, r); return Q.extend(n, $e.prototype, r, { allOwnKeys: !0 }), Q.extend(n, r, null, { allOwnKeys: !0 }), n.create = function (r) { return e(He(t, r)) }, n }(Ee); return et.Axios = $e, et.CanceledError = ke, et.CancelToken = Qe, et.isCancel = Ne, et.VERSION = Je, et.toFormData = ie, et.AxiosError = Y, et.Cancel = et.CanceledError, et.all = function (e) { return Promise.all(e) }, et.spread = function (e) { return function (t) { return e.apply(null, t) } }, et.isAxiosError = function (e) { return Q.isObject(e) && !0 === e.isAxiosError }, et.mergeConfig = He, et.AxiosHeaders = xe, et.formToJSON = function (e) { return be(Q.isHTMLForm(e) ? new FormData(e) : e) }, et.getAdapter = Ie, et.HttpStatusCode = Ze, et.default = et, et })); +//# sourceMappingURL=axios.min.js.map \ No newline at end of file diff --git a/src/Microservices/Services/News/NewsAggregator.News/DTOs/NewsReactionDto.cs b/src/Microservices/Services/News/NewsAggregator.News/DTOs/NewsReactionDto.cs new file mode 100644 index 0000000..2580627 --- /dev/null +++ b/src/Microservices/Services/News/NewsAggregator.News/DTOs/NewsReactionDto.cs @@ -0,0 +1,17 @@ +namespace NewsAggregator.News.DTOs +{ + public class NewsReactionDto + { + public Guid NewsId { get; set; } + + public Guid ReactionId { get; set; } + + public string ReactionTitle { get; set; } + + public string? ReactionIconClass { get; set; } + + public string? ReactionIconColor { get; set; } + + public int Count { get; set; } + } +} diff --git a/src/Microservices/Services/News/NewsAggregator.News/Databases/EntityFramework/News/Migrations/20240330071514_AddedIconColorField.Designer.cs b/src/Microservices/Services/News/NewsAggregator.News/Databases/EntityFramework/News/Migrations/20240330071514_AddedIconColorField.Designer.cs new file mode 100644 index 0000000..6c23cbe --- /dev/null +++ b/src/Microservices/Services/News/NewsAggregator.News/Databases/EntityFramework/News/Migrations/20240330071514_AddedIconColorField.Designer.cs @@ -0,0 +1,6564 @@ +// +using System; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; +using NewsAggregator.News.Databases.EntityFramework.News; +using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; + +#nullable disable + +namespace NewsAggregator.News.Databases.EntityFramework.News.Migrations +{ + [DbContext(typeof(NewsDbContext))] + [Migration("20240330071514_AddedIconColorField")] + partial class AddedIconColorField + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "8.0.0") + .HasAnnotation("Relational:MaxIdentifierLength", 63); + + NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); + + modelBuilder.Entity("NewsAggregator.News.Entities.News", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uuid") + .HasColumnName("id"); + + b.Property("AddedAt") + .HasColumnType("timestamp with time zone") + .HasColumnName("added_at"); + + b.Property("EditorId") + .HasColumnType("uuid") + .HasColumnName("editor_id"); + + b.Property("ModifiedAt") + .HasColumnType("timestamp with time zone") + .HasColumnName("modified_at"); + + b.Property("ParsedAt") + .HasColumnType("timestamp with time zone") + .HasColumnName("parsed_at"); + + b.Property("PublishedAt") + .HasColumnType("timestamp with time zone") + .HasColumnName("published_at"); + + b.Property("Title") + .IsRequired() + .HasColumnType("text") + .HasColumnName("title"); + + b.Property("Url") + .IsRequired() + .HasColumnType("text") + .HasColumnName("url"); + + b.HasKey("Id") + .HasName("pk_news"); + + b.HasIndex("AddedAt") + .HasDatabaseName("ix_news_added_at"); + + b.HasIndex("EditorId") + .HasDatabaseName("ix_news_editor_id"); + + b.HasIndex("ModifiedAt") + .HasDatabaseName("ix_news_modified_at"); + + b.HasIndex("ParsedAt") + .HasDatabaseName("ix_news_parsed_at"); + + b.HasIndex("PublishedAt") + .HasDatabaseName("ix_news_published_at"); + + b.HasIndex("Title") + .HasDatabaseName("ix_news_title"); + + b.HasIndex("Url") + .HasDatabaseName("ix_news_url"); + + b.ToTable("news", (string)null); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsEditor", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uuid") + .HasColumnName("id"); + + b.Property("Name") + .IsRequired() + .HasColumnType("text") + .HasColumnName("name"); + + b.Property("SourceId") + .HasColumnType("uuid") + .HasColumnName("source_id"); + + b.HasKey("Id") + .HasName("pk_news_editors"); + + b.HasIndex("Name") + .HasDatabaseName("ix_news_editors_name"); + + b.HasIndex("SourceId") + .HasDatabaseName("ix_news_editors_source_id"); + + b.ToTable("news_editors", (string)null); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsHtmlDescription", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uuid") + .HasColumnName("id"); + + b.Property("Description") + .IsRequired() + .HasColumnType("text") + .HasColumnName("description"); + + b.Property("NewsId") + .HasColumnType("uuid") + .HasColumnName("news_id"); + + b.HasKey("Id") + .HasName("pk_news_html_descriptions"); + + b.HasIndex("NewsId") + .IsUnique() + .HasDatabaseName("ix_news_html_descriptions_news_id"); + + b.ToTable("news_html_descriptions", (string)null); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsParseEditorSettings", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uuid") + .HasColumnName("id"); + + b.Property("IsRequired") + .HasColumnType("boolean") + .HasColumnName("is_required"); + + b.Property("NameXPath") + .IsRequired() + .HasColumnType("text") + .HasColumnName("name_x_path"); + + b.Property("ParseSettingsId") + .HasColumnType("uuid") + .HasColumnName("parse_settings_id"); + + b.HasKey("Id") + .HasName("pk_news_parse_editor_settings"); + + b.HasIndex("ParseSettingsId") + .IsUnique() + .HasDatabaseName("ix_news_parse_editor_settings_parse_settings_id"); + + b.ToTable("news_parse_editor_settings", (string)null); + + b.HasData( + new + { + Id = new Guid("e1a6a4f1-57ab-48e6-aaee-b9ece2104cf3"), + IsRequired = false, + NameXPath = "//meta[@name='mediator_author']/@content", + ParseSettingsId = new Guid("da641510-f1dd-4fce-b895-cbf32dca79bf") + }, + new + { + Id = new Guid("6718a708-10eb-4943-be1b-5be29565414f"), + IsRequired = false, + NameXPath = "//div[@class='topic-authors']/a[@class='topic-authors__author']/text()", + ParseSettingsId = new Guid("a39fd0cf-d695-451a-8ec5-b662eddf4e9e") + }, + new + { + Id = new Guid("8e018d32-828c-478d-a19f-8a06fd1fa797"), + IsRequired = false, + NameXPath = "//div[contains(@class, 'PageArticleContent_authors')]//a[contains(@class, 'LinksOfAuthor_item')]/text()", + ParseSettingsId = new Guid("52014d82-bd2b-47fb-9ba1-668df2126197") + }, + new + { + Id = new Guid("17461131-afc7-41bd-af3b-0f2cda2dd935"), + IsRequired = false, + NameXPath = "//div[@class='article_top']//div[@class='authors']//div[@class='autor']//span/text()", + ParseSettingsId = new Guid("e8ea5810-3cc4-46dd-84d7-eb7b5cbf3f3b") + }, + new + { + Id = new Guid("9a6e6c25-1720-4eea-b8df-2195d32dfb46"), + IsRequired = false, + NameXPath = "//div[@class='article__authors']//*[@class='article__authors__author']/span[@class='article__authors__author__name']/text()", + ParseSettingsId = new Guid("929687ee-eb6f-4e95-852d-9635657d7f89") + }, + new + { + Id = new Guid("02333a48-69aa-4492-a33f-3ac9324d3970"), + IsRequired = false, + NameXPath = "//footer[@class='news-item__footer']/div[@class='news-item__footer-after-news']/p[position()=1]//span/text()", + ParseSettingsId = new Guid("8c399ef5-9d29-4442-a621-52867b8e7f6d") + }, + new + { + Id = new Guid("39793598-0239-4802-87f3-f04d404eee1c"), + IsRequired = false, + NameXPath = "//p[@class='doc__text document_authors']/text()", + ParseSettingsId = new Guid("efd9bf27-abb2-46c2-bedb-dc7e745e55fb") + }, + new + { + Id = new Guid("d553ac3d-a4af-4359-9e9b-802bf0c62bcc"), + IsRequired = false, + NameXPath = "//meta[@property='article:author']/@content", + ParseSettingsId = new Guid("9de1ef08-878b-4559-85af-a8b14d7ce68b") + }, + new + { + Id = new Guid("5e370949-45e8-4537-8855-cba4ecc363b4"), + IsRequired = false, + NameXPath = "//a[@class='article__author']/text()", + ParseSettingsId = new Guid("4c29ab0b-01eb-466e-8dc3-fe05886f4332") + }, + new + { + Id = new Guid("47aebca8-87d6-4241-81c5-a65b23518f8a"), + IsRequired = false, + NameXPath = "//article//header//div[@class='b-authors']/div[@class='b-author' and position()=1]//text()", + ParseSettingsId = new Guid("68faffa0-b7e6-44bb-a958-441eb532bfbb") + }, + new + { + Id = new Guid("c8b007a9-e3db-4231-9a5f-5aa3f103e49a"), + IsRequired = false, + NameXPath = "//article/p[@class='author']/text()", + ParseSettingsId = new Guid("a1b03754-30d4-4c65-946d-10995830a159") + }, + new + { + Id = new Guid("4664ca50-bfde-4200-a8eb-af35872e79dd"), + IsRequired = false, + NameXPath = "//meta[@property='article:author']/@content", + ParseSettingsId = new Guid("052241f9-e3e7-4722-9f56-7202de4a331e") + }, + new + { + Id = new Guid("cae0e909-1bff-4b11-8c86-70eff32fa743"), + IsRequired = false, + NameXPath = "//div[contains(@class, 'styles_bodyWrapper')]//div[contains(@class, 'styles_authorsLinks')]/a/text()", + ParseSettingsId = new Guid("3373c5b8-57e2-402b-9dfb-a0ae19e92336") + }, + new + { + Id = new Guid("a5a0d928-4db3-49a7-8a52-2ba8d93fd651"), + IsRequired = false, + NameXPath = "//meta[@name='mediator_author']/@content", + ParseSettingsId = new Guid("44d47f91-a811-4cc3-a70f-f12236d1476d") + }, + new + { + Id = new Guid("f6679100-82e3-4e0d-98a9-de90246ccf3a"), + IsRequired = false, + NameXPath = "//span[@itemprop='author']/span[@itemprop='name']/@content", + ParseSettingsId = new Guid("96ef6e5b-c81b-45e7-a715-1aa131d82ef2") + }, + new + { + Id = new Guid("325ee59a-478b-4ea2-991b-06c65c269bbe"), + IsRequired = false, + NameXPath = "//div[@class='container-fluid publication-footer']//a[contains(@class, 'text-secondary')]/@title", + ParseSettingsId = new Guid("f1b027fc-2809-4eaa-9858-c49a8756852f") + }, + new + { + Id = new Guid("91108b0c-0f51-4946-b639-e9b8e67c48b9"), + IsRequired = false, + NameXPath = "//div[@class='author']/span[@itemprop='author']/span[@itemprop='name']/a/text()", + ParseSettingsId = new Guid("60a60886-4da0-4c2c-8635-a8ec57827667") + }, + new + { + Id = new Guid("20786554-85aa-42a5-80f3-953dccb09f55"), + IsRequired = false, + NameXPath = "//meta[@name='author']/@content", + ParseSettingsId = new Guid("aed24362-5c8e-4b31-9bbe-bb068f9c0f01") + }, + new + { + Id = new Guid("6d70075b-0b7b-4da3-8e5b-a312f268a3a9"), + IsRequired = false, + NameXPath = "//div[@itemprop='author']/span[@itemprop='name']/text()", + ParseSettingsId = new Guid("d477dceb-5655-432b-8bca-b2ca2d944d87") + }, + new + { + Id = new Guid("ce13e4cd-82df-4d2b-87e1-9256c5ef8c7c"), + IsRequired = false, + NameXPath = "//div[@itemprop='author']//p[@itemprop='name']/text()", + ParseSettingsId = new Guid("e4542056-2c68-43c6-a85c-9e4899556800") + }, + new + { + Id = new Guid("f28a4798-e796-400d-ab07-ddb5bb21be43"), + IsRequired = false, + NameXPath = "//*[@itemprop='author']/*[@itemprop='name']//text()", + ParseSettingsId = new Guid("921d7c0a-c084-4188-b243-d08580f65142") + }, + new + { + Id = new Guid("7a85f179-0e73-4d6e-9792-5d93a47e0484"), + IsRequired = false, + NameXPath = "//article//span[@class='author']/a[@class='authorName']/span/text()", + ParseSettingsId = new Guid("f63d1e4f-e82d-4020-8b9c-65beaab1d7c3") + }, + new + { + Id = new Guid("48a9b834-59bb-4398-8526-318c506c58eb"), + IsRequired = false, + NameXPath = "//span[@itemprop='name']/a/text()", + ParseSettingsId = new Guid("3c4ef27a-3157-4eff-a441-1e409c4b6c34") + }, + new + { + Id = new Guid("502c8f33-a803-4578-83b9-a024d2b92510"), + IsRequired = false, + NameXPath = "//meta[@name='author']/@content", + ParseSettingsId = new Guid("2de49bdd-5c36-49ff-9a3b-a1f6ceb75e75") + }, + new + { + Id = new Guid("6ef19113-6578-47ed-93c8-b2b61cd13d08"), + IsRequired = false, + NameXPath = "//div[contains(@class, 'styled__StoryInfoAuthors')]/div[contains(@class, 'styled__InfoAuthor')]//span[contains(@class, 'styled__AuthorName')]/text()", + ParseSettingsId = new Guid("2d46f779-c13c-4699-9460-629e254a6444") + }, + new + { + Id = new Guid("4b846398-fc4c-4c1f-adac-2bc61fea6752"), + IsRequired = false, + NameXPath = "//div[@class='preview__author-block']//div[@class='author__about']/a[@itemprop='name']/@content", + ParseSettingsId = new Guid("e3fcdd00-2152-4d84-8f8c-bf70e4996990") + }, + new + { + Id = new Guid("73e2d740-d23b-44d5-b0a4-634da72f0daf"), + IsRequired = false, + NameXPath = "//span[@class='author']/a/text()", + ParseSettingsId = new Guid("613dbfcf-7f5c-4060-a92a-d2ec7586f4a3") + }, + new + { + Id = new Guid("d577c838-8fed-45ba-850b-18bf437c06f3"), + IsRequired = false, + NameXPath = "//meta[@property='article:author']/@content", + ParseSettingsId = new Guid("32cad97f-b071-4e24-bdc9-10e5e58cf99b") + }, + new + { + Id = new Guid("dd3601cc-4a2c-480f-9860-9f5183d8c67a"), + IsRequired = false, + NameXPath = "//meta[@name='author']/@content", + ParseSettingsId = new Guid("49c1bb0c-b546-4142-a7ba-4925f71a933c") + }, + new + { + Id = new Guid("118e708c-8b15-496c-bffd-1f30c5679ba8"), + IsRequired = false, + NameXPath = "//section[contains(@class, '_page-section')]//div[contains(@class, '_bottom-info_')]//span[contains(@class, '_user-info__name_')]/text()", + ParseSettingsId = new Guid("be3e061e-25f4-4b43-a9f6-45db165b6000") + }, + new + { + Id = new Guid("62ed2534-e043-4f4d-a1ac-b9be0a4d9bbd"), + IsRequired = false, + NameXPath = "//div[@class='article__content']//strong[text()='Автор:']/../text()", + ParseSettingsId = new Guid("611bd50e-69f5-4598-8ad6-8b19771f1044") + }, + new + { + Id = new Guid("5b0a65b8-54c9-432e-8962-d3016e02c01e"), + IsRequired = false, + NameXPath = "//meta[@name='article:author']/@content", + ParseSettingsId = new Guid("5726d5dd-18ac-4c5c-a5d1-f775f1dd0b20") + }, + new + { + Id = new Guid("0f72771a-3c4e-4a38-9ab5-fe96f01728af"), + IsRequired = false, + NameXPath = "//meta[@property='author']/@content", + ParseSettingsId = new Guid("fa16a108-45c2-42e4-8323-b1f3ea3cdf46") + }, + new + { + Id = new Guid("b6c8fbce-f0fa-4d28-b166-8ee9efb9f04f"), + IsRequired = false, + NameXPath = "//meta[@property='ajur:article:authors']/@content", + ParseSettingsId = new Guid("d36d75dc-add7-4e21-8a31-2f40f4033b14") + }, + new + { + Id = new Guid("e70fb7e3-35e6-4afa-ace8-b93a95bf5121"), + IsRequired = false, + NameXPath = "//div[@class='article__announce-authors']/a[@itemprop='author']/span[@itemprop='name']/text()", + ParseSettingsId = new Guid("a7d88817-12e6-434a-8c25-949dde2609f4") + }, + new + { + Id = new Guid("a7340062-15ee-4ea9-b6c5-1ea46f299c49"), + IsRequired = false, + NameXPath = "//div[@class='blog-post-info']//div[@itemprop='author']//span[@itemprop='name']/text()", + ParseSettingsId = new Guid("52ac2f5a-3b95-4adc-9c2a-abd192a1ec26") + }, + new + { + Id = new Guid("c89266cc-1f5c-4839-8b7c-e86ba789c36d"), + IsRequired = false, + NameXPath = "//div[@id='content']//div[contains(@class, 'topic')]/ul[contains(@class, 'blog_more')]//li[@class='author']//text()", + ParseSettingsId = new Guid("289bab5a-8dd4-4ca7-a510-ff6a496b3993") + }, + new + { + Id = new Guid("0f7f9888-b12e-48cc-931c-8380d9e8e7e4"), + IsRequired = false, + NameXPath = "//meta[@property='article:author']/@content", + ParseSettingsId = new Guid("6d16ec92-860e-4bd8-9618-1e5b2ac5a792") + }, + new + { + Id = new Guid("9dc5c8f6-835a-44c5-bb98-2d988cd7001d"), + IsRequired = false, + NameXPath = "//div[@class='newsDetail-body__item-header']/a[contains(@class, 'newsDetail-person')]//p[contains(@class, 'newsDetail-person__info-name')]/text()", + ParseSettingsId = new Guid("a03ca9fd-6e2d-4da5-9017-5feb6a9a1404") + }, + new + { + Id = new Guid("3dc22c77-8081-46cf-b981-fb88b2bfcece"), + IsRequired = false, + NameXPath = "//meta[@property='article:author']/@content", + ParseSettingsId = new Guid("dd419d1c-db40-4fd4-8f12-34206242d7cc") + }, + new + { + Id = new Guid("8f7062f8-e5f9-429b-900f-98412ea04f84"), + IsRequired = false, + NameXPath = "//div[@class='GeneralMaterial-module-materialHeader']//div[contains(@class, 'MetaItem-module_hasSource') and not(time)]/text()", + ParseSettingsId = new Guid("6a7db6d7-c4ec-471c-93e2-9f7b9dd9180c") + }, + new + { + Id = new Guid("10957082-a831-4ffb-86e1-379efef08111"), + IsRequired = false, + NameXPath = "//header//div[contains(@class, 'bottom-header')]//div[contains(@class, 'author-list')]//a[contains(@class, 'headshot__link') and @data-vars-subunit-name='author']/@data-vars-item-name", + ParseSettingsId = new Guid("32b2600c-03b7-4d2d-ace8-77b11e1a5041") + }, + new + { + Id = new Guid("cb8f6ea0-5566-4656-a109-c2daadc5b5a0"), + IsRequired = false, + NameXPath = "//meta[@name='dc.creator']/@content", + ParseSettingsId = new Guid("00a974a4-e223-45fb-965e-97269039d94a") + }, + new + { + Id = new Guid("eabe266c-ac67-4803-8901-6deb6edfa5e6"), + IsRequired = false, + NameXPath = "//div[@class='story-meta']//p[@class='story-meta__authors']/span[@class='vcard']/a/text()", + ParseSettingsId = new Guid("1a5ca4c2-2984-4c52-9fa2-d7f564fd6add") + }); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsParseError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uuid") + .HasColumnName("id"); + + b.Property("CreatedAt") + .HasColumnType("timestamp with time zone") + .HasColumnName("created_at"); + + b.Property("Message") + .IsRequired() + .HasColumnType("text") + .HasColumnName("message"); + + b.Property("NewsUrl") + .IsRequired() + .HasColumnType("text") + .HasColumnName("news_url"); + + b.HasKey("Id") + .HasName("pk_news_parse_errors"); + + b.HasIndex("CreatedAt") + .HasDatabaseName("ix_news_parse_errors_created_at"); + + b.HasIndex("NewsUrl") + .HasDatabaseName("ix_news_parse_errors_news_url"); + + b.ToTable("news_parse_errors", (string)null); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsParseModifiedAtSettings", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uuid") + .HasColumnName("id"); + + b.Property("IsRequired") + .HasColumnType("boolean") + .HasColumnName("is_required"); + + b.Property("ModifiedAtCultureInfo") + .IsRequired() + .HasColumnType("text") + .HasColumnName("modified_at_culture_info"); + + b.Property("ModifiedAtTimeZoneInfoId") + .HasColumnType("text") + .HasColumnName("modified_at_time_zone_info_id"); + + b.Property("ModifiedAtXPath") + .IsRequired() + .HasColumnType("text") + .HasColumnName("modified_at_x_path"); + + b.Property("ParseSettingsId") + .HasColumnType("uuid") + .HasColumnName("parse_settings_id"); + + b.HasKey("Id") + .HasName("pk_news_parse_modified_at_settings"); + + b.HasIndex("ParseSettingsId") + .IsUnique() + .HasDatabaseName("ix_news_parse_modified_at_settings_parse_settings_id"); + + b.ToTable("news_parse_modified_at_settings", (string)null); + + b.HasData( + new + { + Id = new Guid("3c897305-c4ad-42b1-9cb8-a550d075139c"), + IsRequired = false, + ModifiedAtCultureInfo = "ru-RU", + ModifiedAtTimeZoneInfoId = "Russian Standard Time", + ModifiedAtXPath = "//meta[@property='article:modified_time']/@content", + ParseSettingsId = new Guid("9d11efde-ae9c-42a7-ac57-649bf5891e8a") + }, + new + { + Id = new Guid("307744f1-4338-481a-b849-b8d88c196cc3"), + IsRequired = false, + ModifiedAtCultureInfo = "ru-RU", + ModifiedAtTimeZoneInfoId = "UTC", + ModifiedAtXPath = "//div[contains(@class, 'NewsHeader')]//div[contains(@class, 'PublishedMark_update')]//span[@ca-ts]/text()", + ParseSettingsId = new Guid("28bff881-79f7-400c-ab5d-489176c269bb") + }, + new + { + Id = new Guid("90f502b6-e728-4f0a-b937-c264a9e683fd"), + IsRequired = false, + ModifiedAtCultureInfo = "ru-RU", + ModifiedAtTimeZoneInfoId = "Russian Standard Time", + ModifiedAtXPath = "//meta[@property='article:modified_time']/@content", + ParseSettingsId = new Guid("52014d82-bd2b-47fb-9ba1-668df2126197") + }, + new + { + Id = new Guid("46cff913-17ee-438f-8f82-778002dbdcac"), + IsRequired = false, + ModifiedAtCultureInfo = "ru-RU", + ModifiedAtTimeZoneInfoId = "Russian Standard Time", + ModifiedAtXPath = "//meta[@name='article:modified_time']/@content", + ParseSettingsId = new Guid("e8ea5810-3cc4-46dd-84d7-eb7b5cbf3f3b") + }, + new + { + Id = new Guid("ffa17401-2b75-485d-a098-da254f125362"), + IsRequired = false, + ModifiedAtCultureInfo = "ru-RU", + ModifiedAtXPath = "//meta[@itemprop='dateModified']/@content", + ParseSettingsId = new Guid("929687ee-eb6f-4e95-852d-9635657d7f89") + }, + new + { + Id = new Guid("25fa301c-d896-4a5e-b580-2dba44900fb6"), + IsRequired = false, + ModifiedAtCultureInfo = "ru-RU", + ModifiedAtXPath = "//meta[@property='article:modified_time']/@content", + ParseSettingsId = new Guid("efd9bf27-abb2-46c2-bedb-dc7e745e55fb") + }, + new + { + Id = new Guid("59699417-64ea-4f42-9573-68a21d4fdbe7"), + IsRequired = false, + ModifiedAtCultureInfo = "ru-RU", + ModifiedAtXPath = "//meta[@property='article:modified_time']/@content", + ParseSettingsId = new Guid("9de1ef08-878b-4559-85af-a8b14d7ce68b") + }, + new + { + Id = new Guid("39d1b1e4-aa28-41b0-a55a-fffe8e406645"), + IsRequired = false, + ModifiedAtCultureInfo = "ru-RU", + ModifiedAtXPath = "//meta[@property='article:modified_time']/@content", + ParseSettingsId = new Guid("4c29ab0b-01eb-466e-8dc3-fe05886f4332") + }, + new + { + Id = new Guid("62afc18d-a34f-4989-8c4c-2a5d7deabf6b"), + IsRequired = false, + ModifiedAtCultureInfo = "ru-RU", + ModifiedAtTimeZoneInfoId = "Russian Standard Time", + ModifiedAtXPath = "//meta[@property='article:modified_time']/@content", + ParseSettingsId = new Guid("77a6c5a1-b883-444f-ba7e-f0289943947f") + }, + new + { + Id = new Guid("b8626e48-242d-48e4-aa30-8ca2936a0d59"), + IsRequired = false, + ModifiedAtCultureInfo = "ru-RU", + ModifiedAtTimeZoneInfoId = "Russian Standard Time", + ModifiedAtXPath = "//meta[@itemprop='dateModified']/@content", + ParseSettingsId = new Guid("5c2d9dff-16d7-47f9-8d32-07f8fb52ac76") + }, + new + { + Id = new Guid("91c40a45-f102-46d4-bd9b-4e11869f18cd"), + IsRequired = false, + ModifiedAtCultureInfo = "ru-RU", + ModifiedAtXPath = "//meta[@property='article:modified_time']/@content", + ParseSettingsId = new Guid("aed24362-5c8e-4b31-9bbe-bb068f9c0f01") + }, + new + { + Id = new Guid("0a1fc27b-5f76-4a98-acd2-c3f98852d1c0"), + IsRequired = false, + ModifiedAtCultureInfo = "ru-RU", + ModifiedAtXPath = "//meta[@itemprop='dateModified']/@content", + ParseSettingsId = new Guid("e4542056-2c68-43c6-a85c-9e4899556800") + }, + new + { + Id = new Guid("9980ee74-f655-40af-b44e-c9feb0e0bd40"), + IsRequired = false, + ModifiedAtCultureInfo = "ru-RU", + ModifiedAtXPath = "//meta[@itemprop='dateModified']/@content", + ParseSettingsId = new Guid("921d7c0a-c084-4188-b243-d08580f65142") + }, + new + { + Id = new Guid("da1fb28b-2afb-461a-9cf2-6e65a9c6963d"), + IsRequired = false, + ModifiedAtCultureInfo = "ru-RU", + ModifiedAtXPath = "//meta[@property='article:modified_time']/@content", + ParseSettingsId = new Guid("11795391-d20d-48df-ab38-30f796737a43") + }, + new + { + Id = new Guid("4adf1a9f-ac4c-4f17-932b-aac460d0d2f2"), + IsRequired = false, + ModifiedAtCultureInfo = "en-US", + ModifiedAtXPath = "//meta[@property='article:modified_time']/@content", + ParseSettingsId = new Guid("3c4ef27a-3157-4eff-a441-1e409c4b6c34") + }, + new + { + Id = new Guid("033e507a-cb9d-403f-a8cb-48238e03607b"), + IsRequired = false, + ModifiedAtCultureInfo = "en-US", + ModifiedAtXPath = "//meta[@property='article:modified_time']/@content", + ParseSettingsId = new Guid("2de49bdd-5c36-49ff-9a3b-a1f6ceb75e75") + }, + new + { + Id = new Guid("700ffddc-d0a5-450a-b756-deabd7bfed18"), + IsRequired = false, + ModifiedAtCultureInfo = "ru-RU", + ModifiedAtTimeZoneInfoId = "Russian Standard Time", + ModifiedAtXPath = "//meta[@property='article:modified_time']/@content", + ParseSettingsId = new Guid("76b3ad9b-48c5-4f9e-ab28-993ba795fdb1") + }, + new + { + Id = new Guid("6dc53704-3d38-47f9-9efa-7604da400355"), + IsRequired = false, + ModifiedAtCultureInfo = "ru-RU", + ModifiedAtTimeZoneInfoId = "Russian Standard Time", + ModifiedAtXPath = "//meta[@itemprop='dateModified']/@content", + ParseSettingsId = new Guid("692ba156-95b9-4a24-9b0c-71b769e8d3a8") + }, + new + { + Id = new Guid("348a6cf9-f469-4f19-a12c-bdc3f525947c"), + IsRequired = false, + ModifiedAtCultureInfo = "ru-RU", + ModifiedAtXPath = "//meta[@itemprop='dateModified']/@content", + ParseSettingsId = new Guid("49c1bb0c-b546-4142-a7ba-4925f71a933c") + }, + new + { + Id = new Guid("350279da-c53a-42a7-abad-a3097a881261"), + IsRequired = false, + ModifiedAtCultureInfo = "ru-RU", + ModifiedAtXPath = "//meta[@property='article:modified_time']/@content", + ParseSettingsId = new Guid("cba88caa-d8af-4e40-b8fa-14946187e939") + }, + new + { + Id = new Guid("c8cda125-f32f-492a-9d65-c1e0abb69300"), + IsRequired = false, + ModifiedAtCultureInfo = "ru-RU", + ModifiedAtTimeZoneInfoId = "Russian Standard Time", + ModifiedAtXPath = "//meta[@property='article:modified_time']/@content", + ParseSettingsId = new Guid("5726d5dd-18ac-4c5c-a5d1-f775f1dd0b20") + }, + new + { + Id = new Guid("75386858-8fad-48aa-bea8-d5aec36c1f8f"), + IsRequired = false, + ModifiedAtCultureInfo = "ru-RU", + ModifiedAtXPath = "//meta[@itemprop='dateModified']/@content", + ParseSettingsId = new Guid("a7d88817-12e6-434a-8c25-949dde2609f4") + }, + new + { + Id = new Guid("a62f2d07-0e56-4bdc-a6de-c061d313bea9"), + IsRequired = false, + ModifiedAtCultureInfo = "ru-RU", + ModifiedAtTimeZoneInfoId = "Russian Standard Time", + ModifiedAtXPath = "//meta[@property='og:updated_time']/@content", + ParseSettingsId = new Guid("c965a1d0-83b6-4018-a4a5-9c426a02943e") + }, + new + { + Id = new Guid("4aeb273b-8983-4ed7-adf0-74ff9bdfb4ab"), + IsRequired = false, + ModifiedAtCultureInfo = "ru-RU", + ModifiedAtTimeZoneInfoId = "Russian Standard Time", + ModifiedAtXPath = "//meta[@property='article:modified_time']/@content", + ParseSettingsId = new Guid("52ac2f5a-3b95-4adc-9c2a-abd192a1ec26") + }, + new + { + Id = new Guid("458c1359-0212-451f-9c05-a6d043114989"), + IsRequired = false, + ModifiedAtCultureInfo = "ru-RU", + ModifiedAtTimeZoneInfoId = "Russian Standard Time", + ModifiedAtXPath = "//meta[@property='article:modified_time']/@content", + ParseSettingsId = new Guid("dd419d1c-db40-4fd4-8f12-34206242d7cc") + }, + new + { + Id = new Guid("50257fdd-fcc6-4a8e-822c-4834d0f1d762"), + IsRequired = false, + ModifiedAtCultureInfo = "en-US", + ModifiedAtXPath = "//meta[@property='article:modified_time']/@content", + ParseSettingsId = new Guid("32b2600c-03b7-4d2d-ace8-77b11e1a5041") + }, + new + { + Id = new Guid("48f6b66c-3b41-49fd-b4ec-d2d1e3ced579"), + IsRequired = false, + ModifiedAtCultureInfo = "en-US", + ModifiedAtXPath = "//meta[@name='dcterms.modified']/@content", + ParseSettingsId = new Guid("00a974a4-e223-45fb-965e-97269039d94a") + }, + new + { + Id = new Guid("ac1075c5-1536-4691-bc44-c67665d0e2e2"), + IsRequired = false, + ModifiedAtCultureInfo = "en-US", + ModifiedAtTimeZoneInfoId = "Eastern Standard Time", + ModifiedAtXPath = "//div[@class='story-meta']//p[@class='story-meta__updated']/time/@datetime", + ParseSettingsId = new Guid("1a5ca4c2-2984-4c52-9fa2-d7f564fd6add") + }); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsParseModifiedAtSettingsFormat", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uuid") + .HasColumnName("id"); + + b.Property("Format") + .IsRequired() + .HasColumnType("text") + .HasColumnName("format"); + + b.Property("NewsParseModifiedAtSettingsId") + .HasColumnType("uuid") + .HasColumnName("news_parse_modified_at_settings_id"); + + b.HasKey("Id") + .HasName("pk_news_parse_modified_at_settings_formats"); + + b.HasIndex("NewsParseModifiedAtSettingsId") + .HasDatabaseName("ix_news_parse_modified_at_settings_formats_news_parse_modified"); + + b.ToTable("news_parse_modified_at_settings_formats", (string)null); + + b.HasData( + new + { + Id = new Guid("c4c8a06a-a104-4e0e-87d1-4fa02bdfa36a"), + Format = "yyyyMMddTHHmm", + NewsParseModifiedAtSettingsId = new Guid("3c897305-c4ad-42b1-9cb8-a550d075139c") + }, + new + { + Id = new Guid("4084a0b1-75dd-4ab0-9b43-d2d569dfc7c7"), + Format = "\"обновлено\" d MMMM yyyy, HH:mm", + NewsParseModifiedAtSettingsId = new Guid("307744f1-4338-481a-b849-b8d88c196cc3") + }, + new + { + Id = new Guid("61a158be-a01d-42c1-a474-2bbc66775a60"), + Format = "\"обновлено\" d MMMM, HH:mm", + NewsParseModifiedAtSettingsId = new Guid("307744f1-4338-481a-b849-b8d88c196cc3") + }, + new + { + Id = new Guid("a622e5c8-becb-44ac-809b-89da6191fa11"), + Format = "yyyy-MM-ddTHH:mm:ss", + NewsParseModifiedAtSettingsId = new Guid("90f502b6-e728-4f0a-b937-c264a9e683fd") + }, + new + { + Id = new Guid("a6d9eabc-e130-4d14-9cdf-1d0374e5fc6e"), + Format = "yyyy-MM-ddTHH:mm:ss\"+0300\"", + NewsParseModifiedAtSettingsId = new Guid("46cff913-17ee-438f-8f82-778002dbdcac") + }, + new + { + Id = new Guid("06d2ec66-84f2-448c-808e-d5a50facb4cc"), + Format = "yyyy-MM-ddTHH:mm:sszzz", + NewsParseModifiedAtSettingsId = new Guid("ffa17401-2b75-485d-a098-da254f125362") + }, + new + { + Id = new Guid("d2673a76-54a4-4013-8596-c648d3e16aa7"), + Format = "yyyy-MM-ddTHH:mm:sszzz", + NewsParseModifiedAtSettingsId = new Guid("25fa301c-d896-4a5e-b580-2dba44900fb6") + }, + new + { + Id = new Guid("73cf32f0-bb16-4319-935b-76de58df264b"), + Format = "yyyy-MM-ddTHH:mm:sszzz", + NewsParseModifiedAtSettingsId = new Guid("59699417-64ea-4f42-9573-68a21d4fdbe7") + }, + new + { + Id = new Guid("c18f4a2e-e149-4310-9311-f46c52acada0"), + Format = "yyyy-MM-ddTHH:mmzzz", + NewsParseModifiedAtSettingsId = new Guid("39d1b1e4-aa28-41b0-a55a-fffe8e406645") + }, + new + { + Id = new Guid("9ac871c4-a009-4f03-8920-3166aa64deeb"), + Format = "yyyy-MM-dd HH:mm:ss", + NewsParseModifiedAtSettingsId = new Guid("62afc18d-a34f-4989-8c4c-2a5d7deabf6b") + }, + new + { + Id = new Guid("10a053d0-a81c-42a6-a032-1a217bc6e9c1"), + Format = "yyyy-MM-ddTHH:mm:ss", + NewsParseModifiedAtSettingsId = new Guid("b8626e48-242d-48e4-aa30-8ca2936a0d59") + }, + new + { + Id = new Guid("4601b17e-822b-4b19-862c-a0a6c5b7a23c"), + Format = "yyyy-MM-ddTHH:mm:ssZ", + NewsParseModifiedAtSettingsId = new Guid("91c40a45-f102-46d4-bd9b-4e11869f18cd") + }, + new + { + Id = new Guid("3217adeb-8d21-4a5c-82df-83883177308f"), + Format = "yyyy-MM-ddTHH:mm:sszzz", + NewsParseModifiedAtSettingsId = new Guid("0a1fc27b-5f76-4a98-acd2-c3f98852d1c0") + }, + new + { + Id = new Guid("05acbeac-ea1d-41c7-b658-ab3971501e2b"), + Format = "yyyy-MM-ddTHH:mm:sszzz", + NewsParseModifiedAtSettingsId = new Guid("9980ee74-f655-40af-b44e-c9feb0e0bd40") + }, + new + { + Id = new Guid("61f79112-d8a1-4562-8a1d-6f5e64928a50"), + Format = "yyyy-MM-ddTHH:mm:sszzz", + NewsParseModifiedAtSettingsId = new Guid("da1fb28b-2afb-461a-9cf2-6e65a9c6963d") + }, + new + { + Id = new Guid("83158dac-180c-45f5-b13f-82b253c3f0be"), + Format = "yyyy-MM-ddTHH:mm:ss.fffZ", + NewsParseModifiedAtSettingsId = new Guid("4adf1a9f-ac4c-4f17-932b-aac460d0d2f2") + }, + new + { + Id = new Guid("ff02bb15-206e-4c8b-940e-c077740c4e8d"), + Format = "yyyy-MM-ddTHH:mm:ss.fffZ", + NewsParseModifiedAtSettingsId = new Guid("033e507a-cb9d-403f-a8cb-48238e03607b") + }, + new + { + Id = new Guid("fa45d026-0db8-4968-8753-da586b527e27"), + Format = "yyyy-MM-ddTHH:mm:ss.fff\"Z+0300\"", + NewsParseModifiedAtSettingsId = new Guid("700ffddc-d0a5-450a-b756-deabd7bfed18") + }, + new + { + Id = new Guid("d5896f93-bbef-44cb-82c4-6c0c73e4f4c9"), + Format = "yyyy-MM-dd", + NewsParseModifiedAtSettingsId = new Guid("6dc53704-3d38-47f9-9efa-7604da400355") + }, + new + { + Id = new Guid("9baa0874-10a0-4e13-8fc9-fb95036b8958"), + Format = "yyyy-MM-ddTHH:mm:ssZ", + NewsParseModifiedAtSettingsId = new Guid("348a6cf9-f469-4f19-a12c-bdc3f525947c") + }, + new + { + Id = new Guid("7258af78-93ae-46b1-9c4a-418769158262"), + Format = "yyyy-MM-ddTHH:mm:sszzz", + NewsParseModifiedAtSettingsId = new Guid("350279da-c53a-42a7-abad-a3097a881261") + }, + new + { + Id = new Guid("97301aa5-3306-4948-a4f9-0ad1c5d3cda0"), + Format = "yyyy-MM-ddTHH:mm:ss\"+0300\"", + NewsParseModifiedAtSettingsId = new Guid("c8cda125-f32f-492a-9d65-c1e0abb69300") + }, + new + { + Id = new Guid("4acbd680-8c5e-48a3-ae91-d66c2107150a"), + Format = "yyyy-MM-ddTHH:mm:sszzz", + NewsParseModifiedAtSettingsId = new Guid("75386858-8fad-48aa-bea8-d5aec36c1f8f") + }, + new + { + Id = new Guid("331d2e46-95f3-42de-9a4c-a7dd3312647a"), + Format = "yyyy-MM-dd HH:mm", + NewsParseModifiedAtSettingsId = new Guid("a62f2d07-0e56-4bdc-a6de-c061d313bea9") + }, + new + { + Id = new Guid("b86762b0-61e7-4b60-8d55-84285b2ba9f9"), + Format = "yyyy-MM-ddTHH:mm:ss\"+0300\"", + NewsParseModifiedAtSettingsId = new Guid("4aeb273b-8983-4ed7-adf0-74ff9bdfb4ab") + }, + new + { + Id = new Guid("405dd507-6429-4fd3-a76f-7c211adbb18e"), + Format = "yyyyMMddTHHmm", + NewsParseModifiedAtSettingsId = new Guid("458c1359-0212-451f-9c05-a6d043114989") + }, + new + { + Id = new Guid("db537dea-c0ab-426c-a394-10231d9c8a29"), + Format = "yyyy-MM-ddTHH:mm:ssZ", + NewsParseModifiedAtSettingsId = new Guid("50257fdd-fcc6-4a8e-822c-4834d0f1d762") + }, + new + { + Id = new Guid("adad19a0-95c1-40ee-a691-b4a8bcbf18b7"), + Format = "yyyy-MM-ddTHH:mm:sszzz", + NewsParseModifiedAtSettingsId = new Guid("48f6b66c-3b41-49fd-b4ec-d2d1e3ced579") + }, + new + { + Id = new Guid("1ae044f9-a228-41a3-a0c1-a708c760fe88"), + Format = "yyyy-MM-dd HH:mm:ss", + NewsParseModifiedAtSettingsId = new Guid("ac1075c5-1536-4691-bc44-c67665d0e2e2") + }); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsParseNeed", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uuid") + .HasColumnName("id"); + + b.Property("NewsUrl") + .IsRequired() + .HasColumnType("text") + .HasColumnName("news_url"); + + b.HasKey("Id") + .HasName("pk_news_parse_needs"); + + b.HasIndex("NewsUrl") + .HasDatabaseName("ix_news_parse_needs_news_url"); + + b.ToTable("news_parse_needs", (string)null); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsParseNetworkError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uuid") + .HasColumnName("id"); + + b.Property("CreatedAt") + .HasColumnType("timestamp with time zone") + .HasColumnName("created_at"); + + b.Property("Message") + .IsRequired() + .HasColumnType("text") + .HasColumnName("message"); + + b.Property("NewsUrl") + .IsRequired() + .HasColumnType("text") + .HasColumnName("news_url"); + + b.HasKey("Id") + .HasName("pk_news_parse_network_errors"); + + b.HasIndex("NewsUrl") + .HasDatabaseName("ix_news_parse_network_errors_news_url"); + + b.ToTable("news_parse_network_errors", (string)null); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsParsePictureSettings", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uuid") + .HasColumnName("id"); + + b.Property("IsRequired") + .HasColumnType("boolean") + .HasColumnName("is_required"); + + b.Property("ParseSettingsId") + .HasColumnType("uuid") + .HasColumnName("parse_settings_id"); + + b.Property("UrlXPath") + .IsRequired() + .HasColumnType("text") + .HasColumnName("url_x_path"); + + b.HasKey("Id") + .HasName("pk_news_parse_picture_settings"); + + b.HasIndex("ParseSettingsId") + .IsUnique() + .HasDatabaseName("ix_news_parse_picture_settings_parse_settings_id"); + + b.ToTable("news_parse_picture_settings", (string)null); + + b.HasData( + new + { + Id = new Guid("28112804-6fee-47fe-ad2e-9cdf4e982a82"), + IsRequired = false, + ParseSettingsId = new Guid("9d11efde-ae9c-42a7-ac57-649bf5891e8a"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("3b81d060-ce40-45bb-8ceb-81c10e88e2a8"), + IsRequired = false, + ParseSettingsId = new Guid("da641510-f1dd-4fce-b895-cbf32dca79bf"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("afb5bb1e-5cb0-4176-b2e0-99f6efb399dd"), + IsRequired = false, + ParseSettingsId = new Guid("28bff881-79f7-400c-ab5d-489176c269bb"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("d5de3a68-32d4-4553-ae39-ad3eb1509cc5"), + IsRequired = false, + ParseSettingsId = new Guid("a39fd0cf-d695-451a-8ec5-b662eddf4e9e"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("0ae45f17-84aa-42b2-801b-ff153d8d99b1"), + IsRequired = false, + ParseSettingsId = new Guid("52014d82-bd2b-47fb-9ba1-668df2126197"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("c8d55c4c-0a8b-4133-b85d-6ca0df5a5671"), + IsRequired = false, + ParseSettingsId = new Guid("e8ea5810-3cc4-46dd-84d7-eb7b5cbf3f3b"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("7ab23797-333a-428f-a8c2-620267ac2310"), + IsRequired = false, + ParseSettingsId = new Guid("929687ee-eb6f-4e95-852d-9635657d7f89"), + UrlXPath = "//meta[@itemprop='url']/@content" + }, + new + { + Id = new Guid("1119d2b6-db6a-4750-8263-9fb0025cc536"), + IsRequired = false, + ParseSettingsId = new Guid("8c399ef5-9d29-4442-a621-52867b8e7f6d"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("7c9e261c-a090-44f1-92b8-e4d0e6b1d9b5"), + IsRequired = false, + ParseSettingsId = new Guid("efd9bf27-abb2-46c2-bedb-dc7e745e55fb"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("8dfefc74-7200-46f5-94be-3fe0efa0894c"), + IsRequired = false, + ParseSettingsId = new Guid("9de1ef08-878b-4559-85af-a8b14d7ce68b"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("bb45ff0a-06f3-46ea-9921-c4f45270334e"), + IsRequired = false, + ParseSettingsId = new Guid("4c29ab0b-01eb-466e-8dc3-fe05886f4332"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("e8ae178c-a3c7-4ec4-8af8-d1431ef0b1a5"), + IsRequired = false, + ParseSettingsId = new Guid("77a6c5a1-b883-444f-ba7e-f0289943947f"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("ac6a9a56-dada-4c70-b614-1b8fa635a812"), + IsRequired = false, + ParseSettingsId = new Guid("68faffa0-b7e6-44bb-a958-441eb532bfbb"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("7e8d5e93-0edd-4054-8d1b-86b738bca16b"), + IsRequired = false, + ParseSettingsId = new Guid("f6ef6598-401b-4cd8-8654-f3009b41593f"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("86d081ed-0909-49c3-98fe-324f17415c27"), + IsRequired = false, + ParseSettingsId = new Guid("a1b03754-30d4-4c65-946d-10995830a159"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("2e408438-34d0-4ec7-9183-f14c49c50ad6"), + IsRequired = false, + ParseSettingsId = new Guid("052241f9-e3e7-4722-9f56-7202de4a331e"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("784347e1-cdbd-42dc-a71e-c0bf6dc1bd60"), + IsRequired = false, + ParseSettingsId = new Guid("3373c5b8-57e2-402b-9dfb-a0ae19e92336"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("09f7efa7-635a-4a7b-9e00-dbee344eaf0a"), + IsRequired = false, + ParseSettingsId = new Guid("44d47f91-a811-4cc3-a70f-f12236d1476d"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("7bf75c22-3ba4-42df-987a-468cbae9d132"), + IsRequired = false, + ParseSettingsId = new Guid("96ef6e5b-c81b-45e7-a715-1aa131d82ef2"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("140c9334-8e52-4c07-a0a2-f4842820af31"), + IsRequired = false, + ParseSettingsId = new Guid("f1b027fc-2809-4eaa-9858-c49a8756852f"), + UrlXPath = "//meta[@name='og:image']/@content" + }, + new + { + Id = new Guid("c9ff2c75-e65b-4fb4-a3a0-789c15973fac"), + IsRequired = false, + ParseSettingsId = new Guid("60a60886-4da0-4c2c-8635-a8ec57827667"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("515be790-404d-48ca-8d97-642a505b2149"), + IsRequired = false, + ParseSettingsId = new Guid("5c2d9dff-16d7-47f9-8d32-07f8fb52ac76"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("48dd42bd-47ea-4a97-aeff-bb84db84e6b2"), + IsRequired = false, + ParseSettingsId = new Guid("aed24362-5c8e-4b31-9bbe-bb068f9c0f01"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("fc8fc0b9-ccd3-4dcf-9b07-1e7031097188"), + IsRequired = false, + ParseSettingsId = new Guid("d477dceb-5655-432b-8bca-b2ca2d944d87"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("64c04564-82ae-449f-9264-840c277b648c"), + IsRequired = false, + ParseSettingsId = new Guid("e4542056-2c68-43c6-a85c-9e4899556800"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("baa19068-8f2f-445e-8450-27967074fac5"), + IsRequired = false, + ParseSettingsId = new Guid("921d7c0a-c084-4188-b243-d08580f65142"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("b28db8a4-5df8-4f99-9d5e-7013a3d053c8"), + IsRequired = false, + ParseSettingsId = new Guid("11795391-d20d-48df-ab38-30f796737a43"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("7d69c14b-403d-4216-ac58-f66c87bee0c8"), + IsRequired = false, + ParseSettingsId = new Guid("f63d1e4f-e82d-4020-8b9c-65beaab1d7c3"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("a8742001-52bb-4beb-852c-913eff64dceb"), + IsRequired = false, + ParseSettingsId = new Guid("3c4ef27a-3157-4eff-a441-1e409c4b6c34"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("3238cb06-5baa-4d87-a6a7-d3b826c1da59"), + IsRequired = false, + ParseSettingsId = new Guid("2de49bdd-5c36-49ff-9a3b-a1f6ceb75e75"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("375e4eca-f067-486a-a3cd-5045165dd9e1"), + IsRequired = false, + ParseSettingsId = new Guid("76b3ad9b-48c5-4f9e-ab28-993ba795fdb1"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("679b3f84-a212-422b-a41d-3544ae6c997a"), + IsRequired = false, + ParseSettingsId = new Guid("2d46f779-c13c-4699-9460-629e254a6444"), + UrlXPath = "//meta[@name='og:image']/@content" + }, + new + { + Id = new Guid("1f4694bc-c0d7-405c-ae73-88053c0ebc14"), + IsRequired = false, + ParseSettingsId = new Guid("e3fcdd00-2152-4d84-8f8c-bf70e4996990"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("da259816-c238-4a5e-af4b-be606546572f"), + IsRequired = false, + ParseSettingsId = new Guid("613dbfcf-7f5c-4060-a92a-d2ec7586f4a3"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("f30aba5c-0d63-4f7b-9f68-1dc1629cd449"), + IsRequired = false, + ParseSettingsId = new Guid("32cad97f-b071-4e24-bdc9-10e5e58cf99b"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("efc3e79b-1827-40e8-a072-7f1cac6e991b"), + IsRequired = false, + ParseSettingsId = new Guid("692ba156-95b9-4a24-9b0c-71b769e8d3a8"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("1927aaba-9fb9-4caf-a3f6-1586a082e21a"), + IsRequired = false, + ParseSettingsId = new Guid("49c1bb0c-b546-4142-a7ba-4925f71a933c"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("bf4cfe59-066b-4d7c-ab2c-ca2690648826"), + IsRequired = false, + ParseSettingsId = new Guid("be3e061e-25f4-4b43-a9f6-45db165b6000"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("3291c20c-0487-47a3-a428-fdcb0bdde0b6"), + IsRequired = false, + ParseSettingsId = new Guid("cba88caa-d8af-4e40-b8fa-14946187e939"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("6f3531a6-db42-459a-ab24-08493edc3ac0"), + IsRequired = false, + ParseSettingsId = new Guid("611bd50e-69f5-4598-8ad6-8b19771f1044"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("0da669ee-feb9-4403-bc90-9af266fab309"), + IsRequired = false, + ParseSettingsId = new Guid("5726d5dd-18ac-4c5c-a5d1-f775f1dd0b20"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("a6d5c07c-a1a6-4b00-9b58-babe896712fb"), + IsRequired = false, + ParseSettingsId = new Guid("fa16a108-45c2-42e4-8323-b1f3ea3cdf46"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("b9639099-40e4-4346-93ed-1aa69d2fd95c"), + IsRequired = false, + ParseSettingsId = new Guid("d36d75dc-add7-4e21-8a31-2f40f4033b14"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("e9c5bd35-588d-49c8-b0d0-3eda43d0afea"), + IsRequired = false, + ParseSettingsId = new Guid("14db83c2-cee9-47a2-b8fc-210bbbd399aa"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("84f20ff4-fb12-45de-b7de-e9d7844f6935"), + IsRequired = false, + ParseSettingsId = new Guid("a7d88817-12e6-434a-8c25-949dde2609f4"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("181a1d07-35cc-4e75-9a36-330c319c6590"), + IsRequired = false, + ParseSettingsId = new Guid("c965a1d0-83b6-4018-a4a5-9c426a02943e"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("9fcdbc5c-80af-454f-84f8-a8411f6b0184"), + IsRequired = false, + ParseSettingsId = new Guid("52ac2f5a-3b95-4adc-9c2a-abd192a1ec26"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("2b7405f0-8db7-447b-a239-4b8454cba04b"), + IsRequired = false, + ParseSettingsId = new Guid("289bab5a-8dd4-4ca7-a510-ff6a496b3993"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("6d23a40c-508d-4914-9c4e-4ca0e9db1985"), + IsRequired = false, + ParseSettingsId = new Guid("6d16ec92-860e-4bd8-9618-1e5b2ac5a792"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("99e62b88-dd05-4581-a2e1-eb1f2616a05f"), + IsRequired = false, + ParseSettingsId = new Guid("a03ca9fd-6e2d-4da5-9017-5feb6a9a1404"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("b1ce7387-38c3-475c-a085-0984b9ba8b00"), + IsRequired = false, + ParseSettingsId = new Guid("dd419d1c-db40-4fd4-8f12-34206242d7cc"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("d8dc9296-e936-406b-aad9-916f05f1b3fe"), + IsRequired = false, + ParseSettingsId = new Guid("6a7db6d7-c4ec-471c-93e2-9f7b9dd9180c"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("8c523334-f94b-4c87-ae3d-a6d749bc29b9"), + IsRequired = false, + ParseSettingsId = new Guid("32b2600c-03b7-4d2d-ace8-77b11e1a5041"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("e5f37d04-6aa1-4e5c-b850-387388d0c62e"), + IsRequired = false, + ParseSettingsId = new Guid("00a974a4-e223-45fb-965e-97269039d94a"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("eb0cb4fc-8982-465c-87a0-d5a83e2c579a"), + IsRequired = false, + ParseSettingsId = new Guid("1a5ca4c2-2984-4c52-9fa2-d7f564fd6add"), + UrlXPath = "//meta[@property='og:image']/@content" + }); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsParsePublishedAtSettings", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uuid") + .HasColumnName("id"); + + b.Property("IsRequired") + .HasColumnType("boolean") + .HasColumnName("is_required"); + + b.Property("ParseSettingsId") + .HasColumnType("uuid") + .HasColumnName("parse_settings_id"); + + b.Property("PublishedAtCultureInfo") + .IsRequired() + .HasColumnType("text") + .HasColumnName("published_at_culture_info"); + + b.Property("PublishedAtTimeZoneInfoId") + .HasColumnType("text") + .HasColumnName("published_at_time_zone_info_id"); + + b.Property("PublishedAtXPath") + .IsRequired() + .HasColumnType("text") + .HasColumnName("published_at_x_path"); + + b.HasKey("Id") + .HasName("pk_news_parse_published_at_settings"); + + b.HasIndex("ParseSettingsId") + .IsUnique() + .HasDatabaseName("ix_news_parse_published_at_settings_parse_settings_id"); + + b.ToTable("news_parse_published_at_settings", (string)null); + + b.HasData( + new + { + Id = new Guid("b5afbf6f-9a28-4814-8ec0-80b43048c284"), + IsRequired = true, + ParseSettingsId = new Guid("9d11efde-ae9c-42a7-ac57-649bf5891e8a"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtTimeZoneInfoId = "Russian Standard Time", + PublishedAtXPath = "//meta[@property='article:published_time']/@content" + }, + new + { + Id = new Guid("a17cf1af-be32-4074-9b36-6f5481ecbf14"), + IsRequired = true, + ParseSettingsId = new Guid("da641510-f1dd-4fce-b895-cbf32dca79bf"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtXPath = "//meta[@name='mediator_published_time']/@content" + }, + new + { + Id = new Guid("076e2817-f0e0-4f4a-ae55-08210a7e1a7d"), + IsRequired = true, + ParseSettingsId = new Guid("28bff881-79f7-400c-ab5d-489176c269bb"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtTimeZoneInfoId = "UTC", + PublishedAtXPath = "//div[contains(@class, 'NewsHeader')]//div[contains(@class, 'PublishedMark')]//span[@ca-ts]/text()" + }, + new + { + Id = new Guid("b2514b4f-e07a-44e1-977b-9013bd07ea0c"), + IsRequired = true, + ParseSettingsId = new Guid("a39fd0cf-d695-451a-8ec5-b662eddf4e9e"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtTimeZoneInfoId = "Russian Standard Time", + PublishedAtXPath = "//div[@class='topic-page__header']//a[contains(@class, 'topic-header__time')]/text()" + }, + new + { + Id = new Guid("e07f5d48-7c9a-4425-ae9f-788d26a63f23"), + IsRequired = true, + ParseSettingsId = new Guid("52014d82-bd2b-47fb-9ba1-668df2126197"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtTimeZoneInfoId = "Russian Standard Time", + PublishedAtXPath = "//meta[@property='article:published_time']/@content" + }, + new + { + Id = new Guid("21890de7-31ad-4c9e-a749-05f565d45905"), + IsRequired = true, + ParseSettingsId = new Guid("e8ea5810-3cc4-46dd-84d7-eb7b5cbf3f3b"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtTimeZoneInfoId = "Russian Standard Time", + PublishedAtXPath = "//meta[@name='article:published_time']/@content" + }, + new + { + Id = new Guid("6f87ed33-a16c-465a-8784-33c69ef9bb0c"), + IsRequired = true, + ParseSettingsId = new Guid("929687ee-eb6f-4e95-852d-9635657d7f89"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtXPath = "//div[@class='article__header__info-block']/time[@class='article__header__date']/@datetime" + }, + new + { + Id = new Guid("dc0d0ef7-eb9e-4632-b75e-9d7d9ba44daa"), + IsRequired = true, + ParseSettingsId = new Guid("8c399ef5-9d29-4442-a621-52867b8e7f6d"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtXPath = "//header[@class='news-item__header']//time/@content" + }, + new + { + Id = new Guid("47328c5f-5e86-4b2d-be25-fe9198a946fc"), + IsRequired = true, + ParseSettingsId = new Guid("efd9bf27-abb2-46c2-bedb-dc7e745e55fb"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtXPath = "//meta[@property='article:published_time']/@content" + }, + new + { + Id = new Guid("00106a66-61a0-4abd-b58e-9f9b4ed2c07d"), + IsRequired = true, + ParseSettingsId = new Guid("9de1ef08-878b-4559-85af-a8b14d7ce68b"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtXPath = "//meta[@property='article:published_time']/@content" + }, + new + { + Id = new Guid("a4130bc3-4c5f-451f-92f1-73e1c1745fc6"), + IsRequired = true, + ParseSettingsId = new Guid("4c29ab0b-01eb-466e-8dc3-fe05886f4332"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtXPath = "//meta[@property='article:published_time']/@content" + }, + new + { + Id = new Guid("20903a2a-fdf2-4909-8478-bbfd57c492be"), + IsRequired = true, + ParseSettingsId = new Guid("77a6c5a1-b883-444f-ba7e-f0289943947f"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtTimeZoneInfoId = "Russian Standard Time", + PublishedAtXPath = "//meta[@property='article:published_time']/@content" + }, + new + { + Id = new Guid("89fc1310-fff8-4cdc-aff5-c4285f9ab73c"), + IsRequired = true, + ParseSettingsId = new Guid("68faffa0-b7e6-44bb-a958-441eb532bfbb"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtTimeZoneInfoId = "Russian Standard Time", + PublishedAtXPath = "//div[@class='b-text__date']/text()" + }, + new + { + Id = new Guid("4a6be1f2-8429-4185-a9c6-03aeda076dcd"), + IsRequired = true, + ParseSettingsId = new Guid("f6ef6598-401b-4cd8-8654-f3009b41593f"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtTimeZoneInfoId = "Russian Standard Time", + PublishedAtXPath = "//p[@class='b-material__date']/text()" + }, + new + { + Id = new Guid("f02b9ed4-7b5b-4572-bf74-604513ced86b"), + IsRequired = true, + ParseSettingsId = new Guid("a1b03754-30d4-4c65-946d-10995830a159"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtTimeZoneInfoId = "Russian Standard Time", + PublishedAtXPath = "//article/div[@class='header']/span/text()" + }, + new + { + Id = new Guid("a5685486-3a98-45aa-96b7-d25cd5e40c5d"), + IsRequired = true, + ParseSettingsId = new Guid("052241f9-e3e7-4722-9f56-7202de4a331e"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtTimeZoneInfoId = "Russian Standard Time", + PublishedAtXPath = "//article//header//time[@class='article-head__date']/text()" + }, + new + { + Id = new Guid("4a335cad-bc2f-442e-9c89-74da04bbde90"), + IsRequired = true, + ParseSettingsId = new Guid("3373c5b8-57e2-402b-9dfb-a0ae19e92336"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtXPath = "//meta[@property='article:published_time']/@content" + }, + new + { + Id = new Guid("82ed5673-25e2-497f-aaea-3dd42ecd4f85"), + IsRequired = true, + ParseSettingsId = new Guid("44d47f91-a811-4cc3-a70f-f12236d1476d"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtXPath = "//div[contains(@class, 'article-entry')]//div[@class='entry-info']/span[@itemprop='datePublished']/@content" + }, + new + { + Id = new Guid("fed30888-ff5a-4843-8a23-fa452ed88675"), + IsRequired = true, + ParseSettingsId = new Guid("96ef6e5b-c81b-45e7-a715-1aa131d82ef2"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtTimeZoneInfoId = "Russian Standard Time", + PublishedAtXPath = "//div[@class='b-article__top-author']/p[@class='date']/text()" + }, + new + { + Id = new Guid("2622b86a-c47b-4143-a11e-f2aad18faa8e"), + IsRequired = false, + ParseSettingsId = new Guid("f1b027fc-2809-4eaa-9858-c49a8756852f"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtTimeZoneInfoId = "Russian Standard Time", + PublishedAtXPath = "//div[contains(@class, 'pubdatetime')]//div[contains(@class, 'badge-time')]//text()" + }, + new + { + Id = new Guid("b208c066-da95-4c32-baec-ff448a07f62d"), + IsRequired = true, + ParseSettingsId = new Guid("60a60886-4da0-4c2c-8635-a8ec57827667"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtXPath = "//meta[@itemprop='dateModified']/@content" + }, + new + { + Id = new Guid("e762bdb6-dfae-410b-9478-3ff4b45dbe70"), + IsRequired = true, + ParseSettingsId = new Guid("5c2d9dff-16d7-47f9-8d32-07f8fb52ac76"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtTimeZoneInfoId = "Russian Standard Time", + PublishedAtXPath = "//meta[@itemprop='datePublished']/@content" + }, + new + { + Id = new Guid("a2c411a5-4b6a-4ed8-b383-b1a4f05b4605"), + IsRequired = true, + ParseSettingsId = new Guid("aed24362-5c8e-4b31-9bbe-bb068f9c0f01"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtXPath = "//meta[@property='article:published_time']/@content" + }, + new + { + Id = new Guid("3f29a12c-5e1c-45de-bf8b-96897f8ac962"), + IsRequired = true, + ParseSettingsId = new Guid("d477dceb-5655-432b-8bca-b2ca2d944d87"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtXPath = "//div[@class='publication-info']/time[@itemprop='datePublished']/@datetime" + }, + new + { + Id = new Guid("79e88ebb-d542-4d19-a212-6c21f2688c77"), + IsRequired = true, + ParseSettingsId = new Guid("e4542056-2c68-43c6-a85c-9e4899556800"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtXPath = "//meta[@itemprop='datePublished']/@content" + }, + new + { + Id = new Guid("c00312de-2ba3-4047-b80c-e5624577ad29"), + IsRequired = true, + ParseSettingsId = new Guid("921d7c0a-c084-4188-b243-d08580f65142"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtXPath = "//meta[@itemprop='datePublished']/@content" + }, + new + { + Id = new Guid("da19d28d-156b-47a0-868b-18f4ec0c8114"), + IsRequired = true, + ParseSettingsId = new Guid("11795391-d20d-48df-ab38-30f796737a43"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtXPath = "//meta[@property='article:published_time']/@content" + }, + new + { + Id = new Guid("5c23cab5-7864-429b-9080-ba88f81c6751"), + IsRequired = true, + ParseSettingsId = new Guid("f63d1e4f-e82d-4020-8b9c-65beaab1d7c3"), + PublishedAtCultureInfo = "en-US", + PublishedAtTimeZoneInfoId = "Central Europe Standard Time", + PublishedAtXPath = "//article//div[@class='article-info']/div[@class='date']/text()" + }, + new + { + Id = new Guid("ccc2a5c5-02fd-4a8d-ace5-7f41742f442b"), + IsRequired = true, + ParseSettingsId = new Guid("3c4ef27a-3157-4eff-a441-1e409c4b6c34"), + PublishedAtCultureInfo = "en-US", + PublishedAtXPath = "//meta[@property='article:published_time']/@content" + }, + new + { + Id = new Guid("1fe09b4f-73bd-4979-8206-439489299a64"), + IsRequired = true, + ParseSettingsId = new Guid("2de49bdd-5c36-49ff-9a3b-a1f6ceb75e75"), + PublishedAtCultureInfo = "en-US", + PublishedAtXPath = "//meta[@property='article:published_time']/@content" + }, + new + { + Id = new Guid("d153a1fc-66c6-4313-adc9-36850ec82124"), + IsRequired = true, + ParseSettingsId = new Guid("76b3ad9b-48c5-4f9e-ab28-993ba795fdb1"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtTimeZoneInfoId = "Russian Standard Time", + PublishedAtXPath = "//meta[@property='article:published_time']/@content" + }, + new + { + Id = new Guid("c6115996-838b-4309-813e-d520085af7df"), + IsRequired = true, + ParseSettingsId = new Guid("e3fcdd00-2152-4d84-8f8c-bf70e4996990"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtTimeZoneInfoId = "Russian Standard Time", + PublishedAtXPath = "//div[@class='article-details']/span[@class='article-details__time']/time/@datetime" + }, + new + { + Id = new Guid("8208ff9e-fbf8-4206-b4d8-e7f7287b2dec"), + IsRequired = true, + ParseSettingsId = new Guid("613dbfcf-7f5c-4060-a92a-d2ec7586f4a3"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtTimeZoneInfoId = "Russian Standard Time", + PublishedAtXPath = "//span[@class='date']/time/@datetime" + }, + new + { + Id = new Guid("8bf5f85a-aba6-48a5-8704-3f6c4f51d9d1"), + IsRequired = true, + ParseSettingsId = new Guid("32cad97f-b071-4e24-bdc9-10e5e58cf99b"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtXPath = "//meta[@property='article:published_time']/@content" + }, + new + { + Id = new Guid("9bfd49d6-dcb9-4a65-80f5-c9ac3b6b490d"), + IsRequired = true, + ParseSettingsId = new Guid("692ba156-95b9-4a24-9b0c-71b769e8d3a8"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtTimeZoneInfoId = "Russian Standard Time", + PublishedAtXPath = "//meta[@itemprop='datePublished']/@content" + }, + new + { + Id = new Guid("e6bd53e0-c868-451c-87a5-e048343b2759"), + IsRequired = true, + ParseSettingsId = new Guid("49c1bb0c-b546-4142-a7ba-4925f71a933c"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtXPath = "//meta[@itemprop='datePublished']/@content" + }, + new + { + Id = new Guid("0cea5575-ec4f-4b14-a0cc-49185e1d1768"), + IsRequired = true, + ParseSettingsId = new Guid("cba88caa-d8af-4e40-b8fa-14946187e939"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtXPath = "//meta[@property='article:published_time']/@content" + }, + new + { + Id = new Guid("f3f8cc16-9599-42fa-acea-c66be06e0d13"), + IsRequired = true, + ParseSettingsId = new Guid("5726d5dd-18ac-4c5c-a5d1-f775f1dd0b20"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtTimeZoneInfoId = "Russian Standard Time", + PublishedAtXPath = "//meta[@property='article:published_time']/@content" + }, + new + { + Id = new Guid("cbe14234-0158-487c-b0c0-2117107b9a34"), + IsRequired = true, + ParseSettingsId = new Guid("fa16a108-45c2-42e4-8323-b1f3ea3cdf46"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtTimeZoneInfoId = "Russian Standard Time", + PublishedAtXPath = "//section[contains(@class, 'news-content')]/div[@class='content-top']//p[contains(@class, 'content-top__date')]/text()" + }, + new + { + Id = new Guid("fdad3f1e-646d-4fe0-b46f-cf5a2d320981"), + IsRequired = true, + ParseSettingsId = new Guid("d36d75dc-add7-4e21-8a31-2f40f4033b14"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtXPath = "//meta[@itemprop='datePublished']/@content" + }, + new + { + Id = new Guid("f4df8c3f-efa8-4fa5-bb34-91942ecec22a"), + IsRequired = true, + ParseSettingsId = new Guid("a7d88817-12e6-434a-8c25-949dde2609f4"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtXPath = "//meta[@itemprop='datePublished']/@content" + }, + new + { + Id = new Guid("8ff05689-5c68-4f41-9023-4bfead386fed"), + IsRequired = true, + ParseSettingsId = new Guid("c965a1d0-83b6-4018-a4a5-9c426a02943e"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtTimeZoneInfoId = "Russian Standard Time", + PublishedAtXPath = "//span[@class='submitted-by']/text()" + }, + new + { + Id = new Guid("eaf8f8a4-7781-4285-b447-1e3309b2edbf"), + IsRequired = true, + ParseSettingsId = new Guid("52ac2f5a-3b95-4adc-9c2a-abd192a1ec26"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtTimeZoneInfoId = "Russian Standard Time", + PublishedAtXPath = "//meta[@property='article:published_time']/@content" + }, + new + { + Id = new Guid("22c82c40-fe3a-4394-ab34-295e3c094dcf"), + IsRequired = true, + ParseSettingsId = new Guid("289bab5a-8dd4-4ca7-a510-ff6a496b3993"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtTimeZoneInfoId = "Russian Standard Time", + PublishedAtXPath = "//div[@id='content']//div[contains(@class, 'topic')]/ul[contains(@class, 'blog_more')]//li[@class='date']/text()" + }, + new + { + Id = new Guid("80bc5b20-336c-4ac1-9ee0-e231d0ef74c7"), + IsRequired = true, + ParseSettingsId = new Guid("6d16ec92-860e-4bd8-9618-1e5b2ac5a792"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtTimeZoneInfoId = "Russian Standard Time", + PublishedAtXPath = "//span[@id='publication-date']/text()" + }, + new + { + Id = new Guid("d3c31d01-f7fd-42e6-8378-3df623d1fc09"), + IsRequired = true, + ParseSettingsId = new Guid("a03ca9fd-6e2d-4da5-9017-5feb6a9a1404"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtTimeZoneInfoId = "Russian Standard Time", + PublishedAtXPath = "//div[@class='newsDetail-body__item-subHeader']/time/text()" + }, + new + { + Id = new Guid("3785f3c0-c9d3-4e29-a0b8-46fa78983506"), + IsRequired = true, + ParseSettingsId = new Guid("dd419d1c-db40-4fd4-8f12-34206242d7cc"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtTimeZoneInfoId = "Russian Standard Time", + PublishedAtXPath = "//meta[@property='article:published_time']/@content" + }, + new + { + Id = new Guid("5e7874b1-13e9-4cf5-a96a-6612fe3661cf"), + IsRequired = true, + ParseSettingsId = new Guid("6a7db6d7-c4ec-471c-93e2-9f7b9dd9180c"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtTimeZoneInfoId = "UTC", + PublishedAtXPath = "//div[@class='GeneralMaterial-module-materialHeader']//div[contains(@class, 'MetaItem-module_datetime')]/time/text()" + }, + new + { + Id = new Guid("74a87f1a-0325-4690-8c87-8ba4d24e078b"), + IsRequired = true, + ParseSettingsId = new Guid("32b2600c-03b7-4d2d-ace8-77b11e1a5041"), + PublishedAtCultureInfo = "en-US", + PublishedAtXPath = "//meta[@property='article:published_time']/@content" + }, + new + { + Id = new Guid("21813794-9df2-4993-a696-a65ee04af666"), + IsRequired = true, + ParseSettingsId = new Guid("00a974a4-e223-45fb-965e-97269039d94a"), + PublishedAtCultureInfo = "en-US", + PublishedAtXPath = "//meta[@name='dcterms.created']/@content" + }, + new + { + Id = new Guid("2dfea686-66c2-4b59-86cf-01fdce1da6c5"), + IsRequired = true, + ParseSettingsId = new Guid("1a5ca4c2-2984-4c52-9fa2-d7f564fd6add"), + PublishedAtCultureInfo = "en-US", + PublishedAtTimeZoneInfoId = "Eastern Standard Time", + PublishedAtXPath = "//div[@class='story-meta']//p[@class='story-meta__timestamp']/time/@datetime" + }); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsParsePublishedAtSettingsFormat", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uuid") + .HasColumnName("id"); + + b.Property("Format") + .IsRequired() + .HasColumnType("text") + .HasColumnName("format"); + + b.Property("NewsParsePublishedAtSettingsId") + .HasColumnType("uuid") + .HasColumnName("news_parse_published_at_settings_id"); + + b.HasKey("Id") + .HasName("pk_news_parse_published_at_settings_formats"); + + b.HasIndex("NewsParsePublishedAtSettingsId") + .HasDatabaseName("ix_news_parse_published_at_settings_formats_news_parse_publish"); + + b.ToTable("news_parse_published_at_settings_formats", (string)null); + + b.HasData( + new + { + Id = new Guid("fdae85e3-de1e-4d29-a496-fa6ffedc616a"), + Format = "yyyyMMddTHHmm", + NewsParsePublishedAtSettingsId = new Guid("b5afbf6f-9a28-4814-8ec0-80b43048c284") + }, + new + { + Id = new Guid("56366b43-4d17-44a6-9bdd-1cb63ec7dcfb"), + Format = "yyyy-MM-ddTHH:mm:sszzz", + NewsParsePublishedAtSettingsId = new Guid("a17cf1af-be32-4074-9b36-6f5481ecbf14") + }, + new + { + Id = new Guid("da39c45c-178d-4b8c-8944-9d77de2690d0"), + Format = "d MMMM yyyy, HH:mm", + NewsParsePublishedAtSettingsId = new Guid("076e2817-f0e0-4f4a-ae55-08210a7e1a7d") + }, + new + { + Id = new Guid("2f4dba30-cd44-4a34-a28b-50d3d6db53d1"), + Format = "d MMMM yyyy, HH:mm,", + NewsParsePublishedAtSettingsId = new Guid("076e2817-f0e0-4f4a-ae55-08210a7e1a7d") + }, + new + { + Id = new Guid("509eae6c-481c-4a9d-9a9a-bd20b2ae533e"), + Format = "d MMMM, HH:mm", + NewsParsePublishedAtSettingsId = new Guid("076e2817-f0e0-4f4a-ae55-08210a7e1a7d") + }, + new + { + Id = new Guid("3d264810-c568-4d66-9762-43c1467a6cd2"), + Format = "d MMMM, HH:mm,", + NewsParsePublishedAtSettingsId = new Guid("076e2817-f0e0-4f4a-ae55-08210a7e1a7d") + }, + new + { + Id = new Guid("013ad3fa-fc09-4bce-a62a-5b23dfaf4b55"), + Format = "HH:mm, d MMMM yyyy", + NewsParsePublishedAtSettingsId = new Guid("b2514b4f-e07a-44e1-977b-9013bd07ea0c") + }, + new + { + Id = new Guid("bd0d7dc4-64d5-4daa-a89d-ca0609a09d29"), + Format = "yyyy-MM-ddTHH:mm:ss", + NewsParsePublishedAtSettingsId = new Guid("e07f5d48-7c9a-4425-ae9f-788d26a63f23") + }, + new + { + Id = new Guid("098793a2-d99d-494b-afba-e727e26214b7"), + Format = "yyyy-MM-ddTHH:mm:ss\"+0300\"", + NewsParsePublishedAtSettingsId = new Guid("21890de7-31ad-4c9e-a749-05f565d45905") + }, + new + { + Id = new Guid("7a4a173c-cad8-4a09-adef-caecda7f5283"), + Format = "yyyy-MM-ddTHH:mm:sszzz", + NewsParsePublishedAtSettingsId = new Guid("6f87ed33-a16c-465a-8784-33c69ef9bb0c") + }, + new + { + Id = new Guid("a614d044-0c1d-4a5a-b547-a22ec2fdd1c0"), + Format = "yyyy-MM-ddTHH:mm:sszzz", + NewsParsePublishedAtSettingsId = new Guid("dc0d0ef7-eb9e-4632-b75e-9d7d9ba44daa") + }, + new + { + Id = new Guid("cdc7b365-0e9b-405d-b948-4c074942dcc3"), + Format = "yyyy-MM-ddTHH:mm:sszzz", + NewsParsePublishedAtSettingsId = new Guid("47328c5f-5e86-4b2d-be25-fe9198a946fc") + }, + new + { + Id = new Guid("d647a983-f4e1-4610-9ee7-5d8163fdd865"), + Format = "yyyy-MM-ddTHH:mm:sszzz", + NewsParsePublishedAtSettingsId = new Guid("00106a66-61a0-4abd-b58e-9f9b4ed2c07d") + }, + new + { + Id = new Guid("490ce35b-c2e5-4008-93f1-632720e22073"), + Format = "yyyy-MM-ddTHH:mmzzz", + NewsParsePublishedAtSettingsId = new Guid("a4130bc3-4c5f-451f-92f1-73e1c1745fc6") + }, + new + { + Id = new Guid("c0ff192d-ad34-459b-8fe8-49d20e6c5f41"), + Format = "yyyy-MM-dd HH:mm:ss", + NewsParsePublishedAtSettingsId = new Guid("20903a2a-fdf2-4909-8478-bbfd57c492be") + }, + new + { + Id = new Guid("558de16f-ff6b-412c-9526-c6dd265565f4"), + Format = "d MMMM yyyy HH:mm", + NewsParsePublishedAtSettingsId = new Guid("89fc1310-fff8-4cdc-aff5-c4285f9ab73c") + }, + new + { + Id = new Guid("d7afea6f-76d6-4684-86ce-f4d232f21786"), + Format = "d MMMM HH:mm", + NewsParsePublishedAtSettingsId = new Guid("89fc1310-fff8-4cdc-aff5-c4285f9ab73c") + }, + new + { + Id = new Guid("b871e83e-0792-470a-8610-4264a83c16b1"), + Format = "dd MMMM yyyy, HH:mm", + NewsParsePublishedAtSettingsId = new Guid("4a6be1f2-8429-4185-a9c6-03aeda076dcd") + }, + new + { + Id = new Guid("6c0231f6-71e1-4911-959c-9c93c1408781"), + Format = "dd MMMM, HH:mm", + NewsParsePublishedAtSettingsId = new Guid("4a6be1f2-8429-4185-a9c6-03aeda076dcd") + }, + new + { + Id = new Guid("7b5a7ff9-dc44-4399-8049-30505337726e"), + Format = "HH:mm", + NewsParsePublishedAtSettingsId = new Guid("4a6be1f2-8429-4185-a9c6-03aeda076dcd") + }, + new + { + Id = new Guid("8e6578d8-62d7-4761-a9a2-60e8cfd4da58"), + Format = "d MMMM yyyy, HH:mm\" •\"", + NewsParsePublishedAtSettingsId = new Guid("f02b9ed4-7b5b-4572-bf74-604513ced86b") + }, + new + { + Id = new Guid("a3e3e93d-5850-4f27-885b-d80d10d72a8e"), + Format = "d MMMM yyyy, HH:mm \"МСК\"", + NewsParsePublishedAtSettingsId = new Guid("a5685486-3a98-45aa-96b7-d25cd5e40c5d") + }, + new + { + Id = new Guid("715c49ba-24ae-40af-b0b5-cacd488cb00e"), + Format = "yyyy-MM-ddTHH:mm:sszzz", + NewsParsePublishedAtSettingsId = new Guid("4a335cad-bc2f-442e-9c89-74da04bbde90") + }, + new + { + Id = new Guid("04d00724-05cc-4ca5-a951-889b75da6f97"), + Format = "yyyy-MM-ddTHH:mm:sszzz", + NewsParsePublishedAtSettingsId = new Guid("82ed5673-25e2-497f-aaea-3dd42ecd4f85") + }, + new + { + Id = new Guid("63435dc7-a82d-43d8-80e9-f5e1307ec3ab"), + Format = "d MMMM yyyy \"в\" HH:mm", + NewsParsePublishedAtSettingsId = new Guid("fed30888-ff5a-4843-8a23-fa452ed88675") + }, + new + { + Id = new Guid("04fe3029-59e0-4670-9a51-99593a0f8041"), + Format = "yyyy-MM-dd HH:mm:ss", + NewsParsePublishedAtSettingsId = new Guid("2622b86a-c47b-4143-a11e-f2aad18faa8e") + }, + new + { + Id = new Guid("5161d08b-a97d-4fa1-ad5a-069c3b5dc41a"), + Format = "yyyy-MM-ddTHH:mm:sszzz", + NewsParsePublishedAtSettingsId = new Guid("b208c066-da95-4c32-baec-ff448a07f62d") + }, + new + { + Id = new Guid("3d3f9878-e5a6-4163-acb9-afe1346b3cf2"), + Format = "yyyy-MM-ddTHH:mm:ss", + NewsParsePublishedAtSettingsId = new Guid("e762bdb6-dfae-410b-9478-3ff4b45dbe70") + }, + new + { + Id = new Guid("94e51912-995a-4976-a4a0-4cc03ffe4e82"), + Format = "yyyy-MM-ddTHH:mm:ssZ", + NewsParsePublishedAtSettingsId = new Guid("a2c411a5-4b6a-4ed8-b383-b1a4f05b4605") + }, + new + { + Id = new Guid("0b9c2546-034c-44d5-b328-fc29b3b96db4"), + Format = "yyyy-MM-ddTHH:mm:sszzz", + NewsParsePublishedAtSettingsId = new Guid("3f29a12c-5e1c-45de-bf8b-96897f8ac962") + }, + new + { + Id = new Guid("78b09bbf-a311-4d1a-9d00-d054898f1354"), + Format = "yyyy-MM-ddTHH:mm:sszzz", + NewsParsePublishedAtSettingsId = new Guid("79e88ebb-d542-4d19-a212-6c21f2688c77") + }, + new + { + Id = new Guid("b0dec36b-12b0-4ff1-af8c-7feff35137de"), + Format = "yyyy-MM-ddTHH:mm:sszzz", + NewsParsePublishedAtSettingsId = new Guid("c00312de-2ba3-4047-b80c-e5624577ad29") + }, + new + { + Id = new Guid("6c536ec8-3a65-4fa3-9862-f7744d5b1e1f"), + Format = "yyyy-MM-ddTHH:mm:ss.fffZ", + NewsParsePublishedAtSettingsId = new Guid("da19d28d-156b-47a0-868b-18f4ec0c8114") + }, + new + { + Id = new Guid("055ce086-a067-43f4-98ad-4b3b039328d6"), + Format = "d-M-yyyy HH:mm", + NewsParsePublishedAtSettingsId = new Guid("5c23cab5-7864-429b-9080-ba88f81c6751") + }, + new + { + Id = new Guid("e0b7abad-a103-4050-92c5-36017a518376"), + Format = "yyyy-MM-ddTHH:mm:ss.fffZ", + NewsParsePublishedAtSettingsId = new Guid("ccc2a5c5-02fd-4a8d-ace5-7f41742f442b") + }, + new + { + Id = new Guid("fb9e24ab-9e5b-4641-ac8b-df59d34811d1"), + Format = "yyyy-MM-ddTHH:mm:ss.fffZ", + NewsParsePublishedAtSettingsId = new Guid("1fe09b4f-73bd-4979-8206-439489299a64") + }, + new + { + Id = new Guid("79934951-c9f9-4230-8eb5-2d3a80f4d4f4"), + Format = "yyyy-MM-ddTHH:mm:ss.fff\"Z+0300\"", + NewsParsePublishedAtSettingsId = new Guid("d153a1fc-66c6-4313-adc9-36850ec82124") + }, + new + { + Id = new Guid("9c7e361a-0096-483d-8f8a-edae7e347e1a"), + Format = "d MMMM yyyy", + NewsParsePublishedAtSettingsId = new Guid("c6115996-838b-4309-813e-d520085af7df") + }, + new + { + Id = new Guid("677d695e-ddcc-4a66-aa7f-ff1ccdb726dd"), + Format = "yyyy-MM-dd HH:mm", + NewsParsePublishedAtSettingsId = new Guid("8208ff9e-fbf8-4206-b4d8-e7f7287b2dec") + }, + new + { + Id = new Guid("699ff8c9-5f7e-4216-8e21-23627129bab9"), + Format = "yyyy-MM-ddTHH:mm:sszzz", + NewsParsePublishedAtSettingsId = new Guid("8bf5f85a-aba6-48a5-8704-3f6c4f51d9d1") + }, + new + { + Id = new Guid("d70086c1-dd34-40a7-b8d5-225689fd993c"), + Format = "yyyy-MM-dd", + NewsParsePublishedAtSettingsId = new Guid("9bfd49d6-dcb9-4a65-80f5-c9ac3b6b490d") + }, + new + { + Id = new Guid("95c6753e-1df4-4708-9b80-6976c6b91292"), + Format = "yyyy-MM-ddTHH:mm:ssZ", + NewsParsePublishedAtSettingsId = new Guid("e6bd53e0-c868-451c-87a5-e048343b2759") + }, + new + { + Id = new Guid("6b286540-6b0b-42b6-a696-aed7dd5844c8"), + Format = "yyyy-MM-ddTHH:mm:sszzz", + NewsParsePublishedAtSettingsId = new Guid("0cea5575-ec4f-4b14-a0cc-49185e1d1768") + }, + new + { + Id = new Guid("af484c5e-0924-4f42-bcc5-8c4407ea9a92"), + Format = "yyyy-MM-ddTHH:mm:ss\"+0300\"", + NewsParsePublishedAtSettingsId = new Guid("f3f8cc16-9599-42fa-acea-c66be06e0d13") + }, + new + { + Id = new Guid("c0377df6-a447-44bb-9698-cd37f084d4be"), + Format = "dd.MM.yyyy, HH:mm", + NewsParsePublishedAtSettingsId = new Guid("cbe14234-0158-487c-b0c0-2117107b9a34") + }, + new + { + Id = new Guid("c66b5e6c-d604-4a55-b38f-f9ae415ecd1c"), + Format = "yyyy-MM-ddTHH:mm:sszzz", + NewsParsePublishedAtSettingsId = new Guid("fdad3f1e-646d-4fe0-b46f-cf5a2d320981") + }, + new + { + Id = new Guid("7ff54b73-3ea0-49c6-9702-ad9fe746e1c9"), + Format = "yyyy-MM-ddTHH:mm:sszzz", + NewsParsePublishedAtSettingsId = new Guid("f4df8c3f-efa8-4fa5-bb34-91942ecec22a") + }, + new + { + Id = new Guid("a28a5ac8-e766-4c34-823a-a5703f3ef96b"), + Format = "dd.MM.yyyy \"-\" HH:mm", + NewsParsePublishedAtSettingsId = new Guid("8ff05689-5c68-4f41-9023-4bfead386fed") + }, + new + { + Id = new Guid("05a46c75-81a5-4b37-b01f-7ef41ba35858"), + Format = "yyyy-MM-ddTHH:mm:ss\"+0300\"", + NewsParsePublishedAtSettingsId = new Guid("eaf8f8a4-7781-4285-b447-1e3309b2edbf") + }, + new + { + Id = new Guid("664d9377-1900-4561-aa21-c2b0a7a1f8ac"), + Format = "dd MMMM yyyy, HH:mm", + NewsParsePublishedAtSettingsId = new Guid("22c82c40-fe3a-4394-ab34-295e3c094dcf") + }, + new + { + Id = new Guid("be418012-872b-49b6-bce4-f91a9bf8ef1d"), + Format = "dd.MM.yyyy HH:mm", + NewsParsePublishedAtSettingsId = new Guid("80bc5b20-336c-4ac1-9ee0-e231d0ef74c7") + }, + new + { + Id = new Guid("9b3343e0-5099-4696-a6b4-c00035cc78b3"), + Format = "d MMMM yyyy, HH:mm", + NewsParsePublishedAtSettingsId = new Guid("d3c31d01-f7fd-42e6-8378-3df623d1fc09") + }, + new + { + Id = new Guid("5b48664a-bb06-480d-bbd4-c7acebf918db"), + Format = "yyyyMMddTHHmm", + NewsParsePublishedAtSettingsId = new Guid("3785f3c0-c9d3-4e29-a0b8-46fa78983506") + }, + new + { + Id = new Guid("a9340a6d-ec66-49fc-8150-3a6a698e999e"), + Format = "HH:mm, d MMMM yyyy", + NewsParsePublishedAtSettingsId = new Guid("5e7874b1-13e9-4cf5-a96a-6612fe3661cf") + }, + new + { + Id = new Guid("a77f62ce-bb2c-41a7-8a35-f0aa8147e4de"), + Format = "yyyy-MM-ddTHH:mm:ssZ", + NewsParsePublishedAtSettingsId = new Guid("74a87f1a-0325-4690-8c87-8ba4d24e078b") + }, + new + { + Id = new Guid("5c71bd20-8b52-4291-89a4-8a54bb2e374b"), + Format = "yyyy-MM-ddTHH:mm:sszzz", + NewsParsePublishedAtSettingsId = new Guid("21813794-9df2-4993-a696-a65ee04af666") + }, + new + { + Id = new Guid("0ab06b9d-5327-4461-9493-a01ff9b37dfa"), + Format = "yyyy-MM-dd HH:mm:ss", + NewsParsePublishedAtSettingsId = new Guid("2dfea686-66c2-4b59-86cf-01fdce1da6c5") + }); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsParseSettings", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uuid") + .HasColumnName("id"); + + b.Property("HtmlDescriptionXPath") + .IsRequired() + .HasColumnType("text") + .HasColumnName("html_description_x_path"); + + b.Property("SourceId") + .HasColumnType("uuid") + .HasColumnName("source_id"); + + b.Property("TextDescriptionXPath") + .IsRequired() + .HasColumnType("text") + .HasColumnName("text_description_x_path"); + + b.Property("TitleXPath") + .IsRequired() + .HasColumnType("text") + .HasColumnName("title_x_path"); + + b.HasKey("Id") + .HasName("pk_news_parse_settings"); + + b.HasIndex("SourceId") + .IsUnique() + .HasDatabaseName("ix_news_parse_settings_source_id"); + + b.ToTable("news_parse_settings", (string)null); + + b.HasData( + new + { + Id = new Guid("9d11efde-ae9c-42a7-ac57-649bf5891e8a"), + HtmlDescriptionXPath = "//div[contains(@class, 'article__body')]", + SourceId = new Guid("b8d20577-6c4c-4bd7-a1b1-b58bb4914541"), + TextDescriptionXPath = "//div[contains(@class, 'article__body')]//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("da641510-f1dd-4fce-b895-cbf32dca79bf"), + HtmlDescriptionXPath = "//div[contains(@class, 'article__text ')]", + SourceId = new Guid("5d8e3050-5444-4709-afc3-18a8d46a71ba"), + TextDescriptionXPath = "//div[contains(@class, 'article__text ')]//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("28bff881-79f7-400c-ab5d-489176c269bb"), + HtmlDescriptionXPath = "//article/*", + SourceId = new Guid("7e889af8-0f19-44ab-96d4-241fd64fbcdb"), + TextDescriptionXPath = "//article/*//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("a39fd0cf-d695-451a-8ec5-b662eddf4e9e"), + HtmlDescriptionXPath = "//div[@class='topic-body__content']", + SourceId = new Guid("fb2f8557-ca7e-4ce2-86dd-b8a94ee02275"), + TextDescriptionXPath = "//div[@class='topic-body__content']//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("52014d82-bd2b-47fb-9ba1-668df2126197"), + HtmlDescriptionXPath = "//div[contains(@class, 'PageContentCommonStyling_text')]/*[not(name() = 'rg-video')]", + SourceId = new Guid("31b6f068-3f00-4250-bc74-62146525ba95"), + TextDescriptionXPath = "//div[contains(@class, 'PageContentCommonStyling_text')]/*[not(name() = 'rg-video')]//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("e8ea5810-3cc4-46dd-84d7-eb7b5cbf3f3b"), + HtmlDescriptionXPath = "//div[@class='article_text']", + SourceId = new Guid("9268835d-553d-4fbe-a0cb-0545b8019c68"), + TextDescriptionXPath = "//div[@class='article_text']//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("929687ee-eb6f-4e95-852d-9635657d7f89"), + HtmlDescriptionXPath = "//div[@class='article__text article__text_free']/*[not(contains(@class, 'article__text__overview')) and not(contains(@class, 'article__main-image'))]", + SourceId = new Guid("950d59d6-d94c-4396-a55e-cbcd2a9b533c"), + TextDescriptionXPath = "//div[@class='article__text article__text_free']/*[not(contains(@class, 'article__text__overview')) and not(contains(@class, 'article__main-image'))]//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("8c399ef5-9d29-4442-a621-52867b8e7f6d"), + HtmlDescriptionXPath = "//div[contains(@class, 'news-item__content')]", + SourceId = new Guid("3e1f065a-c135-4429-941e-d870886b4147"), + TextDescriptionXPath = "//div[contains(@class, 'news-item__content')]//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("efd9bf27-abb2-46c2-bedb-dc7e745e55fb"), + HtmlDescriptionXPath = "//div[@class='article_text_wrapper js-search-mark']/*[not(contains(@class, 'doc__text document_authors'))]", + SourceId = new Guid("baaa533a-cb1a-46e7-bb9e-79d631affc87"), + TextDescriptionXPath = "//div[@class='article_text_wrapper js-search-mark']/*[not(contains(@class, 'doc__text document_authors'))]//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("9de1ef08-878b-4559-85af-a8b14d7ce68b"), + HtmlDescriptionXPath = "//div[@itemprop='articleBody']/*", + SourceId = new Guid("31252741-4d0b-448f-b85c-d6538f7ca565"), + TextDescriptionXPath = "//div[@itemprop='articleBody']//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("4c29ab0b-01eb-466e-8dc3-fe05886f4332"), + HtmlDescriptionXPath = "//div[@class='article__content']/*[not(contains(@class, 'article__title')) and not(contains(@class, 'article__intro'))]", + SourceId = new Guid("3b8c9766-f5d5-44ec-a014-45ddce4a9a0c"), + TextDescriptionXPath = "//div[@class='article__content']/*[not(contains(@class, 'article__title')) and not(contains(@class, 'article__intro'))]//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("77a6c5a1-b883-444f-ba7e-f0289943947f"), + HtmlDescriptionXPath = "//div[@class='js-mediator-article']", + SourceId = new Guid("fc0a229f-bde4-4f61-b4eb-75d1285665dd"), + TextDescriptionXPath = "//div[@class='js-mediator-article']//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("68faffa0-b7e6-44bb-a958-441eb532bfbb"), + HtmlDescriptionXPath = "//div[@class='b-text__content']/div[contains(@class, 'b-text__block')]", + SourceId = new Guid("6854c858-b82d-44f5-bb48-620c9bf9825d"), + TextDescriptionXPath = "//div[@class='b-text__content']/div[contains(@class, 'b-text__block')]//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("f6ef6598-401b-4cd8-8654-f3009b41593f"), + HtmlDescriptionXPath = "//div[@class='b-material-body']/div/*[not(@class='b-material-incut-m-image')]", + SourceId = new Guid("3e24ec11-86a4-4db8-9337-35a00988da7d"), + TextDescriptionXPath = "//div[@class='b-material-body']/div/*[not(@class='b-material-incut-m-image')]//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("a1b03754-30d4-4c65-946d-10995830a159"), + HtmlDescriptionXPath = "//article/div[@class='news_text']", + SourceId = new Guid("e2ce0a01-9d10-4133-a989-618739aa3854"), + TextDescriptionXPath = "//article/div[@class='news_text']//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("052241f9-e3e7-4722-9f56-7202de4a331e"), + HtmlDescriptionXPath = "//article/div[@class='article-content']/*[not(@class)]", + SourceId = new Guid("49bcf6b7-15bc-4f30-a3d6-3c88837aa039"), + TextDescriptionXPath = "//article/div[@class='article-content']/*[not(@class)]//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("3373c5b8-57e2-402b-9dfb-a0ae19e92336"), + HtmlDescriptionXPath = "//div[contains(@class, 'styles_bodyWrapper')]/div[not(@class)]", + SourceId = new Guid("170a9aef-a708-41a4-8370-a8526f2c055f"), + TextDescriptionXPath = "//div[contains(@class, 'styles_bodyWrapper')]/div[not(@class)]//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("44d47f91-a811-4cc3-a70f-f12236d1476d"), + HtmlDescriptionXPath = "//div[contains(@class, 'article-entry')]//div[@class='js-mediator-article']/*[position()>4]", + SourceId = new Guid("5aebacd6-b4d5-4839-b2f0-533ff3329941"), + TextDescriptionXPath = "//div[contains(@class, 'article-entry')]//div[@class='js-mediator-article']/*[position()>4 and not(name()='script')]//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("96ef6e5b-c81b-45e7-a715-1aa131d82ef2"), + HtmlDescriptionXPath = "//div[@itemprop='articleBody']/*[position()>2]", + SourceId = new Guid("e023416d-7d91-4d92-bd5f-37d57c54f6b4"), + TextDescriptionXPath = "//div[@itemprop='articleBody']/*[position()>2]//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("f1b027fc-2809-4eaa-9858-c49a8756852f"), + HtmlDescriptionXPath = "//div[contains(@class, 'container-fluid shifted') and not(p[@class='announce lead']) and not(h1) and not(hr)]", + SourceId = new Guid("604e9548-9b99-4bd4-ab90-4bf90b4a1807"), + TextDescriptionXPath = "//div[contains(@class, 'container-fluid shifted') and not(p[@class='announce lead']) and not(h1) and not(hr)]//text()", + TitleXPath = "//meta[@name='og:title']/@content" + }, + new + { + Id = new Guid("60a60886-4da0-4c2c-8635-a8ec57827667"), + HtmlDescriptionXPath = "//div[@itemprop='articleBody']/*", + SourceId = new Guid("cc29eb91-2efb-4d57-8d14-bb5356cbfbb8"), + TextDescriptionXPath = "//div[@itemprop='articleBody']/*//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("5c2d9dff-16d7-47f9-8d32-07f8fb52ac76"), + HtmlDescriptionXPath = "//article[@itemprop='articleBody']/*[not(name() = 'h1') and not(name() = 'aside') and not(name() = 'meta') and not(name() = 'link') and not(@itemprop)]", + SourceId = new Guid("57597b92-2b9d-422e-b0a7-9b11326c879b"), + TextDescriptionXPath = "//article[@itemprop='articleBody']/*[not(name() = 'h1') and not(name() = 'aside') and not(name() = 'meta') and not(name() = 'link') and not(@itemprop)]//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("aed24362-5c8e-4b31-9bbe-bb068f9c0f01"), + HtmlDescriptionXPath = "//div[contains(@class, 'full-article')]/*[not(name()='h1') and not(name()='style') and not(name()='div')]", + SourceId = new Guid("13f235b7-a6f6-4da4-83a1-13b5af26700a"), + TextDescriptionXPath = "//div[contains(@class, 'full-article')]/*[not(name()='h1') and not(name()='style') and not(name()='div')]//text()", + TitleXPath = "//meta[@name='title']/@content" + }, + new + { + Id = new Guid("d477dceb-5655-432b-8bca-b2ca2d944d87"), + HtmlDescriptionXPath = "//div[@itemprop='articleBody']/*[not(name()='div')]", + SourceId = new Guid("e16286a8-78a9-4b86-ba4b-c844f7099336"), + TextDescriptionXPath = "//div[@itemprop='articleBody']/*[not(name()='div')]//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("e4542056-2c68-43c6-a85c-9e4899556800"), + HtmlDescriptionXPath = "//div[@itemprop='articleBody']/*[not(name()='figure' and position()=1)]", + SourceId = new Guid("321e1615-6328-4532-85ac-22d53d59c164"), + TextDescriptionXPath = "//div[@itemprop='articleBody']/*[not(name()='figure') and not(lazyhydrate)]//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("921d7c0a-c084-4188-b243-d08580f65142"), + HtmlDescriptionXPath = "//div[@itemprop='articleBody']/*", + SourceId = new Guid("70873440-0058-4669-aa74-352489f9e6da"), + TextDescriptionXPath = "//div[@itemprop='articleBody']/*//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("11795391-d20d-48df-ab38-30f796737a43"), + HtmlDescriptionXPath = "//div[contains(@class, 'js-mediator-article')]/*[position()>1]", + SourceId = new Guid("797060c0-3b47-4654-9176-32d719baad69"), + TextDescriptionXPath = "//div[contains(@class, 'js-mediator-article')]/*[position()>1]//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("f63d1e4f-e82d-4020-8b9c-65beaab1d7c3"), + HtmlDescriptionXPath = "//article//div[@class='newstext-con']/*[position()>2]", + SourceId = new Guid("e4b3e286-3589-49de-892b-d0d06e719115"), + TextDescriptionXPath = "//article//div[@class='newstext-con']/*[position()>2]//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("3c4ef27a-3157-4eff-a441-1e409c4b6c34"), + HtmlDescriptionXPath = "//section[@name='articleBody']/*", + SourceId = new Guid("136c7569-601c-4f16-9ca4-bd14bfa8c16a"), + TextDescriptionXPath = "//section[@name='articleBody']/*//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("2de49bdd-5c36-49ff-9a3b-a1f6ceb75e75"), + HtmlDescriptionXPath = "//div[@itemprop='articleBody']/*", + SourceId = new Guid("5c3b0099-2a8a-49a5-8c68-d24ebc9fac07"), + TextDescriptionXPath = "//div[@itemprop='articleBody']/*//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("76b3ad9b-48c5-4f9e-ab28-993ba795fdb1"), + HtmlDescriptionXPath = "//div[@data-gtm-el='content-body']/*[not(name()='div' and @data-wide='true')]", + SourceId = new Guid("cb68ce1c-c741-41df-a1c9-8ce34529b421"), + TextDescriptionXPath = "//div[@data-gtm-el='content-body']/*[not(name()='div' and @data-wide='true')]//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("2d46f779-c13c-4699-9460-629e254a6444"), + HtmlDescriptionXPath = "//div[contains(@class, 'styled__StoryBody')]/*[not(name()='p' and contains(@class, 'styled__StoryParagraph') and position()=1) and not(name()='div' and contains(@class, 'styled__StoryImgContainer') and position()=2)]", + SourceId = new Guid("a71c23bf-67e9-4955-bc8e-6226bd86ba90"), + TextDescriptionXPath = "//div[contains(@class, 'styled__StoryBody')]/*[not(name()='p' and contains(@class, 'styled__StoryParagraph') and position()=1) and not(name()='div' and contains(@class, 'styled__StoryImgContainer') and position()=2)]//text()", + TitleXPath = "//meta[@name='og:title']/@content" + }, + new + { + Id = new Guid("e3fcdd00-2152-4d84-8f8c-bf70e4996990"), + HtmlDescriptionXPath = "//section[@itemprop='articleBody']/*", + SourceId = new Guid("454f4f08-58cf-4ab7-9012-1e5ba663570c"), + TextDescriptionXPath = "//section[@itemprop='articleBody']/*[not(name()='script')]//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("613dbfcf-7f5c-4060-a92a-d2ec7586f4a3"), + HtmlDescriptionXPath = "//div[contains(@class, 'material-content')]/*", + SourceId = new Guid("dac8cec6-c84d-4287-b0b9-71f4cf304c7e"), + TextDescriptionXPath = "//div[contains(@class, 'material-content')]/p//text()", + TitleXPath = "//a[@class='header']/text()" + }, + new + { + Id = new Guid("32cad97f-b071-4e24-bdc9-10e5e58cf99b"), + HtmlDescriptionXPath = "//div[@class='textart']/div[not(@class)]/*", + SourceId = new Guid("296270ec-026b-4011-83ff-1466ba577864"), + TextDescriptionXPath = "//div[@class='textart']/div[not(@class)]//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("692ba156-95b9-4a24-9b0c-71b769e8d3a8"), + HtmlDescriptionXPath = "//div[@class='material-7days__paragraf-content']/*[not(name()='div' and @itemprop='image' and position()=1)]", + SourceId = new Guid("ba078388-eedf-4ccb-af5f-3f686f4ece4a"), + TextDescriptionXPath = "//div[@class='material-7days__paragraf-content']//p//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("49c1bb0c-b546-4142-a7ba-4925f71a933c"), + HtmlDescriptionXPath = "//section[@itemprop='articleBody']/div[@class='ds-article-content-block-and-creative-container' and position()>1]", + SourceId = new Guid("05765a1b-b174-4ad1-9f63-3189a52303f9"), + TextDescriptionXPath = "//section[@itemprop='articleBody']/div[@class='ds-article-content-block-and-creative-container' and position()>1]//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("be3e061e-25f4-4b43-a9f6-45db165b6000"), + HtmlDescriptionXPath = "//section[contains(@class, '_page-section')]/div[contains(@class, '_content_')]/*", + SourceId = new Guid("b5594347-6ec0-44c0-b381-7ae47f04fa56"), + TextDescriptionXPath = "//section[contains(@class, '_page-section')]/div[contains(@class, '_content_')]/*[contains(@class, '_text_')]//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("cba88caa-d8af-4e40-b8fa-14946187e939"), + HtmlDescriptionXPath = "//div[@class='widgets__item__text__inside']/*", + SourceId = new Guid("c169d8ad-a9fe-44e9-af6a-fd337ae10000"), + TextDescriptionXPath = "//div[@class='widgets__item__text__inside']//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("611bd50e-69f5-4598-8ad6-8b19771f1044"), + HtmlDescriptionXPath = "//div[@class='only__text']/*", + SourceId = new Guid("c7b863af-0565-4bec-9238-9383272637ef"), + TextDescriptionXPath = "//div[@class='only__text']/*[not(name()='script')]//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("5726d5dd-18ac-4c5c-a5d1-f775f1dd0b20"), + HtmlDescriptionXPath = "//div[@id='article_body']/*", + SourceId = new Guid("33b14253-7c02-4b79-8490-c8ed10312230"), + TextDescriptionXPath = "//div[@id='article_body']//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("fa16a108-45c2-42e4-8323-b1f3ea3cdf46"), + HtmlDescriptionXPath = "//div[@class='news-content__body']//div[contains(@class, 'content-text')]/*", + SourceId = new Guid("6c5fe2d4-8547-4fb0-8966-d148f8d77af7"), + TextDescriptionXPath = "//div[@class='news-content__body']//div[contains(@class, 'content-text')]//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("d36d75dc-add7-4e21-8a31-2f40f4033b14"), + HtmlDescriptionXPath = "//section[@itemprop='articleBody']/*", + SourceId = new Guid("068fb7bb-4b76-4261-bc9a-274625fe8890"), + TextDescriptionXPath = "//section[@itemprop='articleBody']//p//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("14db83c2-cee9-47a2-b8fc-210bbbd399aa"), + HtmlDescriptionXPath = "//div[@class='article-text']/*[not(name()='div' and @class='picture-wrapper')]", + SourceId = new Guid("60747323-2a4c-44e1-880d-7e5e36642645"), + TextDescriptionXPath = "//div[@class='article-text']/*[not(name()='div' and @class='picture-wrapper')]//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("a7d88817-12e6-434a-8c25-949dde2609f4"), + HtmlDescriptionXPath = "//span[@itemprop='articleBody']/*", + SourceId = new Guid("2fa2ff6a-9a8b-4a2d-b0e4-6e7e14679236"), + TextDescriptionXPath = "//span[@itemprop='articleBody']//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("c965a1d0-83b6-4018-a4a5-9c426a02943e"), + HtmlDescriptionXPath = "//div[contains(@class, 'field-type-text-long')]/*", + SourceId = new Guid("b2fb23b4-3f6d-440c-9ec0-99216f233fd0"), + TextDescriptionXPath = "//div[contains(@class, 'field-type-text-long')]//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("52ac2f5a-3b95-4adc-9c2a-abd192a1ec26"), + HtmlDescriptionXPath = "//div[@itemprop='articleBody']/*", + SourceId = new Guid("b9ec9be8-e1f2-49d6-b461-b61872bb369c"), + TextDescriptionXPath = "//div[@itemprop='articleBody']//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("289bab5a-8dd4-4ca7-a510-ff6a496b3993"), + HtmlDescriptionXPath = "//div[@id='content']//div[contains(@class, 'topic')]/div[@class='content']/*", + SourceId = new Guid("65141fc2-760f-4866-86c5-08cc764cabac"), + TextDescriptionXPath = "//div[@id='content']//div[contains(@class, 'topic')]/div[@class='content']//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("6d16ec92-860e-4bd8-9618-1e5b2ac5a792"), + HtmlDescriptionXPath = "//div[contains(@class, 'finfin-local-plugin-publication-item-item-')]/*", + SourceId = new Guid("9e3453b3-be81-4f3b-93da-45192677c6a9"), + TextDescriptionXPath = "//div[contains(@class, 'finfin-local-plugin-publication-item-item-')]//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("a03ca9fd-6e2d-4da5-9017-5feb6a9a1404"), + HtmlDescriptionXPath = "//div[@class='newsDetail-content__info']/*[not(name()='h1') and not(name()='h5')]", + SourceId = new Guid("9519622d-50f0-4a8d-8728-c58c12255b6f"), + TextDescriptionXPath = "//div[@class='newsDetail-content__info']/*[not(name()='h1') and not(name()='h5')]//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("dd419d1c-db40-4fd4-8f12-34206242d7cc"), + HtmlDescriptionXPath = "//div[contains(@class, 'article__body')]/*", + SourceId = new Guid("1994c4bc-aeb9-4242-81df-5bafffca6fd0"), + TextDescriptionXPath = "//div[contains(@class, 'article__body')]//*[not(name()='script')]/text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("6a7db6d7-c4ec-471c-93e2-9f7b9dd9180c"), + HtmlDescriptionXPath = "//div[@class='GeneralMaterial-module-article']/*[position()>1]", + SourceId = new Guid("3a346f18-1781-408b-bc8d-2f8e4cbc64ea"), + TextDescriptionXPath = "//div[@class='GeneralMaterial-module-article']/*[position()>1]//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("32b2600c-03b7-4d2d-ace8-77b11e1a5041"), + HtmlDescriptionXPath = "//section[contains(@class, 'entry__content-list js-entry-content')]/*[not(contains(@class, 'cli-embed--header-media')) and not(contains(@class, 'cli-support-huffpost'))]", + SourceId = new Guid("1f913a9a-4e5a-4925-89c1-51e985f63e9d"), + TextDescriptionXPath = "//section[contains(@class, 'entry__content-list js-entry-content')]/*[not(contains(@class, 'cli-embed--header-media')) and not(contains(@class, 'cli-support-huffpost'))]/p//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("00a974a4-e223-45fb-965e-97269039d94a"), + HtmlDescriptionXPath = "//div[@class='article-body']//div[contains(@class, 'paywall')]/*", + SourceId = new Guid("e5afb99f-47ff-4822-89fa-2ff8859a5c42"), + TextDescriptionXPath = "//div[@class='article-body']//div[contains(@class, 'paywall')]//p/text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("1a5ca4c2-2984-4c52-9fa2-d7f564fd6add"), + HtmlDescriptionXPath = "//div[@class='sidebar-grid__content article__content']", + SourceId = new Guid("7c0ac71c-0e8e-425b-ac26-424b152415f5"), + TextDescriptionXPath = "//div[@class='sidebar-grid__content article__content']//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsParseSubTitleSettings", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uuid") + .HasColumnName("id"); + + b.Property("IsRequired") + .HasColumnType("boolean") + .HasColumnName("is_required"); + + b.Property("ParseSettingsId") + .HasColumnType("uuid") + .HasColumnName("parse_settings_id"); + + b.Property("TitleXPath") + .IsRequired() + .HasColumnType("text") + .HasColumnName("title_x_path"); + + b.HasKey("Id") + .HasName("pk_news_parse_sub_title_settings"); + + b.HasIndex("ParseSettingsId") + .IsUnique() + .HasDatabaseName("ix_news_parse_sub_title_settings_parse_settings_id"); + + b.ToTable("news_parse_sub_title_settings", (string)null); + + b.HasData( + new + { + Id = new Guid("5118a64e-b1fe-4226-b0f6-da9d0eb13ed0"), + IsRequired = false, + ParseSettingsId = new Guid("9d11efde-ae9c-42a7-ac57-649bf5891e8a"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("0c0b371b-5c93-4577-b625-7d520237ce5d"), + IsRequired = false, + ParseSettingsId = new Guid("da641510-f1dd-4fce-b895-cbf32dca79bf"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("c8a3d258-c774-4ac2-85ae-08f7ede167d4"), + IsRequired = false, + ParseSettingsId = new Guid("28bff881-79f7-400c-ab5d-489176c269bb"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("527db9fa-2e2a-4f4e-b9eb-b9055994211f"), + IsRequired = false, + ParseSettingsId = new Guid("a39fd0cf-d695-451a-8ec5-b662eddf4e9e"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("f179e895-457c-4ccf-88ff-b4562edb1f33"), + IsRequired = false, + ParseSettingsId = new Guid("52014d82-bd2b-47fb-9ba1-668df2126197"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("de397d9b-55d7-45f3-b03b-66584a58d137"), + IsRequired = false, + ParseSettingsId = new Guid("e8ea5810-3cc4-46dd-84d7-eb7b5cbf3f3b"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("07eddb61-de8e-46d8-ae6a-8f146d04e693"), + IsRequired = false, + ParseSettingsId = new Guid("929687ee-eb6f-4e95-852d-9635657d7f89"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("30955c5b-0b5c-4655-9581-4972b4fc0df5"), + IsRequired = false, + ParseSettingsId = new Guid("8c399ef5-9d29-4442-a621-52867b8e7f6d"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("b07f324a-9029-4214-8521-01187ec7376d"), + IsRequired = false, + ParseSettingsId = new Guid("efd9bf27-abb2-46c2-bedb-dc7e745e55fb"), + TitleXPath = "//meta[@name='description']/@content" + }, + new + { + Id = new Guid("ee437f1b-e11b-48cd-9db5-645c3537edf1"), + IsRequired = false, + ParseSettingsId = new Guid("9de1ef08-878b-4559-85af-a8b14d7ce68b"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("0f75da21-14e8-47a2-81e2-01c5e05b5f9f"), + IsRequired = false, + ParseSettingsId = new Guid("4c29ab0b-01eb-466e-8dc3-fe05886f4332"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("48759786-80ce-4ea1-84c2-f5cbb3b3e9d9"), + IsRequired = false, + ParseSettingsId = new Guid("77a6c5a1-b883-444f-ba7e-f0289943947f"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("e20418bb-871d-4c31-a56b-9038d36a37e1"), + IsRequired = false, + ParseSettingsId = new Guid("68faffa0-b7e6-44bb-a958-441eb532bfbb"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("8cb13ca5-b19a-47dd-93f4-13f82a2afaab"), + IsRequired = false, + ParseSettingsId = new Guid("f6ef6598-401b-4cd8-8654-f3009b41593f"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("4087fb58-d428-4c26-b88d-b20e5715a6f8"), + IsRequired = false, + ParseSettingsId = new Guid("a1b03754-30d4-4c65-946d-10995830a159"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("86d2ce89-f28a-4779-be9c-1832701f99d4"), + IsRequired = false, + ParseSettingsId = new Guid("052241f9-e3e7-4722-9f56-7202de4a331e"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("60431c05-e7a1-4c09-a2d3-940896b52565"), + IsRequired = false, + ParseSettingsId = new Guid("3373c5b8-57e2-402b-9dfb-a0ae19e92336"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("4a01f0ed-4373-4b4c-be4c-5d8b23cd7b4b"), + IsRequired = false, + ParseSettingsId = new Guid("44d47f91-a811-4cc3-a70f-f12236d1476d"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("df87f204-4c84-408d-b84b-392e39d40b1f"), + IsRequired = false, + ParseSettingsId = new Guid("96ef6e5b-c81b-45e7-a715-1aa131d82ef2"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("1f572948-8062-4f2a-9603-54fd0815ff44"), + IsRequired = false, + ParseSettingsId = new Guid("f1b027fc-2809-4eaa-9858-c49a8756852f"), + TitleXPath = "//meta[@name='og:description']/@content" + }, + new + { + Id = new Guid("34d00cc0-a590-4e50-a6d8-6c4c7511c4d8"), + IsRequired = false, + ParseSettingsId = new Guid("60a60886-4da0-4c2c-8635-a8ec57827667"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("552e2547-f0f4-4536-ac2b-0368eb0d03c6"), + IsRequired = false, + ParseSettingsId = new Guid("5c2d9dff-16d7-47f9-8d32-07f8fb52ac76"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("c4d81a5f-b716-4dec-9ddf-3c908343be6a"), + IsRequired = false, + ParseSettingsId = new Guid("aed24362-5c8e-4b31-9bbe-bb068f9c0f01"), + TitleXPath = "//meta[@name='description']/@content" + }, + new + { + Id = new Guid("c4ac25c5-d5da-4126-b298-8803c12b4930"), + IsRequired = false, + ParseSettingsId = new Guid("d477dceb-5655-432b-8bca-b2ca2d944d87"), + TitleXPath = "//meta[@itemprop='description']/@content" + }, + new + { + Id = new Guid("7e4b4a81-f9e7-4830-9127-6fd86379db9a"), + IsRequired = false, + ParseSettingsId = new Guid("e4542056-2c68-43c6-a85c-9e4899556800"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("6996d64b-f805-4868-a6d1-6d287f568e83"), + IsRequired = false, + ParseSettingsId = new Guid("921d7c0a-c084-4188-b243-d08580f65142"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("051b16f3-07e7-49c7-ae63-d49e01d685e6"), + IsRequired = false, + ParseSettingsId = new Guid("11795391-d20d-48df-ab38-30f796737a43"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("15009b74-1ebf-4de7-b127-24e412d887b1"), + IsRequired = false, + ParseSettingsId = new Guid("f63d1e4f-e82d-4020-8b9c-65beaab1d7c3"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("75075f9b-f14d-4720-8311-933ae0383523"), + IsRequired = false, + ParseSettingsId = new Guid("3c4ef27a-3157-4eff-a441-1e409c4b6c34"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("f32f03ee-4548-4259-ac50-d791451cb1d7"), + IsRequired = false, + ParseSettingsId = new Guid("2de49bdd-5c36-49ff-9a3b-a1f6ceb75e75"), + TitleXPath = "//meta[@name='description']/@content" + }, + new + { + Id = new Guid("e68f6ef8-cd76-4fc8-b98b-cb2bc02c3dfd"), + IsRequired = false, + ParseSettingsId = new Guid("76b3ad9b-48c5-4f9e-ab28-993ba795fdb1"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("e250183d-d316-4ef3-b7cf-887ce77ac342"), + IsRequired = false, + ParseSettingsId = new Guid("2d46f779-c13c-4699-9460-629e254a6444"), + TitleXPath = "//div[contains(@class, 'styled__StoryBody')]/p[contains(@class, 'styled__StoryParagraph') and position()=1]/text()" + }, + new + { + Id = new Guid("999110e1-29e6-4a98-8361-743dd7f8bf07"), + IsRequired = false, + ParseSettingsId = new Guid("e3fcdd00-2152-4d84-8f8c-bf70e4996990"), + TitleXPath = "//meta[@name='description']/@content" + }, + new + { + Id = new Guid("c694b06f-3d99-4ec4-b939-374b524b728f"), + IsRequired = false, + ParseSettingsId = new Guid("613dbfcf-7f5c-4060-a92a-d2ec7586f4a3"), + TitleXPath = "//meta[@name='description']/@content" + }, + new + { + Id = new Guid("9e43be0a-592d-4c1a-8525-9545d8fada04"), + IsRequired = false, + ParseSettingsId = new Guid("32cad97f-b071-4e24-bdc9-10e5e58cf99b"), + TitleXPath = "//div[@class='block-page-new']/h2/text()" + }, + new + { + Id = new Guid("255720d2-2188-4d40-ac74-86e2f87c78c7"), + IsRequired = false, + ParseSettingsId = new Guid("692ba156-95b9-4a24-9b0c-71b769e8d3a8"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("e3d307d2-0cd5-42d2-9c7c-2fab779bb299"), + IsRequired = false, + ParseSettingsId = new Guid("49c1bb0c-b546-4142-a7ba-4925f71a933c"), + TitleXPath = "//p[contains(@itemprop, 'alternativeHeadline')]/text()" + }, + new + { + Id = new Guid("568f8fd4-3715-4895-a979-509ce2da11e2"), + IsRequired = false, + ParseSettingsId = new Guid("be3e061e-25f4-4b43-a9f6-45db165b6000"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("19df7bef-b4dd-4a35-991a-49c9a28ebfeb"), + IsRequired = false, + ParseSettingsId = new Guid("cba88caa-d8af-4e40-b8fa-14946187e939"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("eb234374-29cf-43b4-ae0f-5e8a80aaf132"), + IsRequired = false, + ParseSettingsId = new Guid("611bd50e-69f5-4598-8ad6-8b19771f1044"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("b96057cb-5a77-4785-a20d-c7bbb0c4752e"), + IsRequired = false, + ParseSettingsId = new Guid("5726d5dd-18ac-4c5c-a5d1-f775f1dd0b20"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("7d88f1e1-8458-403d-8d83-3d076b4cedd4"), + IsRequired = false, + ParseSettingsId = new Guid("fa16a108-45c2-42e4-8323-b1f3ea3cdf46"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("2656349d-0958-4779-a36a-cca96fe04b6a"), + IsRequired = false, + ParseSettingsId = new Guid("d36d75dc-add7-4e21-8a31-2f40f4033b14"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("4b514907-cb5c-4b5c-aaa9-1d581955c40b"), + IsRequired = false, + ParseSettingsId = new Guid("14db83c2-cee9-47a2-b8fc-210bbbd399aa"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("45ebf04d-7b70-4c43-882d-af3d6ac3c687"), + IsRequired = false, + ParseSettingsId = new Guid("a7d88817-12e6-434a-8c25-949dde2609f4"), + TitleXPath = "//meta[@name='description']/@content" + }, + new + { + Id = new Guid("191181df-86e6-43c2-9643-5e9bb0ad62ac"), + IsRequired = false, + ParseSettingsId = new Guid("c965a1d0-83b6-4018-a4a5-9c426a02943e"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("c8e216e4-355b-42c5-babf-cb9ae005b27c"), + IsRequired = false, + ParseSettingsId = new Guid("52ac2f5a-3b95-4adc-9c2a-abd192a1ec26"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("a33df3a5-b0b4-4c61-8978-67452ed955c9"), + IsRequired = false, + ParseSettingsId = new Guid("289bab5a-8dd4-4ca7-a510-ff6a496b3993"), + TitleXPath = "//meta[@name='DESCRIPTION']/@content" + }, + new + { + Id = new Guid("688c8958-8946-4e0c-a943-3a614eedf013"), + IsRequired = false, + ParseSettingsId = new Guid("6d16ec92-860e-4bd8-9618-1e5b2ac5a792"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("a811b3a1-c233-4875-9930-b99032c4fe99"), + IsRequired = false, + ParseSettingsId = new Guid("a03ca9fd-6e2d-4da5-9017-5feb6a9a1404"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("cbcb009b-37f0-4cf5-882c-df9a9e7dc908"), + IsRequired = false, + ParseSettingsId = new Guid("dd419d1c-db40-4fd4-8f12-34206242d7cc"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("4ff736eb-a44a-4880-aa4f-f70988527bfe"), + IsRequired = false, + ParseSettingsId = new Guid("6a7db6d7-c4ec-471c-93e2-9f7b9dd9180c"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("82bb1ac2-5fbb-4240-bca2-5417604ec562"), + IsRequired = false, + ParseSettingsId = new Guid("32b2600c-03b7-4d2d-ace8-77b11e1a5041"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("ef3237fa-b43a-4deb-b9d1-2e0b64d98a2a"), + IsRequired = false, + ParseSettingsId = new Guid("00a974a4-e223-45fb-965e-97269039d94a"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("f7cd72a9-93c2-4f46-b76c-65cbe87a49ef"), + IsRequired = false, + ParseSettingsId = new Guid("1a5ca4c2-2984-4c52-9fa2-d7f564fd6add"), + TitleXPath = "//meta[@property='og:description']/@content" + }); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsParseVideoSettings", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uuid") + .HasColumnName("id"); + + b.Property("IsRequired") + .HasColumnType("boolean") + .HasColumnName("is_required"); + + b.Property("ParseSettingsId") + .HasColumnType("uuid") + .HasColumnName("parse_settings_id"); + + b.Property("UrlXPath") + .IsRequired() + .HasColumnType("text") + .HasColumnName("url_x_path"); + + b.HasKey("Id") + .HasName("pk_news_parse_video_settings"); + + b.HasIndex("ParseSettingsId") + .IsUnique() + .HasDatabaseName("ix_news_parse_video_settings_parse_settings_id"); + + b.ToTable("news_parse_video_settings", (string)null); + + b.HasData( + new + { + Id = new Guid("f3733384-2b0f-4b5e-bf44-040e6452b896"), + IsRequired = false, + ParseSettingsId = new Guid("9d11efde-ae9c-42a7-ac57-649bf5891e8a"), + UrlXPath = "//div[@class='article__header']//div[@class='media__video']//video/@src" + }, + new + { + Id = new Guid("55100c78-3692-482c-af91-808f1a4f29a4"), + IsRequired = false, + ParseSettingsId = new Guid("a39fd0cf-d695-451a-8ec5-b662eddf4e9e"), + UrlXPath = "//div[contains(@class, 'eagleplayer')]//video/@src" + }, + new + { + Id = new Guid("8bface35-e140-4937-8b51-06597bcfc862"), + IsRequired = false, + ParseSettingsId = new Guid("52014d82-bd2b-47fb-9ba1-668df2126197"), + UrlXPath = "//div[contains(@class, 'PageContentCommonStyling_text')]/rg-video//video/@src" + }, + new + { + Id = new Guid("4d2c5172-fc50-4854-bd47-44511c0fd763"), + IsRequired = false, + ParseSettingsId = new Guid("4c29ab0b-01eb-466e-8dc3-fe05886f4332"), + UrlXPath = "//meta[@property='og:video']/@content" + }, + new + { + Id = new Guid("f0a8b4c3-22d5-4aa7-be0c-0250cfa04d53"), + IsRequired = false, + ParseSettingsId = new Guid("f6ef6598-401b-4cd8-8654-f3009b41593f"), + UrlXPath = "//meta[@property='og:video:url']/@content" + }, + new + { + Id = new Guid("b5ff5316-a5a2-44b7-855f-7af3788ab3e9"), + IsRequired = false, + ParseSettingsId = new Guid("f63d1e4f-e82d-4020-8b9c-65beaab1d7c3"), + UrlXPath = "//article//div[@class='videoWrapper' and @itemprop='video']/iframe[@class='video']/@src" + }, + new + { + Id = new Guid("5a25f140-9895-4deb-9e9e-d048799446d3"), + IsRequired = false, + ParseSettingsId = new Guid("5726d5dd-18ac-4c5c-a5d1-f775f1dd0b20"), + UrlXPath = "//meta[@property='og:video']/@content" + }); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsPicture", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uuid") + .HasColumnName("id"); + + b.Property("NewsId") + .HasColumnType("uuid") + .HasColumnName("news_id"); + + b.Property("Url") + .IsRequired() + .HasColumnType("text") + .HasColumnName("url"); + + b.HasKey("Id") + .HasName("pk_news_pictures"); + + b.HasIndex("NewsId") + .IsUnique() + .HasDatabaseName("ix_news_pictures_news_id"); + + b.ToTable("news_pictures", (string)null); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsReaction", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uuid") + .HasColumnName("id"); + + b.Property("IpAddress") + .IsRequired() + .HasColumnType("text") + .HasColumnName("ip_address"); + + b.Property("NewsId") + .HasColumnType("uuid") + .HasColumnName("news_id"); + + b.Property("ReactedAt") + .HasColumnType("timestamp with time zone") + .HasColumnName("reacted_at"); + + b.Property("ReactionId") + .HasColumnType("uuid") + .HasColumnName("reaction_id"); + + b.HasKey("Id") + .HasName("pk_news_reactions"); + + b.HasIndex("IpAddress") + .HasDatabaseName("ix_news_reactions_ip_address"); + + b.HasIndex("NewsId") + .HasDatabaseName("ix_news_reactions_news_id"); + + b.HasIndex("ReactedAt") + .HasDatabaseName("ix_news_reactions_reacted_at"); + + b.HasIndex("ReactionId") + .HasDatabaseName("ix_news_reactions_reaction_id"); + + b.ToTable("news_reactions", (string)null); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsSearchSettings", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uuid") + .HasColumnName("id"); + + b.Property("NewsSiteUrl") + .IsRequired() + .HasColumnType("text") + .HasColumnName("news_site_url"); + + b.Property("NewsUrlXPath") + .IsRequired() + .HasColumnType("text") + .HasColumnName("news_url_x_path"); + + b.Property("SourceId") + .HasColumnType("uuid") + .HasColumnName("source_id"); + + b.HasKey("Id") + .HasName("pk_news_search_settings"); + + b.HasIndex("SourceId") + .IsUnique() + .HasDatabaseName("ix_news_search_settings_source_id"); + + b.ToTable("news_search_settings", (string)null); + + b.HasData( + new + { + Id = new Guid("bea34033-d382-4e18-9957-ad079cdb9a61"), + NewsSiteUrl = "https://ria.ru/", + NewsUrlXPath = "//a[contains(@class, 'cell-list__item-link')]/@href", + SourceId = new Guid("b8d20577-6c4c-4bd7-a1b1-b58bb4914541") + }, + new + { + Id = new Guid("84cb0a27-b2ef-4cd4-93d2-fcb0fdecf1d0"), + NewsSiteUrl = "https://russian.rt.com/", + NewsUrlXPath = "//a[contains(@class, 'link') and contains(@href, 'news/')]/@href", + SourceId = new Guid("5d8e3050-5444-4709-afc3-18a8d46a71ba") + }, + new + { + Id = new Guid("022c7083-ea41-4e42-b40e-a0d72dfb7956"), + NewsSiteUrl = "https://tass.ru/", + NewsUrlXPath = "//a[contains(@class, 'tass_pkg_link-v5WdK') and contains(substring(@href, 2), '/') and not(contains(@href, '/spec/')) and not(contains(@href, 'spec.tass.ru'))]/@href", + SourceId = new Guid("7e889af8-0f19-44ab-96d4-241fd64fbcdb") + }, + new + { + Id = new Guid("25667b44-614f-4c19-ad74-3be0c5f8c743"), + NewsSiteUrl = "https://lenta.ru/", + NewsUrlXPath = "//a[starts-with(@href, '/news/')]/@href", + SourceId = new Guid("fb2f8557-ca7e-4ce2-86dd-b8a94ee02275") + }, + new + { + Id = new Guid("938c857a-640d-413d-98bf-1f5c1872dbae"), + NewsSiteUrl = "https://rg.ru/", + NewsUrlXPath = "//a[contains(@href, '.html')]/@href", + SourceId = new Guid("31b6f068-3f00-4250-bc74-62146525ba95") + }, + new + { + Id = new Guid("1dde178c-c061-428a-b0e3-1d7b7ddc5c7b"), + NewsSiteUrl = "https://aif.ru/", + NewsUrlXPath = "//span[contains(@class, 'item_text__title')]/../@href", + SourceId = new Guid("9268835d-553d-4fbe-a0cb-0545b8019c68") + }, + new + { + Id = new Guid("0f9c275f-d418-4fea-abbf-ad3cda6d678c"), + NewsSiteUrl = "https://www.rbc.ru/", + NewsUrlXPath = "//a[contains(@href, 'https://www.rbc.ru/') and contains(@href, '?from=')]/@href", + SourceId = new Guid("950d59d6-d94c-4396-a55e-cbcd2a9b533c") + }, + new + { + Id = new Guid("d292849b-0727-4311-b0ff-da147c4d344a"), + NewsSiteUrl = "https://www.sports.ru/news/", + NewsUrlXPath = "//a[contains(@href, '.html') and not(contains(@href, '.html#comments')) and not (contains(@href, '/blogs/'))]/@href", + SourceId = new Guid("3e1f065a-c135-4429-941e-d870886b4147") + }, + new + { + Id = new Guid("465f7ae0-072e-4df3-8d24-7a194b478c2a"), + NewsSiteUrl = "https://www.kommersant.ru/", + NewsUrlXPath = "//a[contains(@href, '/doc/') and contains(@href, '?from=')]/@href", + SourceId = new Guid("baaa533a-cb1a-46e7-bb9e-79d631affc87") + }, + new + { + Id = new Guid("4c8ceb60-a498-4b5a-b574-a84b2d890e59"), + NewsSiteUrl = "https://iz.ru/news/", + NewsUrlXPath = "//a[contains(@href, '?main_click')]/@href", + SourceId = new Guid("31252741-4d0b-448f-b85c-d6538f7ca565") + }, + new + { + Id = new Guid("27aa8343-30f4-40ef-a8ab-20d41e3097c4"), + NewsSiteUrl = "https://tsargrad.tv/", + NewsUrlXPath = "//a[contains(@class, 'news-item__link')]/@href", + SourceId = new Guid("3b8c9766-f5d5-44ec-a014-45ddce4a9a0c") + }, + new + { + Id = new Guid("d9c7c3b0-bdc7-4bcc-afec-9423cb451086"), + NewsSiteUrl = "http://www.belta.by/", + NewsUrlXPath = "//a[contains(@href, 'www.belta.by') and contains(@href, '/view/')]/@href", + SourceId = new Guid("fc0a229f-bde4-4f61-b4eb-75d1285665dd") + }, + new + { + Id = new Guid("beacb8f7-d53b-4785-a799-57b69c4cd3fc"), + NewsSiteUrl = "https://svpressa.ru/all/news/", + NewsUrlXPath = "//a[contains(@href, '/news/') and not(contains(@href, '?')) and not(starts-with(@href, '/all/news/'))]/@href", + SourceId = new Guid("6854c858-b82d-44f5-bb48-620c9bf9825d") + }, + new + { + Id = new Guid("6d057994-d84f-4437-a8bc-bd4e427493ca"), + NewsSiteUrl = "https://www.m24.ru/", + NewsUrlXPath = "//a[contains(@href, '/news/')]/@href", + SourceId = new Guid("3e24ec11-86a4-4db8-9337-35a00988da7d") + }, + new + { + Id = new Guid("3b9ca981-bc22-40e2-93be-e08c99369c45"), + NewsSiteUrl = "https://vz.ru/", + NewsUrlXPath = "//a[contains(@href, '.html') and not(contains(@href, '#comments')) and not(contains(@href, '?')) and not(contains(@href, '/about/'))]/@href", + SourceId = new Guid("e2ce0a01-9d10-4133-a989-618739aa3854") + }, + new + { + Id = new Guid("e69f2b5a-89e8-43df-aa5d-ca4139af6f95"), + NewsSiteUrl = "https://www.championat.com/news/1.html?utm_source=button&utm_medium=news", + NewsUrlXPath = "//a[contains(@href, 'news-') and contains(@href, '.html') and not(contains(@href, '#comments'))]/@href", + SourceId = new Guid("49bcf6b7-15bc-4f30-a3d6-3c88837aa039") + }, + new + { + Id = new Guid("83f72716-09c4-4c46-97fc-255431a7f616"), + NewsSiteUrl = "https://life.ru/s/novosti", + NewsUrlXPath = "//a[contains(@href, '/p/')]/@href", + SourceId = new Guid("170a9aef-a708-41a4-8370-a8526f2c055f") + }, + new + { + Id = new Guid("0896d6d1-cbe7-4103-a47e-d9be4ad3c550"), + NewsSiteUrl = "https://3dnews.ru/news/", + NewsUrlXPath = "//div[@class='news-feed-all']//a[@class='entry-header']/h1/../@href", + SourceId = new Guid("5aebacd6-b4d5-4839-b2f0-533ff3329941") + }, + new + { + Id = new Guid("890e7953-5769-4023-922c-45094cb89251"), + NewsSiteUrl = "https://www.ixbt.com/news/", + NewsUrlXPath = "//a[starts-with(@href, '/news/') and contains(@href, '.html') and not(contains(@href, '#comments'))]/@href", + SourceId = new Guid("e023416d-7d91-4d92-bd5f-37d57c54f6b4") + }, + new + { + Id = new Guid("52805bca-3e28-413b-8da3-77c9411f6ae1"), + NewsSiteUrl = "https://ixbt.games/news/", + NewsUrlXPath = "//a[@class='card-link']/@href", + SourceId = new Guid("604e9548-9b99-4bd4-ab90-4bf90b4a1807") + }, + new + { + Id = new Guid("b8e85938-97a8-47bf-aa33-c5bca3708e0e"), + NewsSiteUrl = "https://www.gazeta.ru/news/", + NewsUrlXPath = "//a[contains(@href, '/news/') and contains(@href, '.shtml') and not(contains(@href, '?'))]/@href", + SourceId = new Guid("cc29eb91-2efb-4d57-8d14-bb5356cbfbb8") + }, + new + { + Id = new Guid("cf99e4fc-dbe3-4be7-9f98-1eccfc954f39"), + NewsSiteUrl = "https://www.interfax.ru/", + NewsUrlXPath = "//div[@class='timeline']//a[@tabindex=5]/@href", + SourceId = new Guid("57597b92-2b9d-422e-b0a7-9b11326c879b") + }, + new + { + Id = new Guid("99d95b1b-1ecf-42ec-8e95-e4dcc217762d"), + NewsSiteUrl = "https://www.pravda.ru/", + NewsUrlXPath = "//a[contains(@href, '/news/') and not(@href='https://www.pravda.ru/news/')]/@href", + SourceId = new Guid("13f235b7-a6f6-4da4-83a1-13b5af26700a") + }, + new + { + Id = new Guid("62c58603-8696-4a94-bd69-de1938895b9b"), + NewsSiteUrl = "https://ura.news/", + NewsUrlXPath = "//a[contains(@href, '/news/')]/@href", + SourceId = new Guid("e16286a8-78a9-4b86-ba4b-c844f7099336") + }, + new + { + Id = new Guid("e1e2fd1c-8939-4531-90b3-3a8879319fb9"), + NewsSiteUrl = "https://74.ru/", + NewsUrlXPath = "//a[starts-with(@href, '/text/') and not(contains(@href, '?')) and not(contains(@href, 'comments/')) and not(@href='/text/')]/@href", + SourceId = new Guid("321e1615-6328-4532-85ac-22d53d59c164") + }, + new + { + Id = new Guid("5337753f-c43d-4ffa-b966-6e926c3a0a1c"), + NewsSiteUrl = "https://www.1obl.ru/news/", + NewsUrlXPath = "//a[starts-with(@href, '/news/') and not(contains(@href, '?'))]/@href", + SourceId = new Guid("70873440-0058-4669-aa74-352489f9e6da") + }, + new + { + Id = new Guid("f75f5b07-588f-4a4d-afb2-3558f99b54d7"), + NewsSiteUrl = "https://www.cybersport.ru/", + NewsUrlXPath = "//a[contains(@href, '/tags/')]/@href", + SourceId = new Guid("797060c0-3b47-4654-9176-32d719baad69") + }, + new + { + Id = new Guid("01116c2c-7bf6-496d-96f6-9d10d4b14e97"), + NewsSiteUrl = "https://www.hltv.org/", + NewsUrlXPath = "//a[contains(@href, '/news/')]/@href", + SourceId = new Guid("e4b3e286-3589-49de-892b-d0d06e719115") + }, + new + { + Id = new Guid("035b1374-e0cd-4b0a-a567-e0feff9852ff"), + NewsSiteUrl = "https://www.nytimes.com/", + NewsUrlXPath = "//a[contains(@href, '.html')]/@href", + SourceId = new Guid("136c7569-601c-4f16-9ca4-bd14bfa8c16a") + }, + new + { + Id = new Guid("d9bee236-e02e-4940-a97f-7aa259961369"), + NewsSiteUrl = "https://edition.cnn.com/", + NewsUrlXPath = "//a[contains(@href, '.html')]/@href", + SourceId = new Guid("5c3b0099-2a8a-49a5-8c68-d24ebc9fac07") + }, + new + { + Id = new Guid("69765f00-a717-43b7-8c2e-59213979a3ed"), + NewsSiteUrl = "https://www.kp.ru/", + NewsUrlXPath = "//a[contains(@href, '/news/')]/@href", + SourceId = new Guid("cb68ce1c-c741-41df-a1c9-8ce34529b421") + }, + new + { + Id = new Guid("1b2f8ada-c349-4930-98ed-896d0b89093c"), + NewsSiteUrl = "https://www.zr.ru/news/", + NewsUrlXPath = "//a[contains(@href, '/news/') and not(starts-with(@href, '/news/')) and not(starts-with(@href, 'https://'))]/@href", + SourceId = new Guid("a71c23bf-67e9-4955-bc8e-6226bd86ba90") + }, + new + { + Id = new Guid("a169d814-b17e-4062-a2b5-1599ede6783c"), + NewsSiteUrl = "https://www.avtovzglyad.ru/news/", + NewsUrlXPath = "//a[@class='news-card__link']/@href", + SourceId = new Guid("454f4f08-58cf-4ab7-9012-1e5ba663570c") + }, + new + { + Id = new Guid("773dc871-3e67-4375-9ded-71969f1e0a81"), + NewsSiteUrl = "https://overclockers.ru/news", + NewsUrlXPath = "//div[contains(@class, 'event')]//a[not(contains(@href, '#comments'))]/@href", + SourceId = new Guid("dac8cec6-c84d-4287-b0b9-71f4cf304c7e") + }, + new + { + Id = new Guid("a6f6a030-99b0-4828-af01-5c01d655be30"), + NewsSiteUrl = "https://www.kinonews.ru/news/", + NewsUrlXPath = "//a[contains(@href, '/news_') and not(contains(@href, 'comments')) and not(contains(@href, 'news_p'))]/@href", + SourceId = new Guid("296270ec-026b-4011-83ff-1466ba577864") + }, + new + { + Id = new Guid("62fe0769-6882-48b6-91c1-0f7a205aca05"), + NewsSiteUrl = "https://7days.ru/news/", + NewsUrlXPath = "//a[contains(@class, '7days__item_href') and starts-with(@href, '/news/')]/@href", + SourceId = new Guid("ba078388-eedf-4ccb-af5f-3f686f4ece4a") + }, + new + { + Id = new Guid("3dd178c2-7dd6-4f7d-9fa3-8aad161b000a"), + NewsSiteUrl = "https://www.starhit.ru/novosti/", + NewsUrlXPath = "//a[@class='announce-inline-tile__label-container']/@href", + SourceId = new Guid("05765a1b-b174-4ad1-9f63-3189a52303f9") + }, + new + { + Id = new Guid("cea22ad0-6634-4def-9b5b-f1e754ce2d8d"), + NewsSiteUrl = "https://stopgame.ru/news", + NewsUrlXPath = "//div[contains(@class, 'list-view')]//div[contains(@class, '_card')]/a/@href", + SourceId = new Guid("b5594347-6ec0-44c0-b381-7ae47f04fa56") + }, + new + { + Id = new Guid("f0a00f38-8859-4603-91db-251ada2ae73e"), + NewsSiteUrl = "https://ren.tv/news/", + NewsUrlXPath = "//a[starts-with(@href, '/news/')]/@href", + SourceId = new Guid("c169d8ad-a9fe-44e9-af6a-fd337ae10000") + }, + new + { + Id = new Guid("285b962c-f8e9-4b05-95e9-81a0ff26cd26"), + NewsSiteUrl = "https://www.novorosinform.org/", + NewsUrlXPath = "//a[contains(@href, '.html')]/@href", + SourceId = new Guid("c7b863af-0565-4bec-9238-9383272637ef") + }, + new + { + Id = new Guid("0bd7b701-63de-48e9-8494-4faf1193e218"), + NewsSiteUrl = "https://www.5-tv.ru/news/", + NewsUrlXPath = "//a[not(@href='https://www.5-tv.ru/news/') and starts-with(@href, 'https://www.5-tv.ru/news/')]/@href", + SourceId = new Guid("33b14253-7c02-4b79-8490-c8ed10312230") + }, + new + { + Id = new Guid("6b670151-2211-4da1-9313-86e1d58c9893"), + NewsSiteUrl = "https://www.ntv.ru/novosti/", + NewsUrlXPath = "//a[not(@href='/novosti/') and not(@href='/novosti/authors') and starts-with(@href, '/novosti/')]/@href", + SourceId = new Guid("6c5fe2d4-8547-4fb0-8966-d148f8d77af7") + }, + new + { + Id = new Guid("92324d14-49b0-409a-96e1-6a37a8691c6e"), + NewsSiteUrl = "https://www.fontanka.ru/24hours_news.html", + NewsUrlXPath = "//section//ul/li//div[@class]/div[not(@class)]/a[starts-with(@href, '/') and not(contains(@href, 'all.comments.html')) and not(contains(@href, '?'))]/@href", + SourceId = new Guid("068fb7bb-4b76-4261-bc9a-274625fe8890") + }, + new + { + Id = new Guid("505e7e1d-72a9-4f64-b2ab-faf55410329f"), + NewsSiteUrl = "https://regnum.ru/news", + NewsUrlXPath = "//a[not(@href='/news/') and starts-with(@href, '/news/')]/@href", + SourceId = new Guid("60747323-2a4c-44e1-880d-7e5e36642645") + }, + new + { + Id = new Guid("09a55b0c-4a3f-497c-9626-9b5b5e12ca26"), + NewsSiteUrl = "https://www.womanhit.ru/", + NewsUrlXPath = "//a[not(@href='/stars/news/') and starts-with(@href, '/stars/news/')]/@href", + SourceId = new Guid("2fa2ff6a-9a8b-4a2d-b0e4-6e7e14679236") + }, + new + { + Id = new Guid("4305d788-135a-4922-8cfb-7d5b8971835e"), + NewsSiteUrl = "https://rusvesna.su/news", + NewsUrlXPath = "//a[not(@href='/news/') and starts-with(@href, '/news/')]/@href", + SourceId = new Guid("b2fb23b4-3f6d-440c-9ec0-99216f233fd0") + }, + new + { + Id = new Guid("a13340f1-b8ad-4aed-8db3-3ce1bc26b977"), + NewsSiteUrl = "https://travelask.ru/news", + NewsUrlXPath = "//a[not(@href='/news/') and starts-with(@href, '/news/')]/@href", + SourceId = new Guid("b9ec9be8-e1f2-49d6-b461-b61872bb369c") + }, + new + { + Id = new Guid("e33af74d-60d3-4b07-8a1f-f35dd3a2965a"), + NewsSiteUrl = "https://smart-lab.ru/news/", + NewsUrlXPath = "//a[not(@href='/blog/') and starts-with(@href, '/blog/') and contains(@href, '.php')]/@href", + SourceId = new Guid("65141fc2-760f-4866-86c5-08cc764cabac") + }, + new + { + Id = new Guid("8325b474-7ad4-40bc-a721-82cf3f01d4c2"), + NewsSiteUrl = "https://www.finam.ru/", + NewsUrlXPath = "//a[starts-with(@href, 'publications/item/') or starts-with(@href, '/publications/item/')]/@href", + SourceId = new Guid("9e3453b3-be81-4f3b-93da-45192677c6a9") + }, + new + { + Id = new Guid("d6c237fe-b4c2-47b1-918f-298f4a9eafdf"), + NewsSiteUrl = "https://www.khl.ru/news/", + NewsUrlXPath = "//a[starts-with(@href, '/news/') and contains(@href, '.html')]/@href", + SourceId = new Guid("9519622d-50f0-4a8d-8728-c58c12255b6f") + }, + new + { + Id = new Guid("112b8f16-4de2-4679-bed3-cf3c4ce5e1ed"), + NewsSiteUrl = "https://radiosputnik.ru/", + NewsUrlXPath = "//a[starts-with(@href, 'https://radiosputnik.ru/') and contains(@href, '.html')]/@href", + SourceId = new Guid("1994c4bc-aeb9-4242-81df-5bafffca6fd0") + }, + new + { + Id = new Guid("04980ca4-2525-446d-ba36-b6ec342d951e"), + NewsSiteUrl = "https://meduza.io/", + NewsUrlXPath = "//a[not(@href='/news/') and starts-with(@href, '/news/')]/@href", + SourceId = new Guid("3a346f18-1781-408b-bc8d-2f8e4cbc64ea") + }, + new + { + Id = new Guid("d54003f4-dab6-4218-a59d-7374ded91cce"), + NewsSiteUrl = "https://www.huffpost.com/", + NewsUrlXPath = "//a[contains(@href, '/entry/')]/@href", + SourceId = new Guid("1f913a9a-4e5a-4925-89c1-51e985f63e9d") + }, + new + { + Id = new Guid("5ef6d413-2916-4259-b2e1-6e5dc36f8e2c"), + NewsSiteUrl = "https://www.foxnews.com/", + NewsUrlXPath = "//header[@class='info-header']/h3[@class='title']/a/@href", + SourceId = new Guid("e5afb99f-47ff-4822-89fa-2ff8859a5c42") + }, + new + { + Id = new Guid("93606f5a-dd33-4a66-8c13-d718d2082e07"), + NewsSiteUrl = "https://www.politico.com/", + NewsUrlXPath = "//a[starts-with(@href, 'https://www.politico.com/news/')]/@href", + SourceId = new Guid("7c0ac71c-0e8e-425b-ac26-424b152415f5") + }); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsSiteVisit", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uuid") + .HasColumnName("id"); + + b.Property("IpAddress") + .IsRequired() + .HasColumnType("text") + .HasColumnName("ip_address"); + + b.Property("VisitedAt") + .HasColumnType("timestamp with time zone") + .HasColumnName("visited_at"); + + b.HasKey("Id") + .HasName("pk_news_site_visits"); + + b.HasIndex("IpAddress") + .HasDatabaseName("ix_news_site_visits_ip_address"); + + b.HasIndex("VisitedAt") + .HasDatabaseName("ix_news_site_visits_visited_at"); + + b.ToTable("news_site_visits", (string)null); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsSource", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uuid") + .HasColumnName("id"); + + b.Property("IsEnabled") + .HasColumnType("boolean") + .HasColumnName("is_enabled"); + + b.Property("IsSystem") + .HasColumnType("boolean") + .HasColumnName("is_system"); + + b.Property("SiteUrl") + .IsRequired() + .HasColumnType("text") + .HasColumnName("site_url"); + + b.Property("Title") + .IsRequired() + .HasColumnType("text") + .HasColumnName("title"); + + b.HasKey("Id") + .HasName("pk_news_sources"); + + b.HasIndex("IsEnabled") + .HasDatabaseName("ix_news_sources_is_enabled"); + + b.HasIndex("IsSystem") + .HasDatabaseName("ix_news_sources_is_system"); + + b.HasIndex("SiteUrl") + .HasDatabaseName("ix_news_sources_site_url"); + + b.HasIndex("Title") + .HasDatabaseName("ix_news_sources_title"); + + b.ToTable("news_sources", (string)null); + + b.HasData( + new + { + Id = new Guid("b8d20577-6c4c-4bd7-a1b1-b58bb4914541"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://ria.ru/", + Title = "РИА Новости" + }, + new + { + Id = new Guid("5d8e3050-5444-4709-afc3-18a8d46a71ba"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://russian.rt.com/", + Title = "RT на русском" + }, + new + { + Id = new Guid("7e889af8-0f19-44ab-96d4-241fd64fbcdb"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://tass.ru/", + Title = "ТАСС" + }, + new + { + Id = new Guid("fb2f8557-ca7e-4ce2-86dd-b8a94ee02275"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://lenta.ru/", + Title = "Лента.Ру" + }, + new + { + Id = new Guid("31b6f068-3f00-4250-bc74-62146525ba95"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://rg.ru/", + Title = "Российская газета" + }, + new + { + Id = new Guid("9268835d-553d-4fbe-a0cb-0545b8019c68"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://aif.ru/", + Title = "Аргументы и факты" + }, + new + { + Id = new Guid("950d59d6-d94c-4396-a55e-cbcd2a9b533c"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://www.rbc.ru/", + Title = "РБК" + }, + new + { + Id = new Guid("3e1f065a-c135-4429-941e-d870886b4147"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://www.sports.ru/", + Title = "Sports.ru" + }, + new + { + Id = new Guid("baaa533a-cb1a-46e7-bb9e-79d631affc87"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://www.kommersant.ru/", + Title = "Коммерсантъ" + }, + new + { + Id = new Guid("31252741-4d0b-448f-b85c-d6538f7ca565"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://iz.ru/", + Title = "Известия" + }, + new + { + Id = new Guid("3b8c9766-f5d5-44ec-a014-45ddce4a9a0c"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://tsargrad.tv/", + Title = "Царьград" + }, + new + { + Id = new Guid("fc0a229f-bde4-4f61-b4eb-75d1285665dd"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "http://www.belta.by/", + Title = "БелТА" + }, + new + { + Id = new Guid("6854c858-b82d-44f5-bb48-620c9bf9825d"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://svpressa.ru/", + Title = "СвободнаяПресса" + }, + new + { + Id = new Guid("3e24ec11-86a4-4db8-9337-35a00988da7d"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://www.m24.ru/", + Title = "Москва 24" + }, + new + { + Id = new Guid("e2ce0a01-9d10-4133-a989-618739aa3854"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://vz.ru/", + Title = "ВЗГЛЯД.РУ" + }, + new + { + Id = new Guid("49bcf6b7-15bc-4f30-a3d6-3c88837aa039"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://www.championat.com/", + Title = "Чемпионат.com" + }, + new + { + Id = new Guid("170a9aef-a708-41a4-8370-a8526f2c055f"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://life.ru/", + Title = "Life" + }, + new + { + Id = new Guid("5aebacd6-b4d5-4839-b2f0-533ff3329941"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://3dnews.ru/", + Title = "3Dnews.ru" + }, + new + { + Id = new Guid("e023416d-7d91-4d92-bd5f-37d57c54f6b4"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://www.ixbt.com/", + Title = "iXBT.com" + }, + new + { + Id = new Guid("604e9548-9b99-4bd4-ab90-4bf90b4a1807"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://ixbt.games/", + Title = "iXBT.games" + }, + new + { + Id = new Guid("cc29eb91-2efb-4d57-8d14-bb5356cbfbb8"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://www.gazeta.ru/", + Title = "Газета.Ru" + }, + new + { + Id = new Guid("57597b92-2b9d-422e-b0a7-9b11326c879b"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://www.interfax.ru/", + Title = "Интерфакс" + }, + new + { + Id = new Guid("13f235b7-a6f6-4da4-83a1-13b5af26700a"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://www.pravda.ru/", + Title = "Правда.ру" + }, + new + { + Id = new Guid("e16286a8-78a9-4b86-ba4b-c844f7099336"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://ura.news/", + Title = "Ura.ru" + }, + new + { + Id = new Guid("321e1615-6328-4532-85ac-22d53d59c164"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://74.ru/", + Title = "74.ru" + }, + new + { + Id = new Guid("70873440-0058-4669-aa74-352489f9e6da"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://www.1obl.ru/", + Title = "Первый областной" + }, + new + { + Id = new Guid("797060c0-3b47-4654-9176-32d719baad69"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://www.cybersport.ru/", + Title = "Cybersport.ru" + }, + new + { + Id = new Guid("e4b3e286-3589-49de-892b-d0d06e719115"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://www.hltv.org/", + Title = "HLTV.org" + }, + new + { + Id = new Guid("136c7569-601c-4f16-9ca4-bd14bfa8c16a"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://www.nytimes.com/", + Title = "The New York Times" + }, + new + { + Id = new Guid("5c3b0099-2a8a-49a5-8c68-d24ebc9fac07"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://edition.cnn.com/", + Title = "CNN" + }, + new + { + Id = new Guid("cb68ce1c-c741-41df-a1c9-8ce34529b421"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://www.kp.ru/", + Title = "Комсомольская правда" + }, + new + { + Id = new Guid("a71c23bf-67e9-4955-bc8e-6226bd86ba90"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://www.zr.ru/", + Title = "Журнал \"За рулем\"" + }, + new + { + Id = new Guid("454f4f08-58cf-4ab7-9012-1e5ba663570c"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://www.avtovzglyad.ru/", + Title = "АвтоВзгляд" + }, + new + { + Id = new Guid("dac8cec6-c84d-4287-b0b9-71f4cf304c7e"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://overclockers.ru/", + Title = "Overclockers" + }, + new + { + Id = new Guid("296270ec-026b-4011-83ff-1466ba577864"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://www.kinonews.ru/", + Title = "KinoNews.ru" + }, + new + { + Id = new Guid("ba078388-eedf-4ccb-af5f-3f686f4ece4a"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://7days.ru/", + Title = "7дней.ru" + }, + new + { + Id = new Guid("05765a1b-b174-4ad1-9f63-3189a52303f9"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://www.starhit.ru/", + Title = "Сетевое издание «Онлайн журнал StarHit (СтарХит)" + }, + new + { + Id = new Guid("b5594347-6ec0-44c0-b381-7ae47f04fa56"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://stopgame.ru/", + Title = "StopGame" + }, + new + { + Id = new Guid("c169d8ad-a9fe-44e9-af6a-fd337ae10000"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://ren.tv/", + Title = "РЕН ТВ" + }, + new + { + Id = new Guid("c7b863af-0565-4bec-9238-9383272637ef"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://www.novorosinform.org/", + Title = "Новороссия" + }, + new + { + Id = new Guid("33b14253-7c02-4b79-8490-c8ed10312230"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://www.5-tv.ru/", + Title = "Пятый канал" + }, + new + { + Id = new Guid("6c5fe2d4-8547-4fb0-8966-d148f8d77af7"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://www.ntv.ru/", + Title = "НТВ" + }, + new + { + Id = new Guid("068fb7bb-4b76-4261-bc9a-274625fe8890"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://www.fontanka.ru/", + Title = "ФОНТАНКА.ру" + }, + new + { + Id = new Guid("60747323-2a4c-44e1-880d-7e5e36642645"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://regnum.ru/", + Title = "ИА REGNUM" + }, + new + { + Id = new Guid("2fa2ff6a-9a8b-4a2d-b0e4-6e7e14679236"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://www.womanhit.ru/", + Title = "Женский журнал WomanHit.ru" + }, + new + { + Id = new Guid("b2fb23b4-3f6d-440c-9ec0-99216f233fd0"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://rusvesna.su/", + Title = "Русская весна" + }, + new + { + Id = new Guid("b9ec9be8-e1f2-49d6-b461-b61872bb369c"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://travelask.ru/", + Title = "TravelAsk" + }, + new + { + Id = new Guid("65141fc2-760f-4866-86c5-08cc764cabac"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://smart-lab.ru/", + Title = "SMART-LAB" + }, + new + { + Id = new Guid("9e3453b3-be81-4f3b-93da-45192677c6a9"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://www.finam.ru/", + Title = "Финам.Ру" + }, + new + { + Id = new Guid("9519622d-50f0-4a8d-8728-c58c12255b6f"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://www.khl.ru/", + Title = "КХЛ" + }, + new + { + Id = new Guid("1994c4bc-aeb9-4242-81df-5bafffca6fd0"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://radiosputnik.ru/", + Title = "Радио Sputnik" + }, + new + { + Id = new Guid("3a346f18-1781-408b-bc8d-2f8e4cbc64ea"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://meduza.io/", + Title = "Meduza" + }, + new + { + Id = new Guid("1f913a9a-4e5a-4925-89c1-51e985f63e9d"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://www.huffpost.com/", + Title = "HuffPost" + }, + new + { + Id = new Guid("e5afb99f-47ff-4822-89fa-2ff8859a5c42"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://www.foxnews.com/", + Title = "Fox News" + }, + new + { + Id = new Guid("7c0ac71c-0e8e-425b-ac26-424b152415f5"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://www.politico.com/", + Title = "POLITICO" + }); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsSourceLogo", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uuid") + .HasColumnName("id"); + + b.Property("Original") + .IsRequired() + .HasColumnType("text") + .HasColumnName("original"); + + b.Property("Small") + .IsRequired() + .HasColumnType("text") + .HasColumnName("small"); + + b.Property("SourceId") + .HasColumnType("uuid") + .HasColumnName("source_id"); + + b.HasKey("Id") + .HasName("pk_news_source_logos"); + + b.HasIndex("SourceId") + .IsUnique() + .HasDatabaseName("ix_news_source_logos_source_id"); + + b.ToTable("news_source_logos", (string)null); + + b.HasData( + new + { + Id = new Guid("a0faaf8f-34af-43f7-af18-782f9c6214d4"), + Original = "https://cdnn21.img.ria.ru/i/favicons/favicon.svg", + Small = "https://cdnn21.img.ria.ru/i/favicons/favicon.ico", + SourceId = new Guid("b8d20577-6c4c-4bd7-a1b1-b58bb4914541") + }, + new + { + Id = new Guid("021335ce-8d6b-47fc-9de8-503f4c248982"), + Original = "https://russian.rt.com/static/blocks/touch-icon/apple-touch-icon-144x144-precomposed.png", + Small = "https://russian.rt.com/favicon.ico", + SourceId = new Guid("5d8e3050-5444-4709-afc3-18a8d46a71ba") + }, + new + { + Id = new Guid("29e9a963-8850-4c05-9714-a4b59af20be4"), + Original = "https://tass.ru/favicon/180.svg", + Small = "https://tass.ru/favicon/57.png", + SourceId = new Guid("7e889af8-0f19-44ab-96d4-241fd64fbcdb") + }, + new + { + Id = new Guid("ef6ba8cf-50e4-432b-9329-19097bff75e2"), + Original = "https://icdn.lenta.ru/images/icons/icon-256x256.png", + Small = "https://icdn.lenta.ru/favicon.ico", + SourceId = new Guid("fb2f8557-ca7e-4ce2-86dd-b8a94ee02275") + }, + new + { + Id = new Guid("f1b5322f-8f12-4a8d-ba28-ee5aaed34228"), + Original = "https://cdnstatic.rg.ru/images/touch-icon-ipad-retina_512x512.png", + Small = "https://rg.ru/favicon.ico", + SourceId = new Guid("31b6f068-3f00-4250-bc74-62146525ba95") + }, + new + { + Id = new Guid("3472a1e0-4bf9-418a-8e9e-94830248020b"), + Original = "https://aif.ru/img/icon/apple-touch-icon.png?44f", + Small = "https://aif.ru/img/icon/favicon-32x32.png?44f", + SourceId = new Guid("9268835d-553d-4fbe-a0cb-0545b8019c68") + }, + new + { + Id = new Guid("a77ffd9e-beb2-43d6-bf02-94ad9bc1eccd"), + Original = "https://s.rbk.ru/v10_rbcnews_static/common/common-10.10.120/images/android-chrome-512x512.png", + Small = "https://s.rbk.ru/v10_rbcnews_static/common/common-10.10.120/images/favicon.png", + SourceId = new Guid("950d59d6-d94c-4396-a55e-cbcd2a9b533c") + }, + new + { + Id = new Guid("5531cc3d-cee5-490a-aaac-20b826e1135b"), + Original = "https://www.sports.ru/apple-touch-icon-1024.png", + Small = "https://www.sports.ru/apple-touch-icon-76.png", + SourceId = new Guid("3e1f065a-c135-4429-941e-d870886b4147") + }, + new + { + Id = new Guid("52cd41a3-05b6-4ed0-87d0-bb62bd1a742a"), + Original = "https://im.kommersant.ru/ContentFlex/images/favicons2020/apple-touch-icon-180.png", + Small = "https://im.kommersant.ru/ContentFlex/images/favicons2020/favicon-32.png", + SourceId = new Guid("baaa533a-cb1a-46e7-bb9e-79d631affc87") + }, + new + { + Id = new Guid("a5431839-5bf7-46f6-a2eb-c93b4b18e24f"), + Original = "https://cdn.iz.ru/profiles/portal/themes/purple/images/favicons/android-icon-192x192.png", + Small = "https://cdn.iz.ru/profiles/portal/themes/purple/images/favicons/favicon-32x32.png", + SourceId = new Guid("31252741-4d0b-448f-b85c-d6538f7ca565") + }, + new + { + Id = new Guid("a1e75a31-deae-4634-8bd8-eea983e60bfc"), + Original = "https://tsargrad.tv/favicons/apple-touch-icon-180x180.png?s2", + Small = "https://tsargrad.tv/favicons/favicon-32x32.png?s2", + SourceId = new Guid("3b8c9766-f5d5-44ec-a014-45ddce4a9a0c") + }, + new + { + Id = new Guid("4975ba0c-d5eb-44cf-8743-2aa7d621c5d1"), + Original = "https://www.belta.by/images/storage/banners/000016_a133e848cb2e7b1debb7102d19e4d139_work.svg", + Small = "https://www.belta.by/images/storage/banners/000016_a133e848cb2e7b1debb7102d19e4d139_work.svg", + SourceId = new Guid("fc0a229f-bde4-4f61-b4eb-75d1285665dd") + }, + new + { + Id = new Guid("1949e476-a28c-49c7-8cef-114ed2f70618"), + Original = "https://svpressa.ru/favicon-96x96.png?v=1471426270000", + Small = "https://svpressa.ru/favicon-32x32.png?v=1471426270000", + SourceId = new Guid("6854c858-b82d-44f5-bb48-620c9bf9825d") + }, + new + { + Id = new Guid("7e056d72-a4a4-4608-b393-b56d976a2bad"), + Original = "https://www.m24.ru/img/fav/apple-touch-icon.png", + Small = "https://www.m24.ru/img/fav/favicon-32x32.png", + SourceId = new Guid("3e24ec11-86a4-4db8-9337-35a00988da7d") + }, + new + { + Id = new Guid("f22a5c00-53d0-43b8-93a3-1cdac2e103cc"), + Original = "https://vz.ru/apple-touch-icon.png", + Small = "https://vz.ru/static/images/favicon.ico", + SourceId = new Guid("e2ce0a01-9d10-4133-a989-618739aa3854") + }, + new + { + Id = new Guid("3fbe2b42-7817-422b-a3e1-020942b42d4b"), + Original = "https://st.championat.com/i/favicon/apple-touch-icon.png", + Small = "https://st.championat.com/i/favicon/favicon-32x32.png", + SourceId = new Guid("49bcf6b7-15bc-4f30-a3d6-3c88837aa039") + }, + new + { + Id = new Guid("53f0c42f-abe9-46e6-8c49-a4939e81be95"), + Original = "https://life.ru/appletouch/apple-icon-180%D1%85180.png", + Small = "https://life.ru/favicon-32%D1%8532.png", + SourceId = new Guid("170a9aef-a708-41a4-8370-a8526f2c055f") + }, + new + { + Id = new Guid("d1418d56-a990-448a-8334-a8cc8cec1b00"), + Original = "https://3dnews.ru/assets/images/3dnews_logo_soc.png", + Small = "https://3dnews.ru/assets/3dnews_logo_color.png", + SourceId = new Guid("5aebacd6-b4d5-4839-b2f0-533ff3329941") + }, + new + { + Id = new Guid("427cf0f1-b0ef-4ab9-b181-63710edcf220"), + Original = "https://www.ixbt.com/favicon.ico", + Small = "https://www.ixbt.com/favicon.ico", + SourceId = new Guid("e023416d-7d91-4d92-bd5f-37d57c54f6b4") + }, + new + { + Id = new Guid("def8f81b-0a9b-44fb-a6bc-26f398fb175c"), + Original = "https://ixbt.games/images/favicon/gt/apple-touch-icon.png", + Small = "https://ixbt.games/images/favicon/gt/apple-touch-icon.png", + SourceId = new Guid("604e9548-9b99-4bd4-ab90-4bf90b4a1807") + }, + new + { + Id = new Guid("d7e0f8bc-64ec-4450-b8bb-82689f1d9012"), + Original = "https://static.gazeta.ru/nm2021/img/icons/favicon.svg", + Small = "https://static.gazeta.ru/nm2021/img/icons/favicon.svg", + SourceId = new Guid("cc29eb91-2efb-4d57-8d14-bb5356cbfbb8") + }, + new + { + Id = new Guid("db46c593-155d-4775-b999-dbe4eb772fb1"), + Original = "https://www.interfax.ru/touch-icon-ipad-retina.png", + Small = "https://www.interfax.ru/touch-icon-iphone.png", + SourceId = new Guid("57597b92-2b9d-422e-b0a7-9b11326c879b") + }, + new + { + Id = new Guid("52827f36-597f-424c-bc69-6e71f2bdde5c"), + Original = "https://www.pravda.ru/pix/apple-touch-icon.png", + Small = "https://www.pravda.ru/favicon.ico", + SourceId = new Guid("13f235b7-a6f6-4da4-83a1-13b5af26700a") + }, + new + { + Id = new Guid("8db8aa26-06f6-4ebf-b2f6-81a02a20a288"), + Original = "https://ura.news/apple-touch-icon.png", + Small = "https://s.ura.news/favicon.ico?3", + SourceId = new Guid("e16286a8-78a9-4b86-ba4b-c844f7099336") + }, + new + { + Id = new Guid("f3318dd0-6ed3-4b25-ab34-6f4330317853"), + Original = "https://static.ngs.ru/jtnews/dist/static/favicons/apple/apple-favicon-74-180.png", + Small = "https://static.ngs.ru/jtnews/dist/static/favicons/favicon-rugion-32.ico", + SourceId = new Guid("321e1615-6328-4532-85ac-22d53d59c164") + }, + new + { + Id = new Guid("68fa8065-fdc2-4e15-b2b1-3adb91d2d862"), + Original = "https://www.1obl.ru/apple-touch-icon.png", + Small = "https://www.1obl.ru/favicon-32x32.png", + SourceId = new Guid("70873440-0058-4669-aa74-352489f9e6da") + }, + new + { + Id = new Guid("375423fe-7b3a-4296-80f1-4072577524c0"), + Original = "https://www.cybersport.ru/favicon-192x192.png", + Small = "https://www.cybersport.ru/favicon-32x32.png", + SourceId = new Guid("797060c0-3b47-4654-9176-32d719baad69") + }, + new + { + Id = new Guid("5195571a-9041-4d0e-a9d1-dddbc5c9cb39"), + Original = "https://www.hltv.org/img/static/favicon/apple-touch-icon.png", + Small = "https://www.hltv.org/img/static/favicon/favicon-32x32.png", + SourceId = new Guid("e4b3e286-3589-49de-892b-d0d06e719115") + }, + new + { + Id = new Guid("e1eeadd2-6075-447a-8cda-0952e46496fc"), + Original = "https://www.nytimes.com/vi-assets/static-assets/apple-touch-icon-28865b72953380a40aa43318108876cb.png", + Small = "https://www.nytimes.com/vi-assets/static-assets/ios-default-homescreen-57x57-dark-b395ebcad5b63aff9285aab58e31035e.png", + SourceId = new Guid("136c7569-601c-4f16-9ca4-bd14bfa8c16a") + }, + new + { + Id = new Guid("9f083bc5-a246-46d7-a2fe-eaa32d79a821"), + Original = "https://edition.cnn.com/media/sites/cnn/apple-touch-icon.png", + Small = "https://edition.cnn.com/media/sites/cnn/favicon.ico", + SourceId = new Guid("5c3b0099-2a8a-49a5-8c68-d24ebc9fac07") + }, + new + { + Id = new Guid("4cf43716-885c-4a85-8d23-0ecc987da590"), + Original = "https://s01.stc.yc.kpcdn.net/s0/2.1.321/adaptive/favicon-128.png", + Small = "https://s01.stc.yc.kpcdn.net/s0/2.1.321/adaptive/favicon-32.png", + SourceId = new Guid("cb68ce1c-c741-41df-a1c9-8ce34529b421") + }, + new + { + Id = new Guid("7083afb5-2799-44f7-a508-60369598da29"), + Original = "https://www.zr.ru/favicons/safari-pinned-tab.svg", + Small = "https://www.zr.ru/favicons/favicon.ico", + SourceId = new Guid("a71c23bf-67e9-4955-bc8e-6226bd86ba90") + }, + new + { + Id = new Guid("ef6108bf-e9c1-4f8b-b4f7-7e933b1c7ac3"), + Original = "https://www.avtovzglyad.ru/static/images/favicon/safari-pinned-tab.svg", + Small = "https://www.avtovzglyad.ru/static/images/favicon/favicon-32x32.png", + SourceId = new Guid("454f4f08-58cf-4ab7-9012-1e5ba663570c") + }, + new + { + Id = new Guid("955eb645-e135-46d6-990e-1348bcc962d8"), + Original = "https://overclockers.ru/assets/apple-touch-icon-120x120.png", + Small = "https://overclockers.ru/assets/apple-touch-icon.png", + SourceId = new Guid("dac8cec6-c84d-4287-b0b9-71f4cf304c7e") + }, + new + { + Id = new Guid("1aa24985-d52d-4f4e-8113-022a0216a2af"), + Original = "https://www.kinonews.ru/favicon.ico", + Small = "https://www.kinonews.ru/favicon.ico", + SourceId = new Guid("296270ec-026b-4011-83ff-1466ba577864") + }, + new + { + Id = new Guid("d227ada8-0869-4320-8e0b-29b4b57ace6f"), + Original = "https://7days.ru/android-icon-192x192.png", + Small = "https://7days.ru/favicon-32x32.png", + SourceId = new Guid("ba078388-eedf-4ccb-af5f-3f686f4ece4a") + }, + new + { + Id = new Guid("5f715b2b-8509-4425-aaed-2da285f295d0"), + Original = "https://cdn.hsmedia.ru/public/favicon/starhit/apple-touch-icon.png", + Small = "https://cdn.hsmedia.ru/public/favicon/starhit/favicon.png", + SourceId = new Guid("05765a1b-b174-4ad1-9f63-3189a52303f9") + }, + new + { + Id = new Guid("495799aa-0817-433e-9abe-5481c0f3d569"), + Original = "https://stopgame.ru/favicon_512.png", + Small = "https://stopgame.ru/favicon.ico", + SourceId = new Guid("b5594347-6ec0-44c0-b381-7ae47f04fa56") + }, + new + { + Id = new Guid("504e7035-e6bb-434a-939c-5b4515ad4e48"), + Original = "https://ren.tv/apple-touch-icon.png", + Small = "https://ren.tv/favicon-32x32.png", + SourceId = new Guid("c169d8ad-a9fe-44e9-af6a-fd337ae10000") + }, + new + { + Id = new Guid("bafc4c68-8558-46d1-b778-0c2137188d93"), + Original = "https://www.novorosinform.org/favicon.ico?v3", + Small = "https://www.novorosinform.org/favicon.ico?v3", + SourceId = new Guid("c7b863af-0565-4bec-9238-9383272637ef") + }, + new + { + Id = new Guid("c4d13a4c-2f0d-41a4-a5e0-543e6a7dbad8"), + Original = "https://img5tv.cdnvideo.ru/shared/img/favicon_24.png", + Small = "https://img5tv.cdnvideo.ru/shared/img/favicon_24.png", + SourceId = new Guid("33b14253-7c02-4b79-8490-c8ed10312230") + }, + new + { + Id = new Guid("4af4b3b2-ca3d-4421-976f-0406c515033a"), + Original = "https://cdn-static.ntv.ru/images/favicons/android-chrome-192x192.png", + Small = "https://cdn-static.ntv.ru/images/favicons/favicon-32x32.png", + SourceId = new Guid("6c5fe2d4-8547-4fb0-8966-d148f8d77af7") + }, + new + { + Id = new Guid("872f13d3-d28d-44c4-bf38-ab69bb554e4a"), + Original = "https://www.fontanka.ru/static/assets/favicons/apple/apple-favicon-180.png", + Small = "https://www.fontanka.ru/static/assets/favicons/apple/apple-favicon-76-precomposed.png", + SourceId = new Guid("068fb7bb-4b76-4261-bc9a-274625fe8890") + }, + new + { + Id = new Guid("a786f93c-3c1d-4561-a699-58fba081cc37"), + Original = "https://regnum.ru/favicons/apple-touch-icon.png?v=202305", + Small = "https://regnum.ru/favicons/favicon-32x32.png?v=202305", + SourceId = new Guid("60747323-2a4c-44e1-880d-7e5e36642645") + }, + new + { + Id = new Guid("1a1a5026-c9a6-4d74-9f36-721b47a79548"), + Original = "https://www.womanhit.ru/static/front/img/favicon.ico?v=2", + Small = "https://www.womanhit.ru/static/front/img/favicon.ico?v=2", + SourceId = new Guid("2fa2ff6a-9a8b-4a2d-b0e4-6e7e14679236") + }, + new + { + Id = new Guid("3ee815d8-a253-47c7-9084-22cddbb490d4"), + Original = "https://rusvesna.su/favicon.ico", + Small = "https://rusvesna.su/favicon.ico", + SourceId = new Guid("b2fb23b4-3f6d-440c-9ec0-99216f233fd0") + }, + new + { + Id = new Guid("915e2d86-b519-4034-a44f-991b0a446607"), + Original = "https://s9.travelask.ru/favicons/apple-touch-icon-180x180.png", + Small = "https://s9.travelask.ru/favicons/favicon-32x32.png", + SourceId = new Guid("b9ec9be8-e1f2-49d6-b461-b61872bb369c") + }, + new + { + Id = new Guid("6b5da5aa-29f4-4ee9-a310-db70936a1ff1"), + Original = "https://smart-lab.ru/templates/skin/smart-lab-x3/images/favicon.ico", + Small = "https://smart-lab.ru/templates/skin/smart-lab-x3/images/favicon.ico", + SourceId = new Guid("65141fc2-760f-4866-86c5-08cc764cabac") + }, + new + { + Id = new Guid("9e7d94a1-3960-4019-aa85-e4f384ec14ea"), + Original = "https://www.finam.ru/favicon-144x144.png", + Small = "https://www.finam.ru/favicon.png", + SourceId = new Guid("9e3453b3-be81-4f3b-93da-45192677c6a9") + }, + new + { + Id = new Guid("b22f3762-d5d6-4102-9817-a719bb0c220c"), + Original = "https://www.khl.ru/img/icons/152x152.png", + Small = "https://www.khl.ru/img/icons/32x32.png", + SourceId = new Guid("9519622d-50f0-4a8d-8728-c58c12255b6f") + }, + new + { + Id = new Guid("e8db752b-966e-4c0f-9cab-895cda0de469"), + Original = "https://cdnn21.img.ria.ru/i/favicons/radiosputnik/apple-touch-icon.png", + Small = "https://cdnn21.img.ria.ru/i/favicons/radiosputnik/favicon.ico", + SourceId = new Guid("1994c4bc-aeb9-4242-81df-5bafffca6fd0") + }, + new + { + Id = new Guid("6e7dee47-3b1c-4ec8-b2c7-b6ec29fcc6f5"), + Original = "https://meduza.io/apple-touch-icon-180.png", + Small = "https://meduza.io/favicon-32x32.png", + SourceId = new Guid("3a346f18-1781-408b-bc8d-2f8e4cbc64ea") + }, + new + { + Id = new Guid("aaf79c06-980f-4d3c-9d89-0281ccfecc70"), + Original = "https://www.huffpost.com/favicon.ico", + Small = "https://www.huffpost.com/favicon.ico", + SourceId = new Guid("1f913a9a-4e5a-4925-89c1-51e985f63e9d") + }, + new + { + Id = new Guid("3cd265f4-637e-480c-8294-9d81d9027538"), + Original = "https://static.foxnews.com/static/orion/styles/img/fox-news/favicons/apple-touch-icon-180x180.png", + Small = "https://static.foxnews.com/static/orion/styles/img/fox-news/favicons/favicon-32x32.png", + SourceId = new Guid("e5afb99f-47ff-4822-89fa-2ff8859a5c42") + }, + new + { + Id = new Guid("cdfd8be8-f692-48f3-a06d-e290f20d92e2"), + Original = "https://www.politico.com/apple-touch-icon-180x180.png", + Small = "https://www.politico.com/favicon-32x32.png", + SourceId = new Guid("7c0ac71c-0e8e-425b-ac26-424b152415f5") + }); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsSourceTag", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uuid") + .HasColumnName("id"); + + b.Property("SourceId") + .HasColumnType("uuid") + .HasColumnName("source_id"); + + b.Property("TagId") + .HasColumnType("uuid") + .HasColumnName("tag_id"); + + b.HasKey("Id") + .HasName("pk_news_source_tags"); + + b.HasIndex("SourceId") + .HasDatabaseName("ix_news_source_tags_source_id"); + + b.HasIndex("TagId") + .HasDatabaseName("ix_news_source_tags_tag_id"); + + b.ToTable("news_source_tags", (string)null); + + b.HasData( + new + { + Id = new Guid("aec9b965-2433-4bf0-ac3d-0f01775a6a75"), + SourceId = new Guid("b8d20577-6c4c-4bd7-a1b1-b58bb4914541"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("b246f291-1cb3-42fc-904c-fdca50162d28"), + SourceId = new Guid("b8d20577-6c4c-4bd7-a1b1-b58bb4914541"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("3f0c3643-d21d-4e8e-bf55-a01b42011215"), + SourceId = new Guid("b8d20577-6c4c-4bd7-a1b1-b58bb4914541"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }, + new + { + Id = new Guid("4cac9f6e-f034-4600-8272-a04aeca7f0b4"), + SourceId = new Guid("5d8e3050-5444-4709-afc3-18a8d46a71ba"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("dd4ff481-d8d3-410d-ad32-e39cf572071d"), + SourceId = new Guid("5d8e3050-5444-4709-afc3-18a8d46a71ba"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("c549c18b-8e40-4196-b6d7-ff9c9cb516ba"), + SourceId = new Guid("5d8e3050-5444-4709-afc3-18a8d46a71ba"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }, + new + { + Id = new Guid("bc9d7be6-2e7e-4b7c-9859-b8047ce7ef81"), + SourceId = new Guid("7e889af8-0f19-44ab-96d4-241fd64fbcdb"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("20725e40-3f1d-4089-8d74-9d08ae3f127d"), + SourceId = new Guid("7e889af8-0f19-44ab-96d4-241fd64fbcdb"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("33e821e2-c90d-45ed-a905-269ca20bf28f"), + SourceId = new Guid("7e889af8-0f19-44ab-96d4-241fd64fbcdb"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }, + new + { + Id = new Guid("585e40dd-ec2b-41b6-b505-59603e1031f8"), + SourceId = new Guid("fb2f8557-ca7e-4ce2-86dd-b8a94ee02275"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("5178aad8-b861-4640-afc6-c3bd1749ae94"), + SourceId = new Guid("fb2f8557-ca7e-4ce2-86dd-b8a94ee02275"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("3e8627f0-f07d-4cab-a30b-08282bbdf928"), + SourceId = new Guid("fb2f8557-ca7e-4ce2-86dd-b8a94ee02275"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }, + new + { + Id = new Guid("5385f93d-42d7-4798-9868-d5c75a86fd8f"), + SourceId = new Guid("31b6f068-3f00-4250-bc74-62146525ba95"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("000a5ecc-fee2-486f-88de-ca43ce445849"), + SourceId = new Guid("31b6f068-3f00-4250-bc74-62146525ba95"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("33e60843-feb6-4f42-b171-b5dbd423ed3b"), + SourceId = new Guid("31b6f068-3f00-4250-bc74-62146525ba95"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }, + new + { + Id = new Guid("7c4772ef-afbb-4264-92b5-77389e8c0990"), + SourceId = new Guid("9268835d-553d-4fbe-a0cb-0545b8019c68"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("d194cd94-eb02-471e-900c-2f298405b7c5"), + SourceId = new Guid("9268835d-553d-4fbe-a0cb-0545b8019c68"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("3241b406-31e8-41a2-b9cd-efc585789d48"), + SourceId = new Guid("9268835d-553d-4fbe-a0cb-0545b8019c68"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }, + new + { + Id = new Guid("a1ba384a-04c5-4886-a113-36d86fc8cf60"), + SourceId = new Guid("950d59d6-d94c-4396-a55e-cbcd2a9b533c"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("75e4331e-76d5-48d0-998b-0765b6b7854d"), + SourceId = new Guid("950d59d6-d94c-4396-a55e-cbcd2a9b533c"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("c7585125-4dbc-4b56-aa3a-422a96ade9fb"), + SourceId = new Guid("950d59d6-d94c-4396-a55e-cbcd2a9b533c"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }, + new + { + Id = new Guid("b2a8ec2b-61da-45fd-b98f-6b32d0ccf331"), + SourceId = new Guid("3e1f065a-c135-4429-941e-d870886b4147"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("c3fc77db-1764-4453-a6e9-6f85ef5fde66"), + SourceId = new Guid("3e1f065a-c135-4429-941e-d870886b4147"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("0ac9ad4a-29b6-4689-aadc-b3b75a3b034c"), + SourceId = new Guid("3e1f065a-c135-4429-941e-d870886b4147"), + TagId = new Guid("6c939d6c-0461-46c8-b9b6-83021b68df71") + }, + new + { + Id = new Guid("ca9c9fa1-182d-416f-af3c-53b470edbbaa"), + SourceId = new Guid("baaa533a-cb1a-46e7-bb9e-79d631affc87"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("6884348a-7db9-49b3-81db-8300d6e0d72e"), + SourceId = new Guid("baaa533a-cb1a-46e7-bb9e-79d631affc87"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("6d9524d2-1101-493e-bd71-53d8ecf0e8de"), + SourceId = new Guid("baaa533a-cb1a-46e7-bb9e-79d631affc87"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }, + new + { + Id = new Guid("a881440d-08a1-41e0-86a7-64b3dec4d5d4"), + SourceId = new Guid("31252741-4d0b-448f-b85c-d6538f7ca565"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("fd0b4b8f-5731-4e4f-a96b-f80093af1630"), + SourceId = new Guid("31252741-4d0b-448f-b85c-d6538f7ca565"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("6a065cf7-5a1e-445f-98d1-043b96aa75e8"), + SourceId = new Guid("31252741-4d0b-448f-b85c-d6538f7ca565"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }, + new + { + Id = new Guid("97b780f9-1854-4ee2-88f9-cc9027152826"), + SourceId = new Guid("3b8c9766-f5d5-44ec-a014-45ddce4a9a0c"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("745d9370-217a-4c3c-9289-215003e963f2"), + SourceId = new Guid("3b8c9766-f5d5-44ec-a014-45ddce4a9a0c"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("660485e7-ff2a-4375-979a-62769a8becfa"), + SourceId = new Guid("3b8c9766-f5d5-44ec-a014-45ddce4a9a0c"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }, + new + { + Id = new Guid("9bed47b1-ba64-453a-91df-0c08b9ab61c1"), + SourceId = new Guid("fc0a229f-bde4-4f61-b4eb-75d1285665dd"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("393c3856-dbc5-4620-9a35-635894691dfc"), + SourceId = new Guid("fc0a229f-bde4-4f61-b4eb-75d1285665dd"), + TagId = new Guid("5654a834-6f9a-4caa-a153-d4644204001c") + }, + new + { + Id = new Guid("2565182d-475e-4217-8b8d-b2ba9dbeb092"), + SourceId = new Guid("fc0a229f-bde4-4f61-b4eb-75d1285665dd"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }, + new + { + Id = new Guid("95d32d18-c7c5-4749-8166-7d83d9ad9bf6"), + SourceId = new Guid("6854c858-b82d-44f5-bb48-620c9bf9825d"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("a02eecd4-f17b-42eb-beea-331873191aa9"), + SourceId = new Guid("6854c858-b82d-44f5-bb48-620c9bf9825d"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("151e6d99-9d03-4acb-8058-0f49bbb4a589"), + SourceId = new Guid("6854c858-b82d-44f5-bb48-620c9bf9825d"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }, + new + { + Id = new Guid("06b2c915-82cf-4115-a537-cbc91d80783a"), + SourceId = new Guid("3e24ec11-86a4-4db8-9337-35a00988da7d"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("e3566a06-d006-4937-9bb5-90eade9d2bac"), + SourceId = new Guid("3e24ec11-86a4-4db8-9337-35a00988da7d"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("8949a721-7dfc-428c-a03d-6721e5b35879"), + SourceId = new Guid("3e24ec11-86a4-4db8-9337-35a00988da7d"), + TagId = new Guid("9f2effc4-5f9d-419a-83a9-598c41afc2b8") + }, + new + { + Id = new Guid("0b19d00f-4483-4f55-818a-a7b34925b37b"), + SourceId = new Guid("e2ce0a01-9d10-4133-a989-618739aa3854"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("4f514879-ca5a-45a2-9c9c-4834f7f98bd7"), + SourceId = new Guid("e2ce0a01-9d10-4133-a989-618739aa3854"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("b12ca17b-650c-4fbb-84a3-10057f365551"), + SourceId = new Guid("e2ce0a01-9d10-4133-a989-618739aa3854"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }, + new + { + Id = new Guid("5ec2412d-81f3-4157-924d-44ad65e0a24a"), + SourceId = new Guid("49bcf6b7-15bc-4f30-a3d6-3c88837aa039"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("4998ee1a-d54c-4d29-be1d-8df7c60ee7b3"), + SourceId = new Guid("49bcf6b7-15bc-4f30-a3d6-3c88837aa039"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("1a3984fc-b3b1-4d9f-bdff-716636bb2353"), + SourceId = new Guid("49bcf6b7-15bc-4f30-a3d6-3c88837aa039"), + TagId = new Guid("6c939d6c-0461-46c8-b9b6-83021b68df71") + }, + new + { + Id = new Guid("2d10c3ff-332e-46bb-a37b-0ca725ee91a1"), + SourceId = new Guid("170a9aef-a708-41a4-8370-a8526f2c055f"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("c2535359-45dd-458c-9b5a-bf7991047d9b"), + SourceId = new Guid("170a9aef-a708-41a4-8370-a8526f2c055f"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("e219d7a3-c5d4-4f54-a275-75c5bc9df4cb"), + SourceId = new Guid("170a9aef-a708-41a4-8370-a8526f2c055f"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }, + new + { + Id = new Guid("d6846cf7-bca1-48d3-b78d-188d94e2f80a"), + SourceId = new Guid("5aebacd6-b4d5-4839-b2f0-533ff3329941"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("b6d1bfd8-38e9-4365-936d-ed3c6c09b357"), + SourceId = new Guid("5aebacd6-b4d5-4839-b2f0-533ff3329941"), + TagId = new Guid("529cd044-c4fe-4c50-8748-080584a48d12") + }, + new + { + Id = new Guid("c8f40af2-f3b9-40de-ab83-dd5e74962bfb"), + SourceId = new Guid("5aebacd6-b4d5-4839-b2f0-533ff3329941"), + TagId = new Guid("b99b8260-8eb2-4a30-8d59-2f251a83e68c") + }, + new + { + Id = new Guid("4762d902-fdfe-413d-9c8d-76e619e81c7d"), + SourceId = new Guid("5aebacd6-b4d5-4839-b2f0-533ff3329941"), + TagId = new Guid("34cc1d82-002a-4c8c-b783-e46d9c88dde5") + }, + new + { + Id = new Guid("5136ab36-5504-49e6-9422-0afeff788cbf"), + SourceId = new Guid("e023416d-7d91-4d92-bd5f-37d57c54f6b4"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("fc69d2fa-df60-45d6-8e79-41105f488cbf"), + SourceId = new Guid("e023416d-7d91-4d92-bd5f-37d57c54f6b4"), + TagId = new Guid("529cd044-c4fe-4c50-8748-080584a48d12") + }, + new + { + Id = new Guid("f534eefe-6616-4631-8354-c8e86140632b"), + SourceId = new Guid("e023416d-7d91-4d92-bd5f-37d57c54f6b4"), + TagId = new Guid("b99b8260-8eb2-4a30-8d59-2f251a83e68c") + }, + new + { + Id = new Guid("688e1338-51ad-40c5-a537-4fcc91fd0ed0"), + SourceId = new Guid("e023416d-7d91-4d92-bd5f-37d57c54f6b4"), + TagId = new Guid("34cc1d82-002a-4c8c-b783-e46d9c88dde5") + }, + new + { + Id = new Guid("7afa8562-f5b4-4cdf-92c0-af0594d4be4d"), + SourceId = new Guid("604e9548-9b99-4bd4-ab90-4bf90b4a1807"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("ce7a5f4b-071f-4c3e-af81-758a1b918c39"), + SourceId = new Guid("604e9548-9b99-4bd4-ab90-4bf90b4a1807"), + TagId = new Guid("2139e644-a9fa-49ce-8eea-7380e7936527") + }, + new + { + Id = new Guid("025c4e26-53d0-469f-9c52-3cec92eda13a"), + SourceId = new Guid("cc29eb91-2efb-4d57-8d14-bb5356cbfbb8"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("25a4e9e3-c047-485a-9684-c3f897c6d8b8"), + SourceId = new Guid("cc29eb91-2efb-4d57-8d14-bb5356cbfbb8"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("fa9322b8-0640-43ea-847f-4a05bf1b160d"), + SourceId = new Guid("cc29eb91-2efb-4d57-8d14-bb5356cbfbb8"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }, + new + { + Id = new Guid("f60c2ec2-8e72-462f-8144-987d9ba37751"), + SourceId = new Guid("57597b92-2b9d-422e-b0a7-9b11326c879b"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("ad8b55a9-c949-469f-956a-5624ecb7f577"), + SourceId = new Guid("57597b92-2b9d-422e-b0a7-9b11326c879b"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("dc2ed602-baa8-4a9e-8f38-b1cf40d5bb59"), + SourceId = new Guid("57597b92-2b9d-422e-b0a7-9b11326c879b"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }, + new + { + Id = new Guid("311ea1df-f338-4d3a-83f9-9f69c9fb5593"), + SourceId = new Guid("13f235b7-a6f6-4da4-83a1-13b5af26700a"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("e33ba004-f85b-4714-a381-ee25fafd52f0"), + SourceId = new Guid("13f235b7-a6f6-4da4-83a1-13b5af26700a"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("99d1cd54-f21d-407d-b1e1-54a6bd79f6ab"), + SourceId = new Guid("13f235b7-a6f6-4da4-83a1-13b5af26700a"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }, + new + { + Id = new Guid("1e00ba56-95e3-41d7-8eb0-fb2a839faf9c"), + SourceId = new Guid("e16286a8-78a9-4b86-ba4b-c844f7099336"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("f28044d3-15c7-4bee-9b92-8b418e03a191"), + SourceId = new Guid("e16286a8-78a9-4b86-ba4b-c844f7099336"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("9f83d191-c57f-4c08-bdf9-6b0c97b8367c"), + SourceId = new Guid("e16286a8-78a9-4b86-ba4b-c844f7099336"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }, + new + { + Id = new Guid("9d6cd55b-f966-4e6a-973d-d548d7183da2"), + SourceId = new Guid("321e1615-6328-4532-85ac-22d53d59c164"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("32ea560c-f4ef-4bb9-844c-72206f5f0e5f"), + SourceId = new Guid("321e1615-6328-4532-85ac-22d53d59c164"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("cbc029ee-c8f0-493a-b9e7-837420e76734"), + SourceId = new Guid("321e1615-6328-4532-85ac-22d53d59c164"), + TagId = new Guid("54d48566-0e56-4e41-a2c6-35f71d9e35fe") + }, + new + { + Id = new Guid("0eedd3af-e5dd-45f7-af31-15b9dee5c89f"), + SourceId = new Guid("70873440-0058-4669-aa74-352489f9e6da"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("1536f46f-ea14-4fb8-b8d5-9aae924266ff"), + SourceId = new Guid("70873440-0058-4669-aa74-352489f9e6da"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("b3e5aec3-aee3-41a6-a797-e56c87d2f920"), + SourceId = new Guid("70873440-0058-4669-aa74-352489f9e6da"), + TagId = new Guid("54d48566-0e56-4e41-a2c6-35f71d9e35fe") + }, + new + { + Id = new Guid("9c690333-2c73-4cfc-b113-b4feb4fbc30a"), + SourceId = new Guid("797060c0-3b47-4654-9176-32d719baad69"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("ab8a6089-a6b8-4031-934e-d296f8253fd3"), + SourceId = new Guid("797060c0-3b47-4654-9176-32d719baad69"), + TagId = new Guid("4c65a245-2631-47ed-a84d-e4699e9a997c") + }, + new + { + Id = new Guid("2753275a-efd1-41e9-84cd-8b5399cb2ea3"), + SourceId = new Guid("797060c0-3b47-4654-9176-32d719baad69"), + TagId = new Guid("6c939d6c-0461-46c8-b9b6-83021b68df71") + }, + new + { + Id = new Guid("508b2fd4-609d-4ce2-925a-a18c7b9889db"), + SourceId = new Guid("e4b3e286-3589-49de-892b-d0d06e719115"), + TagId = new Guid("8e8ec992-5b4b-43d9-b290-73fbfcd8a32e") + }, + new + { + Id = new Guid("1bc5683b-b0fa-4a72-b9d8-bfc9c45360c6"), + SourceId = new Guid("e4b3e286-3589-49de-892b-d0d06e719115"), + TagId = new Guid("cfa03d74-4386-4e3f-a841-bb6498a02adc") + }, + new + { + Id = new Guid("6ce3a3ff-775d-4606-a3eb-462daa663500"), + SourceId = new Guid("e4b3e286-3589-49de-892b-d0d06e719115"), + TagId = new Guid("4c65a245-2631-47ed-a84d-e4699e9a997c") + }, + new + { + Id = new Guid("d6550af5-7e26-49cc-b9bb-65ddfe9ccd67"), + SourceId = new Guid("e4b3e286-3589-49de-892b-d0d06e719115"), + TagId = new Guid("6c939d6c-0461-46c8-b9b6-83021b68df71") + }, + new + { + Id = new Guid("85583770-ceb5-4114-b5dd-b00cc6dcb199"), + SourceId = new Guid("136c7569-601c-4f16-9ca4-bd14bfa8c16a"), + TagId = new Guid("8e8ec992-5b4b-43d9-b290-73fbfcd8a32e") + }, + new + { + Id = new Guid("934a294d-04fc-4f74-971c-1dac01b70086"), + SourceId = new Guid("136c7569-601c-4f16-9ca4-bd14bfa8c16a"), + TagId = new Guid("f06891c5-6324-4bab-b836-a78a4d2c603d") + }, + new + { + Id = new Guid("f739b571-d14b-4366-8c75-4b39aadd24f7"), + SourceId = new Guid("136c7569-601c-4f16-9ca4-bd14bfa8c16a"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }, + new + { + Id = new Guid("dd0ea6e1-0684-4a1e-b143-37bdb1ba7c5a"), + SourceId = new Guid("136c7569-601c-4f16-9ca4-bd14bfa8c16a"), + TagId = new Guid("e0a5af2c-cb45-40da-90d7-7ba59c662bcb") + }, + new + { + Id = new Guid("e9e871d8-2a97-4117-bdd3-99a28be03cad"), + SourceId = new Guid("5c3b0099-2a8a-49a5-8c68-d24ebc9fac07"), + TagId = new Guid("8e8ec992-5b4b-43d9-b290-73fbfcd8a32e") + }, + new + { + Id = new Guid("6225f6e1-2901-4727-8aa5-c34d46730169"), + SourceId = new Guid("5c3b0099-2a8a-49a5-8c68-d24ebc9fac07"), + TagId = new Guid("cbb60009-18c3-479b-a09a-cfe976fb5abd") + }, + new + { + Id = new Guid("6db9856b-05fa-4036-b700-6f6288bc8318"), + SourceId = new Guid("5c3b0099-2a8a-49a5-8c68-d24ebc9fac07"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }, + new + { + Id = new Guid("5c40c521-5f8b-4fd2-984c-78c7a3e583bd"), + SourceId = new Guid("5c3b0099-2a8a-49a5-8c68-d24ebc9fac07"), + TagId = new Guid("ae20fd4f-a451-42cb-aae6-875d0bfacaa7") + }, + new + { + Id = new Guid("3442ffd8-d296-4f9a-8b56-e1c83a468053"), + SourceId = new Guid("cb68ce1c-c741-41df-a1c9-8ce34529b421"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("d49cfbc4-2c58-4d27-b68c-6ead4192affc"), + SourceId = new Guid("cb68ce1c-c741-41df-a1c9-8ce34529b421"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("b460f29d-8f45-4d10-9529-145c54287a6f"), + SourceId = new Guid("cb68ce1c-c741-41df-a1c9-8ce34529b421"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }, + new + { + Id = new Guid("942b3d98-af39-40f6-a2d4-e4acb4d48df2"), + SourceId = new Guid("a71c23bf-67e9-4955-bc8e-6226bd86ba90"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("050c5ae6-0a40-40fc-b900-4e16ec28159c"), + SourceId = new Guid("a71c23bf-67e9-4955-bc8e-6226bd86ba90"), + TagId = new Guid("464a2260-130c-4a4b-8aa6-4f477cd1760f") + }, + new + { + Id = new Guid("f603da29-65c5-4713-80bd-ec8023b9c94d"), + SourceId = new Guid("454f4f08-58cf-4ab7-9012-1e5ba663570c"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("a5c23469-5399-4848-bf82-14e195c357ac"), + SourceId = new Guid("454f4f08-58cf-4ab7-9012-1e5ba663570c"), + TagId = new Guid("464a2260-130c-4a4b-8aa6-4f477cd1760f") + }, + new + { + Id = new Guid("4d30d497-e95e-428f-b8ed-b38f67a62894"), + SourceId = new Guid("dac8cec6-c84d-4287-b0b9-71f4cf304c7e"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("c5e74bb8-c08b-4498-baad-11ce59564015"), + SourceId = new Guid("dac8cec6-c84d-4287-b0b9-71f4cf304c7e"), + TagId = new Guid("34cc1d82-002a-4c8c-b783-e46d9c88dde5") + }, + new + { + Id = new Guid("eb0ca62c-bf7c-40c8-946d-fadfd107cffb"), + SourceId = new Guid("296270ec-026b-4011-83ff-1466ba577864"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("24eaf488-7213-4419-8f9e-edb3222c7004"), + SourceId = new Guid("296270ec-026b-4011-83ff-1466ba577864"), + TagId = new Guid("85e1d7f3-0150-48ac-9c29-17acec559f32") + }, + new + { + Id = new Guid("0ee0d08c-66c0-4f83-ad46-92e3971d13d8"), + SourceId = new Guid("ba078388-eedf-4ccb-af5f-3f686f4ece4a"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("e19e6158-1b33-4f1b-9757-6b50f180f007"), + SourceId = new Guid("ba078388-eedf-4ccb-af5f-3f686f4ece4a"), + TagId = new Guid("bcc08307-a922-4de1-aa17-8ff9dc438425") + }, + new + { + Id = new Guid("4ee63615-d18c-4f48-8b9a-8aff52d12006"), + SourceId = new Guid("05765a1b-b174-4ad1-9f63-3189a52303f9"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("50d237f6-59fa-44bc-96f4-344bab93f074"), + SourceId = new Guid("05765a1b-b174-4ad1-9f63-3189a52303f9"), + TagId = new Guid("bcc08307-a922-4de1-aa17-8ff9dc438425") + }, + new + { + Id = new Guid("39b9de90-e868-41c1-8390-632d344850d7"), + SourceId = new Guid("b5594347-6ec0-44c0-b381-7ae47f04fa56"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("853e103e-0105-46c0-869b-3b7c3ed19a46"), + SourceId = new Guid("b5594347-6ec0-44c0-b381-7ae47f04fa56"), + TagId = new Guid("2139e644-a9fa-49ce-8eea-7380e7936527") + }, + new + { + Id = new Guid("30042a38-0f29-4378-b9e9-12c64a043913"), + SourceId = new Guid("c169d8ad-a9fe-44e9-af6a-fd337ae10000"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("3073fa94-5ff5-411f-b8b7-25663045c4da"), + SourceId = new Guid("c169d8ad-a9fe-44e9-af6a-fd337ae10000"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("8512f634-1ddd-405a-841d-45545534904f"), + SourceId = new Guid("c169d8ad-a9fe-44e9-af6a-fd337ae10000"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }, + new + { + Id = new Guid("6159dd07-94f5-471e-b6ea-0cd73b2de872"), + SourceId = new Guid("c169d8ad-a9fe-44e9-af6a-fd337ae10000"), + TagId = new Guid("ae20fd4f-a451-42cb-aae6-875d0bfacaa7") + }, + new + { + Id = new Guid("95fe22e4-5977-4f74-947d-9cc8dba28f47"), + SourceId = new Guid("c7b863af-0565-4bec-9238-9383272637ef"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("b27c172f-99b0-4441-a3a4-d499e302d509"), + SourceId = new Guid("c7b863af-0565-4bec-9238-9383272637ef"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("a06bb1f8-a548-44b5-8d41-02af27aeeaf7"), + SourceId = new Guid("c7b863af-0565-4bec-9238-9383272637ef"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }, + new + { + Id = new Guid("a12ba2dd-791c-44c0-963c-d0d0224f7aef"), + SourceId = new Guid("33b14253-7c02-4b79-8490-c8ed10312230"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("c55962cf-5967-4d67-a1a6-b2d1a856930b"), + SourceId = new Guid("33b14253-7c02-4b79-8490-c8ed10312230"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("0b335897-3cb8-4bd8-8e01-3435785fdc9c"), + SourceId = new Guid("33b14253-7c02-4b79-8490-c8ed10312230"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }, + new + { + Id = new Guid("3a64826a-9a6f-4d7d-9798-1c86350846d1"), + SourceId = new Guid("33b14253-7c02-4b79-8490-c8ed10312230"), + TagId = new Guid("ae20fd4f-a451-42cb-aae6-875d0bfacaa7") + }, + new + { + Id = new Guid("93013951-10cd-474a-834f-fa528a3fd95b"), + SourceId = new Guid("6c5fe2d4-8547-4fb0-8966-d148f8d77af7"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("f075a7a6-561f-4cdf-b71e-dd7a1f8f960f"), + SourceId = new Guid("6c5fe2d4-8547-4fb0-8966-d148f8d77af7"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("a3c4d53e-42e2-4639-a0e6-adb0ce838bdb"), + SourceId = new Guid("6c5fe2d4-8547-4fb0-8966-d148f8d77af7"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }, + new + { + Id = new Guid("a12d8fd1-873f-4ac7-b4c5-4bffc6cb3479"), + SourceId = new Guid("6c5fe2d4-8547-4fb0-8966-d148f8d77af7"), + TagId = new Guid("ae20fd4f-a451-42cb-aae6-875d0bfacaa7") + }, + new + { + Id = new Guid("22aacfa5-7c90-4d6f-9b04-79805d6d01e3"), + SourceId = new Guid("068fb7bb-4b76-4261-bc9a-274625fe8890"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("4b63e46c-1f07-4dc7-8c63-2a8eab4fb054"), + SourceId = new Guid("068fb7bb-4b76-4261-bc9a-274625fe8890"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("674e3fd9-f4a8-4b81-9f11-4de28cc824dd"), + SourceId = new Guid("068fb7bb-4b76-4261-bc9a-274625fe8890"), + TagId = new Guid("6fc28243-4b6e-4013-8121-0bc4d8397552") + }, + new + { + Id = new Guid("53a0fa14-82ed-49a0-9f6c-0ad21e2c8ff8"), + SourceId = new Guid("60747323-2a4c-44e1-880d-7e5e36642645"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("2134a235-9b9d-4010-b627-2de04e044a0f"), + SourceId = new Guid("60747323-2a4c-44e1-880d-7e5e36642645"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("70b71eaf-20ce-489e-bf24-77201fb2a506"), + SourceId = new Guid("60747323-2a4c-44e1-880d-7e5e36642645"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }, + new + { + Id = new Guid("e71cb8fe-52b0-4e6e-b344-0e5631996192"), + SourceId = new Guid("2fa2ff6a-9a8b-4a2d-b0e4-6e7e14679236"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("f0c920e4-64c9-4b1f-b3ce-780a1d0c34b3"), + SourceId = new Guid("2fa2ff6a-9a8b-4a2d-b0e4-6e7e14679236"), + TagId = new Guid("2e2cf727-d007-4293-8f2c-f8e54baf06ce") + }, + new + { + Id = new Guid("9730da62-1ba7-4f35-a1e0-6b7a0d6c4e3f"), + SourceId = new Guid("b2fb23b4-3f6d-440c-9ec0-99216f233fd0"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("83188472-1463-4bcf-8d36-6166906332ac"), + SourceId = new Guid("b2fb23b4-3f6d-440c-9ec0-99216f233fd0"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("6939baf3-2726-4b72-9ef2-ad710cdecc88"), + SourceId = new Guid("b2fb23b4-3f6d-440c-9ec0-99216f233fd0"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }, + new + { + Id = new Guid("374ede54-919b-4c31-9738-18b31de40898"), + SourceId = new Guid("b9ec9be8-e1f2-49d6-b461-b61872bb369c"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("bad63cda-47c7-45ef-867c-c271c48b2e13"), + SourceId = new Guid("b9ec9be8-e1f2-49d6-b461-b61872bb369c"), + TagId = new Guid("f74ca29a-e9bc-4111-94d7-ebe5beccd72c") + }, + new + { + Id = new Guid("6a63cd8b-9bfd-4c7b-9fc4-add3af28ab09"), + SourceId = new Guid("65141fc2-760f-4866-86c5-08cc764cabac"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("afed64e4-db23-4f41-9519-6570621c0b30"), + SourceId = new Guid("65141fc2-760f-4866-86c5-08cc764cabac"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("e86d098a-4561-40b9-83e0-d35612ecfafe"), + SourceId = new Guid("65141fc2-760f-4866-86c5-08cc764cabac"), + TagId = new Guid("47ea1951-5508-4647-a805-138a861974ff") + }, + new + { + Id = new Guid("985748c8-d5a4-48c5-a41b-b23c8726d297"), + SourceId = new Guid("65141fc2-760f-4866-86c5-08cc764cabac"), + TagId = new Guid("19db4d3d-b17a-45ff-9853-cdce9630c08f") + }, + new + { + Id = new Guid("9d0a0cea-e52f-4418-8652-3a152788a1ff"), + SourceId = new Guid("9e3453b3-be81-4f3b-93da-45192677c6a9"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("a0d39b98-3a62-4153-9a5f-b678bd754ff0"), + SourceId = new Guid("9e3453b3-be81-4f3b-93da-45192677c6a9"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("53d62165-056b-4061-9415-696925c16912"), + SourceId = new Guid("9e3453b3-be81-4f3b-93da-45192677c6a9"), + TagId = new Guid("47ea1951-5508-4647-a805-138a861974ff") + }, + new + { + Id = new Guid("4ef14b7a-d41d-4eab-b58d-db7ce19bcdbb"), + SourceId = new Guid("9e3453b3-be81-4f3b-93da-45192677c6a9"), + TagId = new Guid("19db4d3d-b17a-45ff-9853-cdce9630c08f") + }, + new + { + Id = new Guid("683efe05-2dee-444a-95e9-5f23909ef186"), + SourceId = new Guid("9519622d-50f0-4a8d-8728-c58c12255b6f"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("06253ef3-b019-488a-a553-9da5fafb3ac1"), + SourceId = new Guid("9519622d-50f0-4a8d-8728-c58c12255b6f"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("931d85e9-49d4-44dd-b062-d8c7ce5d241a"), + SourceId = new Guid("9519622d-50f0-4a8d-8728-c58c12255b6f"), + TagId = new Guid("6c939d6c-0461-46c8-b9b6-83021b68df71") + }, + new + { + Id = new Guid("89efc9f8-a1a8-4ca4-accb-72741ca89d18"), + SourceId = new Guid("9519622d-50f0-4a8d-8728-c58c12255b6f"), + TagId = new Guid("aa8de58c-f61f-4b4c-ad4c-ff05245e052c") + }, + new + { + Id = new Guid("c3d9032b-5b1b-4c67-9267-fcf6a890a660"), + SourceId = new Guid("9519622d-50f0-4a8d-8728-c58c12255b6f"), + TagId = new Guid("3afdf0a8-2504-4436-8483-2b9566b881f2") + }, + new + { + Id = new Guid("4f09a167-0888-4ee7-9f0a-0cf691870de1"), + SourceId = new Guid("1994c4bc-aeb9-4242-81df-5bafffca6fd0"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("8477f4da-0bb6-4f77-9d5b-e8681d275e34"), + SourceId = new Guid("1994c4bc-aeb9-4242-81df-5bafffca6fd0"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("4b5473d0-5275-4615-94e2-596a86b383dd"), + SourceId = new Guid("1994c4bc-aeb9-4242-81df-5bafffca6fd0"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }, + new + { + Id = new Guid("faddd74b-9234-4412-be8c-74b05ce04dc7"), + SourceId = new Guid("1994c4bc-aeb9-4242-81df-5bafffca6fd0"), + TagId = new Guid("4aaeef66-ae04-4d75-8920-72fb30031c53") + }, + new + { + Id = new Guid("b681073b-3a8a-469e-8d03-db44364f0557"), + SourceId = new Guid("3a346f18-1781-408b-bc8d-2f8e4cbc64ea"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("eeb9e776-c05e-499f-ad3d-49dd23a8f1e1"), + SourceId = new Guid("3a346f18-1781-408b-bc8d-2f8e4cbc64ea"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("2765ef2f-338c-4f92-a1d2-4ed1dc54ed83"), + SourceId = new Guid("3a346f18-1781-408b-bc8d-2f8e4cbc64ea"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }, + new + { + Id = new Guid("35a38041-59d7-4924-ad4a-92ac14988e54"), + SourceId = new Guid("1f913a9a-4e5a-4925-89c1-51e985f63e9d"), + TagId = new Guid("8e8ec992-5b4b-43d9-b290-73fbfcd8a32e") + }, + new + { + Id = new Guid("9f4fd158-51d1-4aa9-ad41-0d59d26ac38f"), + SourceId = new Guid("1f913a9a-4e5a-4925-89c1-51e985f63e9d"), + TagId = new Guid("f06891c5-6324-4bab-b836-a78a4d2c603d") + }, + new + { + Id = new Guid("371d2b27-1b5f-4f87-bb12-3e3b11651b44"), + SourceId = new Guid("1f913a9a-4e5a-4925-89c1-51e985f63e9d"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }, + new + { + Id = new Guid("0840963c-95b1-40c4-9806-a3f96a510b2f"), + SourceId = new Guid("e5afb99f-47ff-4822-89fa-2ff8859a5c42"), + TagId = new Guid("8e8ec992-5b4b-43d9-b290-73fbfcd8a32e") + }, + new + { + Id = new Guid("48a9904d-be59-4aac-8abb-5959bbd10a36"), + SourceId = new Guid("e5afb99f-47ff-4822-89fa-2ff8859a5c42"), + TagId = new Guid("f06891c5-6324-4bab-b836-a78a4d2c603d") + }, + new + { + Id = new Guid("291c690f-9a53-4ae0-9480-2475af09adeb"), + SourceId = new Guid("e5afb99f-47ff-4822-89fa-2ff8859a5c42"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }, + new + { + Id = new Guid("526e62ee-b4d1-4575-ba8a-8ee1ba5a041c"), + SourceId = new Guid("e5afb99f-47ff-4822-89fa-2ff8859a5c42"), + TagId = new Guid("ae20fd4f-a451-42cb-aae6-875d0bfacaa7") + }, + new + { + Id = new Guid("acc922e5-bf8f-4bd7-bc82-7e75d87bc245"), + SourceId = new Guid("7c0ac71c-0e8e-425b-ac26-424b152415f5"), + TagId = new Guid("8e8ec992-5b4b-43d9-b290-73fbfcd8a32e") + }, + new + { + Id = new Guid("996ec670-045e-45e0-bb3b-d0218e36704d"), + SourceId = new Guid("7c0ac71c-0e8e-425b-ac26-424b152415f5"), + TagId = new Guid("f06891c5-6324-4bab-b836-a78a4d2c603d") + }, + new + { + Id = new Guid("cc81438d-b3a7-44cb-bb91-7b8b01b2b700"), + SourceId = new Guid("7c0ac71c-0e8e-425b-ac26-424b152415f5"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsSubTitle", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uuid") + .HasColumnName("id"); + + b.Property("NewsId") + .HasColumnType("uuid") + .HasColumnName("news_id"); + + b.Property("Title") + .IsRequired() + .HasColumnType("text") + .HasColumnName("title"); + + b.HasKey("Id") + .HasName("pk_news_sub_titles"); + + b.HasIndex("NewsId") + .IsUnique() + .HasDatabaseName("ix_news_sub_titles_news_id"); + + b.HasIndex("Title") + .HasDatabaseName("ix_news_sub_titles_title"); + + b.ToTable("news_sub_titles", (string)null); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsTag", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uuid") + .HasColumnName("id"); + + b.Property("Name") + .IsRequired() + .HasColumnType("text") + .HasColumnName("name"); + + b.HasKey("Id") + .HasName("pk_news_tags"); + + b.HasIndex("Name") + .HasDatabaseName("ix_news_tags_name"); + + b.ToTable("news_tags", (string)null); + + b.HasData( + new + { + Id = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31"), + Name = "Russia" + }, + new + { + Id = new Guid("f06891c5-6324-4bab-b836-a78a4d2c603d"), + Name = "USA" + }, + new + { + Id = new Guid("cbb60009-18c3-479b-a09a-cfe976fb5abd"), + Name = "UK" + }, + new + { + Id = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff"), + Name = "Russian" + }, + new + { + Id = new Guid("8e8ec992-5b4b-43d9-b290-73fbfcd8a32e"), + Name = "English" + }, + new + { + Id = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb"), + Name = "Politics" + }, + new + { + Id = new Guid("6c939d6c-0461-46c8-b9b6-83021b68df71"), + Name = "Sport" + }, + new + { + Id = new Guid("3afdf0a8-2504-4436-8483-2b9566b881f2"), + Name = "KHL" + }, + new + { + Id = new Guid("aa8de58c-f61f-4b4c-ad4c-ff05245e052c"), + Name = "Hockey" + }, + new + { + Id = new Guid("9f2effc4-5f9d-419a-83a9-598c41afc2b8"), + Name = "Moscow" + }, + new + { + Id = new Guid("6fc28243-4b6e-4013-8121-0bc4d8397552"), + Name = "Saint-Petersburg" + }, + new + { + Id = new Guid("54d48566-0e56-4e41-a2c6-35f71d9e35fe"), + Name = "Chelyabinsk" + }, + new + { + Id = new Guid("5654a834-6f9a-4caa-a153-d4644204001c"), + Name = "Belarus" + }, + new + { + Id = new Guid("b99b8260-8eb2-4a30-8d59-2f251a83e68c"), + Name = "Technologies" + }, + new + { + Id = new Guid("529cd044-c4fe-4c50-8748-080584a48d12"), + Name = "IT" + }, + new + { + Id = new Guid("2139e644-a9fa-49ce-8eea-7380e7936527"), + Name = "Video games" + }, + new + { + Id = new Guid("4c65a245-2631-47ed-a84d-e4699e9a997c"), + Name = "Cybersport" + }, + new + { + Id = new Guid("cfa03d74-4386-4e3f-a841-bb6498a02adc"), + Name = "Counter Strike" + }, + new + { + Id = new Guid("e0a5af2c-cb45-40da-90d7-7ba59c662bcb"), + Name = "New York" + }, + new + { + Id = new Guid("464a2260-130c-4a4b-8aa6-4f477cd1760f"), + Name = "Auto" + }, + new + { + Id = new Guid("34cc1d82-002a-4c8c-b783-e46d9c88dde5"), + Name = "Computer hardware" + }, + new + { + Id = new Guid("85e1d7f3-0150-48ac-9c29-17acec559f32"), + Name = "Movie" + }, + new + { + Id = new Guid("bcc08307-a922-4de1-aa17-8ff9dc438425"), + Name = "Show business" + }, + new + { + Id = new Guid("ae20fd4f-a451-42cb-aae6-875d0bfacaa7"), + Name = "TV" + }, + new + { + Id = new Guid("2e2cf727-d007-4293-8f2c-f8e54baf06ce"), + Name = "Woman" + }, + new + { + Id = new Guid("f74ca29a-e9bc-4111-94d7-ebe5beccd72c"), + Name = "Travel" + }, + new + { + Id = new Guid("47ea1951-5508-4647-a805-138a861974ff"), + Name = "Economy" + }, + new + { + Id = new Guid("19db4d3d-b17a-45ff-9853-cdce9630c08f"), + Name = "Finance" + }, + new + { + Id = new Guid("4aaeef66-ae04-4d75-8920-72fb30031c53"), + Name = "Radio" + }); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsTextDescription", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uuid") + .HasColumnName("id"); + + b.Property("Description") + .IsRequired() + .HasColumnType("text") + .HasColumnName("description"); + + b.Property("NewsId") + .HasColumnType("uuid") + .HasColumnName("news_id"); + + b.HasKey("Id") + .HasName("pk_news_text_descriptions"); + + b.HasIndex("NewsId") + .IsUnique() + .HasDatabaseName("ix_news_text_descriptions_news_id"); + + b.ToTable("news_text_descriptions", (string)null); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsVideo", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uuid") + .HasColumnName("id"); + + b.Property("NewsId") + .HasColumnType("uuid") + .HasColumnName("news_id"); + + b.Property("Url") + .IsRequired() + .HasColumnType("text") + .HasColumnName("url"); + + b.HasKey("Id") + .HasName("pk_news_videos"); + + b.HasIndex("NewsId") + .IsUnique() + .HasDatabaseName("ix_news_videos_news_id"); + + b.ToTable("news_videos", (string)null); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsView", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uuid") + .HasColumnName("id"); + + b.Property("IpAddress") + .IsRequired() + .HasColumnType("text") + .HasColumnName("ip_address"); + + b.Property("NewsId") + .HasColumnType("uuid") + .HasColumnName("news_id"); + + b.Property("ViewedAt") + .HasColumnType("timestamp with time zone") + .HasColumnName("viewed_at"); + + b.HasKey("Id") + .HasName("pk_news_views"); + + b.HasIndex("IpAddress") + .HasDatabaseName("ix_news_views_ip_address"); + + b.HasIndex("NewsId") + .HasDatabaseName("ix_news_views_news_id"); + + b.HasIndex("ViewedAt") + .HasDatabaseName("ix_news_views_viewed_at"); + + b.ToTable("news_views", (string)null); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.Reaction", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uuid") + .HasColumnName("id"); + + b.Property("Title") + .IsRequired() + .HasColumnType("text") + .HasColumnName("title"); + + b.HasKey("Id") + .HasName("pk_reactions"); + + b.HasIndex("Title") + .HasDatabaseName("ix_reactions_title"); + + b.ToTable("reactions", (string)null); + + b.HasData( + new + { + Id = new Guid("79569ca3-5279-4f10-a69b-a1c01bc4aafc"), + Title = "Angry" + }, + new + { + Id = new Guid("64f9b137-6ec4-4026-84f6-371fd15b2d7a"), + Title = "Astonished" + }, + new + { + Id = new Guid("7f2a58e7-34f8-4551-a1d6-8cd2f132351d"), + Title = "Frown" + }, + new + { + Id = new Guid("181976e1-087d-42dc-9b2b-baeaa79431c7"), + Title = "Laughing" + }, + new + { + Id = new Guid("60e71cd7-12a3-4c2e-b626-ffba6415b814"), + Title = "Neutral" + }, + new + { + Id = new Guid("44135679-ac4c-4a3b-8f60-eb645bdda922"), + Title = "Smile" + }, + new + { + Id = new Guid("1ef9784e-14e3-4435-b536-9467a7a66176"), + Title = "Surprise" + }, + new + { + Id = new Guid("81f8a4e0-f850-411b-ba9a-6131c6768658"), + Title = "Tear" + }, + new + { + Id = new Guid("04cd624c-2d10-4be5-8128-7a529e690cc8"), + Title = "Thumbs down" + }, + new + { + Id = new Guid("015aae0f-d855-4f47-b001-4b45c5a837db"), + Title = "Thumbs up" + }); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.ReactionIcon", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uuid") + .HasColumnName("id"); + + b.Property("IconClass") + .IsRequired() + .HasColumnType("text") + .HasColumnName("icon_class"); + + b.Property("IconColor") + .IsRequired() + .HasColumnType("text") + .HasColumnName("icon_color"); + + b.Property("ReactionId") + .HasColumnType("uuid") + .HasColumnName("reaction_id"); + + b.HasKey("Id") + .HasName("pk_reaction_icons"); + + b.HasIndex("ReactionId") + .IsUnique() + .HasDatabaseName("ix_reaction_icons_reaction_id"); + + b.ToTable("reaction_icons", (string)null); + + b.HasData( + new + { + Id = new Guid("c815a7e1-385a-4b64-9351-04c32b9a45d5"), + IconClass = "bi-emoji-angry-fill", + IconColor = "red", + ReactionId = new Guid("79569ca3-5279-4f10-a69b-a1c01bc4aafc") + }, + new + { + Id = new Guid("02c35a67-344b-4520-b04c-ea8e92d62dbf"), + IconClass = "bi-emoji-astonished-fill", + IconColor = "orange", + ReactionId = new Guid("64f9b137-6ec4-4026-84f6-371fd15b2d7a") + }, + new + { + Id = new Guid("e1f9ac21-e918-4ab7-a051-43e0fec7e7c5"), + IconClass = "bi-emoji-frown-fill", + IconColor = "auqa", + ReactionId = new Guid("7f2a58e7-34f8-4551-a1d6-8cd2f132351d") + }, + new + { + Id = new Guid("334e08bb-a136-4977-a8e2-d24c01108242"), + IconClass = "bi-emoji-laughing-fill", + IconColor = "lime", + ReactionId = new Guid("181976e1-087d-42dc-9b2b-baeaa79431c7") + }, + new + { + Id = new Guid("26c1d336-5429-4343-ac30-651bab560ca9"), + IconClass = "bi-emoji-neutral-fill", + IconColor = "orange", + ReactionId = new Guid("60e71cd7-12a3-4c2e-b626-ffba6415b814") + }, + new + { + Id = new Guid("2ffbe56a-543f-4f3b-8196-8886ce47f12a"), + IconClass = "bi-emoji-smile-fill", + IconColor = "lime", + ReactionId = new Guid("44135679-ac4c-4a3b-8f60-eb645bdda922") + }, + new + { + Id = new Guid("19ca1fb2-5435-4f26-90b6-9e96d0d6821c"), + IconClass = "bi-emoji-surprise-fill", + IconColor = "lime", + ReactionId = new Guid("1ef9784e-14e3-4435-b536-9467a7a66176") + }, + new + { + Id = new Guid("2158fcf6-039c-49f4-8e2e-9867ba006e1f"), + IconClass = "bi-emoji-tear-fill", + IconColor = "auqa", + ReactionId = new Guid("81f8a4e0-f850-411b-ba9a-6131c6768658") + }, + new + { + Id = new Guid("ef493f75-50d3-49c2-9aad-01edf6cd55c2"), + IconClass = "bi-hand-thumbs-down-fill", + IconColor = "red", + ReactionId = new Guid("04cd624c-2d10-4be5-8128-7a529e690cc8") + }, + new + { + Id = new Guid("66874c88-c3f0-4836-b340-d186b264e32c"), + IconClass = "bi-hand-thumbs-up-fill", + IconColor = "lime", + ReactionId = new Guid("015aae0f-d855-4f47-b001-4b45c5a837db") + }); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.News", b => + { + b.HasOne("NewsAggregator.News.Entities.NewsEditor", "Editor") + .WithMany("News") + .HasForeignKey("EditorId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("fk_news_news_editors_editor_id"); + + b.Navigation("Editor"); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsEditor", b => + { + b.HasOne("NewsAggregator.News.Entities.NewsSource", "Source") + .WithMany("Editors") + .HasForeignKey("SourceId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("fk_news_editors_news_sources_source_id"); + + b.Navigation("Source"); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsHtmlDescription", b => + { + b.HasOne("NewsAggregator.News.Entities.News", "News") + .WithOne("HtmlDescription") + .HasForeignKey("NewsAggregator.News.Entities.NewsHtmlDescription", "NewsId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("fk_news_html_descriptions_news_news_id"); + + b.Navigation("News"); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsParseEditorSettings", b => + { + b.HasOne("NewsAggregator.News.Entities.NewsParseSettings", "ParseSettings") + .WithOne("ParseEditorSettings") + .HasForeignKey("NewsAggregator.News.Entities.NewsParseEditorSettings", "ParseSettingsId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("fk_news_parse_editor_settings_news_parse_settings_parse_settin"); + + b.Navigation("ParseSettings"); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsParseModifiedAtSettings", b => + { + b.HasOne("NewsAggregator.News.Entities.NewsParseSettings", "ParseSettings") + .WithOne("ParseModifiedAtSettings") + .HasForeignKey("NewsAggregator.News.Entities.NewsParseModifiedAtSettings", "ParseSettingsId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("fk_news_parse_modified_at_settings_news_parse_settings_parse_s"); + + b.Navigation("ParseSettings"); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsParseModifiedAtSettingsFormat", b => + { + b.HasOne("NewsAggregator.News.Entities.NewsParseModifiedAtSettings", "Settings") + .WithMany("Formats") + .HasForeignKey("NewsParseModifiedAtSettingsId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("fk_news_parse_modified_at_settings_formats_news_parse_modified"); + + b.Navigation("Settings"); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsParsePictureSettings", b => + { + b.HasOne("NewsAggregator.News.Entities.NewsParseSettings", "ParseSettings") + .WithOne("ParsePictureSettings") + .HasForeignKey("NewsAggregator.News.Entities.NewsParsePictureSettings", "ParseSettingsId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("fk_news_parse_picture_settings_news_parse_settings_parse_setti"); + + b.Navigation("ParseSettings"); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsParsePublishedAtSettings", b => + { + b.HasOne("NewsAggregator.News.Entities.NewsParseSettings", "ParseSettings") + .WithOne("ParsePublishedAtSettings") + .HasForeignKey("NewsAggregator.News.Entities.NewsParsePublishedAtSettings", "ParseSettingsId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("fk_news_parse_published_at_settings_news_parse_settings_parse_"); + + b.Navigation("ParseSettings"); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsParsePublishedAtSettingsFormat", b => + { + b.HasOne("NewsAggregator.News.Entities.NewsParsePublishedAtSettings", "Settings") + .WithMany("Formats") + .HasForeignKey("NewsParsePublishedAtSettingsId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("fk_news_parse_published_at_settings_formats_news_parse_publish"); + + b.Navigation("Settings"); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsParseSettings", b => + { + b.HasOne("NewsAggregator.News.Entities.NewsSource", "Source") + .WithOne("ParseSettings") + .HasForeignKey("NewsAggregator.News.Entities.NewsParseSettings", "SourceId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("fk_news_parse_settings_news_sources_source_id"); + + b.Navigation("Source"); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsParseSubTitleSettings", b => + { + b.HasOne("NewsAggregator.News.Entities.NewsParseSettings", "ParseSettings") + .WithOne("ParseSubTitleSettings") + .HasForeignKey("NewsAggregator.News.Entities.NewsParseSubTitleSettings", "ParseSettingsId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("fk_news_parse_sub_title_settings_news_parse_settings_parse_set"); + + b.Navigation("ParseSettings"); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsParseVideoSettings", b => + { + b.HasOne("NewsAggregator.News.Entities.NewsParseSettings", "ParseSettings") + .WithOne("ParseVideoSettings") + .HasForeignKey("NewsAggregator.News.Entities.NewsParseVideoSettings", "ParseSettingsId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("fk_news_parse_video_settings_news_parse_settings_parse_setting"); + + b.Navigation("ParseSettings"); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsPicture", b => + { + b.HasOne("NewsAggregator.News.Entities.News", "News") + .WithOne("Picture") + .HasForeignKey("NewsAggregator.News.Entities.NewsPicture", "NewsId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("fk_news_pictures_news_news_id"); + + b.Navigation("News"); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsReaction", b => + { + b.HasOne("NewsAggregator.News.Entities.News", "News") + .WithMany("Reactions") + .HasForeignKey("NewsId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("fk_news_reactions_news_news_id"); + + b.HasOne("NewsAggregator.News.Entities.Reaction", "Reaction") + .WithMany("News") + .HasForeignKey("ReactionId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("fk_news_reactions_reactions_reaction_id"); + + b.Navigation("News"); + + b.Navigation("Reaction"); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsSearchSettings", b => + { + b.HasOne("NewsAggregator.News.Entities.NewsSource", "Source") + .WithOne("SearchSettings") + .HasForeignKey("NewsAggregator.News.Entities.NewsSearchSettings", "SourceId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("fk_news_search_settings_news_sources_source_id"); + + b.Navigation("Source"); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsSourceLogo", b => + { + b.HasOne("NewsAggregator.News.Entities.NewsSource", "Source") + .WithOne("Logo") + .HasForeignKey("NewsAggregator.News.Entities.NewsSourceLogo", "SourceId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("fk_news_source_logos_news_sources_source_id"); + + b.Navigation("Source"); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsSourceTag", b => + { + b.HasOne("NewsAggregator.News.Entities.NewsSource", "Source") + .WithMany("Tags") + .HasForeignKey("SourceId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("fk_news_source_tags_news_sources_source_id"); + + b.HasOne("NewsAggregator.News.Entities.NewsTag", "Tag") + .WithMany("Sources") + .HasForeignKey("TagId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("fk_news_source_tags_news_tags_tag_id"); + + b.Navigation("Source"); + + b.Navigation("Tag"); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsSubTitle", b => + { + b.HasOne("NewsAggregator.News.Entities.News", "News") + .WithOne("SubTitle") + .HasForeignKey("NewsAggregator.News.Entities.NewsSubTitle", "NewsId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("fk_news_sub_titles_news_news_id"); + + b.Navigation("News"); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsTextDescription", b => + { + b.HasOne("NewsAggregator.News.Entities.News", "News") + .WithOne("TextDescription") + .HasForeignKey("NewsAggregator.News.Entities.NewsTextDescription", "NewsId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("fk_news_text_descriptions_news_news_id"); + + b.Navigation("News"); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsVideo", b => + { + b.HasOne("NewsAggregator.News.Entities.News", "News") + .WithOne("Video") + .HasForeignKey("NewsAggregator.News.Entities.NewsVideo", "NewsId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("fk_news_videos_news_news_id"); + + b.Navigation("News"); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsView", b => + { + b.HasOne("NewsAggregator.News.Entities.News", "News") + .WithMany("Views") + .HasForeignKey("NewsId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("fk_news_views_news_news_id"); + + b.Navigation("News"); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.ReactionIcon", b => + { + b.HasOne("NewsAggregator.News.Entities.Reaction", "Reaction") + .WithOne("Icon") + .HasForeignKey("NewsAggregator.News.Entities.ReactionIcon", "ReactionId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("fk_reaction_icons_reactions_reaction_id"); + + b.Navigation("Reaction"); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.News", b => + { + b.Navigation("HtmlDescription"); + + b.Navigation("Picture"); + + b.Navigation("Reactions"); + + b.Navigation("SubTitle"); + + b.Navigation("TextDescription"); + + b.Navigation("Video"); + + b.Navigation("Views"); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsEditor", b => + { + b.Navigation("News"); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsParseModifiedAtSettings", b => + { + b.Navigation("Formats"); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsParsePublishedAtSettings", b => + { + b.Navigation("Formats"); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsParseSettings", b => + { + b.Navigation("ParseEditorSettings"); + + b.Navigation("ParseModifiedAtSettings"); + + b.Navigation("ParsePictureSettings"); + + b.Navigation("ParsePublishedAtSettings"); + + b.Navigation("ParseSubTitleSettings"); + + b.Navigation("ParseVideoSettings"); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsSource", b => + { + b.Navigation("Editors"); + + b.Navigation("Logo"); + + b.Navigation("ParseSettings"); + + b.Navigation("SearchSettings"); + + b.Navigation("Tags"); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsTag", b => + { + b.Navigation("Sources"); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.Reaction", b => + { + b.Navigation("Icon"); + + b.Navigation("News"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/src/Microservices/Services/News/NewsAggregator.News/Databases/EntityFramework/News/Migrations/20240330071514_AddedIconColorField.cs b/src/Microservices/Services/News/NewsAggregator.News/Databases/EntityFramework/News/Migrations/20240330071514_AddedIconColorField.cs new file mode 100644 index 0000000..f5d2e81 --- /dev/null +++ b/src/Microservices/Services/News/NewsAggregator.News/Databases/EntityFramework/News/Migrations/20240330071514_AddedIconColorField.cs @@ -0,0 +1,100 @@ +using System; +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace NewsAggregator.News.Databases.EntityFramework.News.Migrations +{ + /// + public partial class AddedIconColorField : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AddColumn( + name: "icon_color", + table: "reaction_icons", + type: "text", + nullable: false, + defaultValue: ""); + + migrationBuilder.UpdateData( + table: "reaction_icons", + keyColumn: "id", + keyValue: new Guid("02c35a67-344b-4520-b04c-ea8e92d62dbf"), + column: "icon_color", + value: "orange"); + + migrationBuilder.UpdateData( + table: "reaction_icons", + keyColumn: "id", + keyValue: new Guid("19ca1fb2-5435-4f26-90b6-9e96d0d6821c"), + column: "icon_color", + value: "lime"); + + migrationBuilder.UpdateData( + table: "reaction_icons", + keyColumn: "id", + keyValue: new Guid("2158fcf6-039c-49f4-8e2e-9867ba006e1f"), + column: "icon_color", + value: "auqa"); + + migrationBuilder.UpdateData( + table: "reaction_icons", + keyColumn: "id", + keyValue: new Guid("26c1d336-5429-4343-ac30-651bab560ca9"), + column: "icon_color", + value: "orange"); + + migrationBuilder.UpdateData( + table: "reaction_icons", + keyColumn: "id", + keyValue: new Guid("2ffbe56a-543f-4f3b-8196-8886ce47f12a"), + column: "icon_color", + value: "lime"); + + migrationBuilder.UpdateData( + table: "reaction_icons", + keyColumn: "id", + keyValue: new Guid("334e08bb-a136-4977-a8e2-d24c01108242"), + column: "icon_color", + value: "lime"); + + migrationBuilder.UpdateData( + table: "reaction_icons", + keyColumn: "id", + keyValue: new Guid("66874c88-c3f0-4836-b340-d186b264e32c"), + column: "icon_color", + value: "lime"); + + migrationBuilder.UpdateData( + table: "reaction_icons", + keyColumn: "id", + keyValue: new Guid("c815a7e1-385a-4b64-9351-04c32b9a45d5"), + column: "icon_color", + value: "red"); + + migrationBuilder.UpdateData( + table: "reaction_icons", + keyColumn: "id", + keyValue: new Guid("e1f9ac21-e918-4ab7-a051-43e0fec7e7c5"), + column: "icon_color", + value: "auqa"); + + migrationBuilder.UpdateData( + table: "reaction_icons", + keyColumn: "id", + keyValue: new Guid("ef493f75-50d3-49c2-9aad-01edf6cd55c2"), + column: "icon_color", + value: "red"); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "icon_color", + table: "reaction_icons"); + } + } +} diff --git a/src/Microservices/Services/News/NewsAggregator.News/Databases/EntityFramework/News/Migrations/20240330072418_ChangedIconColorValues.Designer.cs b/src/Microservices/Services/News/NewsAggregator.News/Databases/EntityFramework/News/Migrations/20240330072418_ChangedIconColorValues.Designer.cs new file mode 100644 index 0000000..8472310 --- /dev/null +++ b/src/Microservices/Services/News/NewsAggregator.News/Databases/EntityFramework/News/Migrations/20240330072418_ChangedIconColorValues.Designer.cs @@ -0,0 +1,6564 @@ +// +using System; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; +using NewsAggregator.News.Databases.EntityFramework.News; +using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; + +#nullable disable + +namespace NewsAggregator.News.Databases.EntityFramework.News.Migrations +{ + [DbContext(typeof(NewsDbContext))] + [Migration("20240330072418_ChangedIconColorValues")] + partial class ChangedIconColorValues + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "8.0.0") + .HasAnnotation("Relational:MaxIdentifierLength", 63); + + NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); + + modelBuilder.Entity("NewsAggregator.News.Entities.News", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uuid") + .HasColumnName("id"); + + b.Property("AddedAt") + .HasColumnType("timestamp with time zone") + .HasColumnName("added_at"); + + b.Property("EditorId") + .HasColumnType("uuid") + .HasColumnName("editor_id"); + + b.Property("ModifiedAt") + .HasColumnType("timestamp with time zone") + .HasColumnName("modified_at"); + + b.Property("ParsedAt") + .HasColumnType("timestamp with time zone") + .HasColumnName("parsed_at"); + + b.Property("PublishedAt") + .HasColumnType("timestamp with time zone") + .HasColumnName("published_at"); + + b.Property("Title") + .IsRequired() + .HasColumnType("text") + .HasColumnName("title"); + + b.Property("Url") + .IsRequired() + .HasColumnType("text") + .HasColumnName("url"); + + b.HasKey("Id") + .HasName("pk_news"); + + b.HasIndex("AddedAt") + .HasDatabaseName("ix_news_added_at"); + + b.HasIndex("EditorId") + .HasDatabaseName("ix_news_editor_id"); + + b.HasIndex("ModifiedAt") + .HasDatabaseName("ix_news_modified_at"); + + b.HasIndex("ParsedAt") + .HasDatabaseName("ix_news_parsed_at"); + + b.HasIndex("PublishedAt") + .HasDatabaseName("ix_news_published_at"); + + b.HasIndex("Title") + .HasDatabaseName("ix_news_title"); + + b.HasIndex("Url") + .HasDatabaseName("ix_news_url"); + + b.ToTable("news", (string)null); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsEditor", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uuid") + .HasColumnName("id"); + + b.Property("Name") + .IsRequired() + .HasColumnType("text") + .HasColumnName("name"); + + b.Property("SourceId") + .HasColumnType("uuid") + .HasColumnName("source_id"); + + b.HasKey("Id") + .HasName("pk_news_editors"); + + b.HasIndex("Name") + .HasDatabaseName("ix_news_editors_name"); + + b.HasIndex("SourceId") + .HasDatabaseName("ix_news_editors_source_id"); + + b.ToTable("news_editors", (string)null); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsHtmlDescription", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uuid") + .HasColumnName("id"); + + b.Property("Description") + .IsRequired() + .HasColumnType("text") + .HasColumnName("description"); + + b.Property("NewsId") + .HasColumnType("uuid") + .HasColumnName("news_id"); + + b.HasKey("Id") + .HasName("pk_news_html_descriptions"); + + b.HasIndex("NewsId") + .IsUnique() + .HasDatabaseName("ix_news_html_descriptions_news_id"); + + b.ToTable("news_html_descriptions", (string)null); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsParseEditorSettings", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uuid") + .HasColumnName("id"); + + b.Property("IsRequired") + .HasColumnType("boolean") + .HasColumnName("is_required"); + + b.Property("NameXPath") + .IsRequired() + .HasColumnType("text") + .HasColumnName("name_x_path"); + + b.Property("ParseSettingsId") + .HasColumnType("uuid") + .HasColumnName("parse_settings_id"); + + b.HasKey("Id") + .HasName("pk_news_parse_editor_settings"); + + b.HasIndex("ParseSettingsId") + .IsUnique() + .HasDatabaseName("ix_news_parse_editor_settings_parse_settings_id"); + + b.ToTable("news_parse_editor_settings", (string)null); + + b.HasData( + new + { + Id = new Guid("e1a6a4f1-57ab-48e6-aaee-b9ece2104cf3"), + IsRequired = false, + NameXPath = "//meta[@name='mediator_author']/@content", + ParseSettingsId = new Guid("da641510-f1dd-4fce-b895-cbf32dca79bf") + }, + new + { + Id = new Guid("6718a708-10eb-4943-be1b-5be29565414f"), + IsRequired = false, + NameXPath = "//div[@class='topic-authors']/a[@class='topic-authors__author']/text()", + ParseSettingsId = new Guid("a39fd0cf-d695-451a-8ec5-b662eddf4e9e") + }, + new + { + Id = new Guid("8e018d32-828c-478d-a19f-8a06fd1fa797"), + IsRequired = false, + NameXPath = "//div[contains(@class, 'PageArticleContent_authors')]//a[contains(@class, 'LinksOfAuthor_item')]/text()", + ParseSettingsId = new Guid("52014d82-bd2b-47fb-9ba1-668df2126197") + }, + new + { + Id = new Guid("17461131-afc7-41bd-af3b-0f2cda2dd935"), + IsRequired = false, + NameXPath = "//div[@class='article_top']//div[@class='authors']//div[@class='autor']//span/text()", + ParseSettingsId = new Guid("e8ea5810-3cc4-46dd-84d7-eb7b5cbf3f3b") + }, + new + { + Id = new Guid("9a6e6c25-1720-4eea-b8df-2195d32dfb46"), + IsRequired = false, + NameXPath = "//div[@class='article__authors']//*[@class='article__authors__author']/span[@class='article__authors__author__name']/text()", + ParseSettingsId = new Guid("929687ee-eb6f-4e95-852d-9635657d7f89") + }, + new + { + Id = new Guid("02333a48-69aa-4492-a33f-3ac9324d3970"), + IsRequired = false, + NameXPath = "//footer[@class='news-item__footer']/div[@class='news-item__footer-after-news']/p[position()=1]//span/text()", + ParseSettingsId = new Guid("8c399ef5-9d29-4442-a621-52867b8e7f6d") + }, + new + { + Id = new Guid("39793598-0239-4802-87f3-f04d404eee1c"), + IsRequired = false, + NameXPath = "//p[@class='doc__text document_authors']/text()", + ParseSettingsId = new Guid("efd9bf27-abb2-46c2-bedb-dc7e745e55fb") + }, + new + { + Id = new Guid("d553ac3d-a4af-4359-9e9b-802bf0c62bcc"), + IsRequired = false, + NameXPath = "//meta[@property='article:author']/@content", + ParseSettingsId = new Guid("9de1ef08-878b-4559-85af-a8b14d7ce68b") + }, + new + { + Id = new Guid("5e370949-45e8-4537-8855-cba4ecc363b4"), + IsRequired = false, + NameXPath = "//a[@class='article__author']/text()", + ParseSettingsId = new Guid("4c29ab0b-01eb-466e-8dc3-fe05886f4332") + }, + new + { + Id = new Guid("47aebca8-87d6-4241-81c5-a65b23518f8a"), + IsRequired = false, + NameXPath = "//article//header//div[@class='b-authors']/div[@class='b-author' and position()=1]//text()", + ParseSettingsId = new Guid("68faffa0-b7e6-44bb-a958-441eb532bfbb") + }, + new + { + Id = new Guid("c8b007a9-e3db-4231-9a5f-5aa3f103e49a"), + IsRequired = false, + NameXPath = "//article/p[@class='author']/text()", + ParseSettingsId = new Guid("a1b03754-30d4-4c65-946d-10995830a159") + }, + new + { + Id = new Guid("4664ca50-bfde-4200-a8eb-af35872e79dd"), + IsRequired = false, + NameXPath = "//meta[@property='article:author']/@content", + ParseSettingsId = new Guid("052241f9-e3e7-4722-9f56-7202de4a331e") + }, + new + { + Id = new Guid("cae0e909-1bff-4b11-8c86-70eff32fa743"), + IsRequired = false, + NameXPath = "//div[contains(@class, 'styles_bodyWrapper')]//div[contains(@class, 'styles_authorsLinks')]/a/text()", + ParseSettingsId = new Guid("3373c5b8-57e2-402b-9dfb-a0ae19e92336") + }, + new + { + Id = new Guid("a5a0d928-4db3-49a7-8a52-2ba8d93fd651"), + IsRequired = false, + NameXPath = "//meta[@name='mediator_author']/@content", + ParseSettingsId = new Guid("44d47f91-a811-4cc3-a70f-f12236d1476d") + }, + new + { + Id = new Guid("f6679100-82e3-4e0d-98a9-de90246ccf3a"), + IsRequired = false, + NameXPath = "//span[@itemprop='author']/span[@itemprop='name']/@content", + ParseSettingsId = new Guid("96ef6e5b-c81b-45e7-a715-1aa131d82ef2") + }, + new + { + Id = new Guid("325ee59a-478b-4ea2-991b-06c65c269bbe"), + IsRequired = false, + NameXPath = "//div[@class='container-fluid publication-footer']//a[contains(@class, 'text-secondary')]/@title", + ParseSettingsId = new Guid("f1b027fc-2809-4eaa-9858-c49a8756852f") + }, + new + { + Id = new Guid("91108b0c-0f51-4946-b639-e9b8e67c48b9"), + IsRequired = false, + NameXPath = "//div[@class='author']/span[@itemprop='author']/span[@itemprop='name']/a/text()", + ParseSettingsId = new Guid("60a60886-4da0-4c2c-8635-a8ec57827667") + }, + new + { + Id = new Guid("20786554-85aa-42a5-80f3-953dccb09f55"), + IsRequired = false, + NameXPath = "//meta[@name='author']/@content", + ParseSettingsId = new Guid("aed24362-5c8e-4b31-9bbe-bb068f9c0f01") + }, + new + { + Id = new Guid("6d70075b-0b7b-4da3-8e5b-a312f268a3a9"), + IsRequired = false, + NameXPath = "//div[@itemprop='author']/span[@itemprop='name']/text()", + ParseSettingsId = new Guid("d477dceb-5655-432b-8bca-b2ca2d944d87") + }, + new + { + Id = new Guid("ce13e4cd-82df-4d2b-87e1-9256c5ef8c7c"), + IsRequired = false, + NameXPath = "//div[@itemprop='author']//p[@itemprop='name']/text()", + ParseSettingsId = new Guid("e4542056-2c68-43c6-a85c-9e4899556800") + }, + new + { + Id = new Guid("f28a4798-e796-400d-ab07-ddb5bb21be43"), + IsRequired = false, + NameXPath = "//*[@itemprop='author']/*[@itemprop='name']//text()", + ParseSettingsId = new Guid("921d7c0a-c084-4188-b243-d08580f65142") + }, + new + { + Id = new Guid("7a85f179-0e73-4d6e-9792-5d93a47e0484"), + IsRequired = false, + NameXPath = "//article//span[@class='author']/a[@class='authorName']/span/text()", + ParseSettingsId = new Guid("f63d1e4f-e82d-4020-8b9c-65beaab1d7c3") + }, + new + { + Id = new Guid("48a9b834-59bb-4398-8526-318c506c58eb"), + IsRequired = false, + NameXPath = "//span[@itemprop='name']/a/text()", + ParseSettingsId = new Guid("3c4ef27a-3157-4eff-a441-1e409c4b6c34") + }, + new + { + Id = new Guid("502c8f33-a803-4578-83b9-a024d2b92510"), + IsRequired = false, + NameXPath = "//meta[@name='author']/@content", + ParseSettingsId = new Guid("2de49bdd-5c36-49ff-9a3b-a1f6ceb75e75") + }, + new + { + Id = new Guid("6ef19113-6578-47ed-93c8-b2b61cd13d08"), + IsRequired = false, + NameXPath = "//div[contains(@class, 'styled__StoryInfoAuthors')]/div[contains(@class, 'styled__InfoAuthor')]//span[contains(@class, 'styled__AuthorName')]/text()", + ParseSettingsId = new Guid("2d46f779-c13c-4699-9460-629e254a6444") + }, + new + { + Id = new Guid("4b846398-fc4c-4c1f-adac-2bc61fea6752"), + IsRequired = false, + NameXPath = "//div[@class='preview__author-block']//div[@class='author__about']/a[@itemprop='name']/@content", + ParseSettingsId = new Guid("e3fcdd00-2152-4d84-8f8c-bf70e4996990") + }, + new + { + Id = new Guid("73e2d740-d23b-44d5-b0a4-634da72f0daf"), + IsRequired = false, + NameXPath = "//span[@class='author']/a/text()", + ParseSettingsId = new Guid("613dbfcf-7f5c-4060-a92a-d2ec7586f4a3") + }, + new + { + Id = new Guid("d577c838-8fed-45ba-850b-18bf437c06f3"), + IsRequired = false, + NameXPath = "//meta[@property='article:author']/@content", + ParseSettingsId = new Guid("32cad97f-b071-4e24-bdc9-10e5e58cf99b") + }, + new + { + Id = new Guid("dd3601cc-4a2c-480f-9860-9f5183d8c67a"), + IsRequired = false, + NameXPath = "//meta[@name='author']/@content", + ParseSettingsId = new Guid("49c1bb0c-b546-4142-a7ba-4925f71a933c") + }, + new + { + Id = new Guid("118e708c-8b15-496c-bffd-1f30c5679ba8"), + IsRequired = false, + NameXPath = "//section[contains(@class, '_page-section')]//div[contains(@class, '_bottom-info_')]//span[contains(@class, '_user-info__name_')]/text()", + ParseSettingsId = new Guid("be3e061e-25f4-4b43-a9f6-45db165b6000") + }, + new + { + Id = new Guid("62ed2534-e043-4f4d-a1ac-b9be0a4d9bbd"), + IsRequired = false, + NameXPath = "//div[@class='article__content']//strong[text()='Автор:']/../text()", + ParseSettingsId = new Guid("611bd50e-69f5-4598-8ad6-8b19771f1044") + }, + new + { + Id = new Guid("5b0a65b8-54c9-432e-8962-d3016e02c01e"), + IsRequired = false, + NameXPath = "//meta[@name='article:author']/@content", + ParseSettingsId = new Guid("5726d5dd-18ac-4c5c-a5d1-f775f1dd0b20") + }, + new + { + Id = new Guid("0f72771a-3c4e-4a38-9ab5-fe96f01728af"), + IsRequired = false, + NameXPath = "//meta[@property='author']/@content", + ParseSettingsId = new Guid("fa16a108-45c2-42e4-8323-b1f3ea3cdf46") + }, + new + { + Id = new Guid("b6c8fbce-f0fa-4d28-b166-8ee9efb9f04f"), + IsRequired = false, + NameXPath = "//meta[@property='ajur:article:authors']/@content", + ParseSettingsId = new Guid("d36d75dc-add7-4e21-8a31-2f40f4033b14") + }, + new + { + Id = new Guid("e70fb7e3-35e6-4afa-ace8-b93a95bf5121"), + IsRequired = false, + NameXPath = "//div[@class='article__announce-authors']/a[@itemprop='author']/span[@itemprop='name']/text()", + ParseSettingsId = new Guid("a7d88817-12e6-434a-8c25-949dde2609f4") + }, + new + { + Id = new Guid("a7340062-15ee-4ea9-b6c5-1ea46f299c49"), + IsRequired = false, + NameXPath = "//div[@class='blog-post-info']//div[@itemprop='author']//span[@itemprop='name']/text()", + ParseSettingsId = new Guid("52ac2f5a-3b95-4adc-9c2a-abd192a1ec26") + }, + new + { + Id = new Guid("c89266cc-1f5c-4839-8b7c-e86ba789c36d"), + IsRequired = false, + NameXPath = "//div[@id='content']//div[contains(@class, 'topic')]/ul[contains(@class, 'blog_more')]//li[@class='author']//text()", + ParseSettingsId = new Guid("289bab5a-8dd4-4ca7-a510-ff6a496b3993") + }, + new + { + Id = new Guid("0f7f9888-b12e-48cc-931c-8380d9e8e7e4"), + IsRequired = false, + NameXPath = "//meta[@property='article:author']/@content", + ParseSettingsId = new Guid("6d16ec92-860e-4bd8-9618-1e5b2ac5a792") + }, + new + { + Id = new Guid("9dc5c8f6-835a-44c5-bb98-2d988cd7001d"), + IsRequired = false, + NameXPath = "//div[@class='newsDetail-body__item-header']/a[contains(@class, 'newsDetail-person')]//p[contains(@class, 'newsDetail-person__info-name')]/text()", + ParseSettingsId = new Guid("a03ca9fd-6e2d-4da5-9017-5feb6a9a1404") + }, + new + { + Id = new Guid("3dc22c77-8081-46cf-b981-fb88b2bfcece"), + IsRequired = false, + NameXPath = "//meta[@property='article:author']/@content", + ParseSettingsId = new Guid("dd419d1c-db40-4fd4-8f12-34206242d7cc") + }, + new + { + Id = new Guid("8f7062f8-e5f9-429b-900f-98412ea04f84"), + IsRequired = false, + NameXPath = "//div[@class='GeneralMaterial-module-materialHeader']//div[contains(@class, 'MetaItem-module_hasSource') and not(time)]/text()", + ParseSettingsId = new Guid("6a7db6d7-c4ec-471c-93e2-9f7b9dd9180c") + }, + new + { + Id = new Guid("10957082-a831-4ffb-86e1-379efef08111"), + IsRequired = false, + NameXPath = "//header//div[contains(@class, 'bottom-header')]//div[contains(@class, 'author-list')]//a[contains(@class, 'headshot__link') and @data-vars-subunit-name='author']/@data-vars-item-name", + ParseSettingsId = new Guid("32b2600c-03b7-4d2d-ace8-77b11e1a5041") + }, + new + { + Id = new Guid("cb8f6ea0-5566-4656-a109-c2daadc5b5a0"), + IsRequired = false, + NameXPath = "//meta[@name='dc.creator']/@content", + ParseSettingsId = new Guid("00a974a4-e223-45fb-965e-97269039d94a") + }, + new + { + Id = new Guid("eabe266c-ac67-4803-8901-6deb6edfa5e6"), + IsRequired = false, + NameXPath = "//div[@class='story-meta']//p[@class='story-meta__authors']/span[@class='vcard']/a/text()", + ParseSettingsId = new Guid("1a5ca4c2-2984-4c52-9fa2-d7f564fd6add") + }); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsParseError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uuid") + .HasColumnName("id"); + + b.Property("CreatedAt") + .HasColumnType("timestamp with time zone") + .HasColumnName("created_at"); + + b.Property("Message") + .IsRequired() + .HasColumnType("text") + .HasColumnName("message"); + + b.Property("NewsUrl") + .IsRequired() + .HasColumnType("text") + .HasColumnName("news_url"); + + b.HasKey("Id") + .HasName("pk_news_parse_errors"); + + b.HasIndex("CreatedAt") + .HasDatabaseName("ix_news_parse_errors_created_at"); + + b.HasIndex("NewsUrl") + .HasDatabaseName("ix_news_parse_errors_news_url"); + + b.ToTable("news_parse_errors", (string)null); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsParseModifiedAtSettings", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uuid") + .HasColumnName("id"); + + b.Property("IsRequired") + .HasColumnType("boolean") + .HasColumnName("is_required"); + + b.Property("ModifiedAtCultureInfo") + .IsRequired() + .HasColumnType("text") + .HasColumnName("modified_at_culture_info"); + + b.Property("ModifiedAtTimeZoneInfoId") + .HasColumnType("text") + .HasColumnName("modified_at_time_zone_info_id"); + + b.Property("ModifiedAtXPath") + .IsRequired() + .HasColumnType("text") + .HasColumnName("modified_at_x_path"); + + b.Property("ParseSettingsId") + .HasColumnType("uuid") + .HasColumnName("parse_settings_id"); + + b.HasKey("Id") + .HasName("pk_news_parse_modified_at_settings"); + + b.HasIndex("ParseSettingsId") + .IsUnique() + .HasDatabaseName("ix_news_parse_modified_at_settings_parse_settings_id"); + + b.ToTable("news_parse_modified_at_settings", (string)null); + + b.HasData( + new + { + Id = new Guid("3c897305-c4ad-42b1-9cb8-a550d075139c"), + IsRequired = false, + ModifiedAtCultureInfo = "ru-RU", + ModifiedAtTimeZoneInfoId = "Russian Standard Time", + ModifiedAtXPath = "//meta[@property='article:modified_time']/@content", + ParseSettingsId = new Guid("9d11efde-ae9c-42a7-ac57-649bf5891e8a") + }, + new + { + Id = new Guid("307744f1-4338-481a-b849-b8d88c196cc3"), + IsRequired = false, + ModifiedAtCultureInfo = "ru-RU", + ModifiedAtTimeZoneInfoId = "UTC", + ModifiedAtXPath = "//div[contains(@class, 'NewsHeader')]//div[contains(@class, 'PublishedMark_update')]//span[@ca-ts]/text()", + ParseSettingsId = new Guid("28bff881-79f7-400c-ab5d-489176c269bb") + }, + new + { + Id = new Guid("90f502b6-e728-4f0a-b937-c264a9e683fd"), + IsRequired = false, + ModifiedAtCultureInfo = "ru-RU", + ModifiedAtTimeZoneInfoId = "Russian Standard Time", + ModifiedAtXPath = "//meta[@property='article:modified_time']/@content", + ParseSettingsId = new Guid("52014d82-bd2b-47fb-9ba1-668df2126197") + }, + new + { + Id = new Guid("46cff913-17ee-438f-8f82-778002dbdcac"), + IsRequired = false, + ModifiedAtCultureInfo = "ru-RU", + ModifiedAtTimeZoneInfoId = "Russian Standard Time", + ModifiedAtXPath = "//meta[@name='article:modified_time']/@content", + ParseSettingsId = new Guid("e8ea5810-3cc4-46dd-84d7-eb7b5cbf3f3b") + }, + new + { + Id = new Guid("ffa17401-2b75-485d-a098-da254f125362"), + IsRequired = false, + ModifiedAtCultureInfo = "ru-RU", + ModifiedAtXPath = "//meta[@itemprop='dateModified']/@content", + ParseSettingsId = new Guid("929687ee-eb6f-4e95-852d-9635657d7f89") + }, + new + { + Id = new Guid("25fa301c-d896-4a5e-b580-2dba44900fb6"), + IsRequired = false, + ModifiedAtCultureInfo = "ru-RU", + ModifiedAtXPath = "//meta[@property='article:modified_time']/@content", + ParseSettingsId = new Guid("efd9bf27-abb2-46c2-bedb-dc7e745e55fb") + }, + new + { + Id = new Guid("59699417-64ea-4f42-9573-68a21d4fdbe7"), + IsRequired = false, + ModifiedAtCultureInfo = "ru-RU", + ModifiedAtXPath = "//meta[@property='article:modified_time']/@content", + ParseSettingsId = new Guid("9de1ef08-878b-4559-85af-a8b14d7ce68b") + }, + new + { + Id = new Guid("39d1b1e4-aa28-41b0-a55a-fffe8e406645"), + IsRequired = false, + ModifiedAtCultureInfo = "ru-RU", + ModifiedAtXPath = "//meta[@property='article:modified_time']/@content", + ParseSettingsId = new Guid("4c29ab0b-01eb-466e-8dc3-fe05886f4332") + }, + new + { + Id = new Guid("62afc18d-a34f-4989-8c4c-2a5d7deabf6b"), + IsRequired = false, + ModifiedAtCultureInfo = "ru-RU", + ModifiedAtTimeZoneInfoId = "Russian Standard Time", + ModifiedAtXPath = "//meta[@property='article:modified_time']/@content", + ParseSettingsId = new Guid("77a6c5a1-b883-444f-ba7e-f0289943947f") + }, + new + { + Id = new Guid("b8626e48-242d-48e4-aa30-8ca2936a0d59"), + IsRequired = false, + ModifiedAtCultureInfo = "ru-RU", + ModifiedAtTimeZoneInfoId = "Russian Standard Time", + ModifiedAtXPath = "//meta[@itemprop='dateModified']/@content", + ParseSettingsId = new Guid("5c2d9dff-16d7-47f9-8d32-07f8fb52ac76") + }, + new + { + Id = new Guid("91c40a45-f102-46d4-bd9b-4e11869f18cd"), + IsRequired = false, + ModifiedAtCultureInfo = "ru-RU", + ModifiedAtXPath = "//meta[@property='article:modified_time']/@content", + ParseSettingsId = new Guid("aed24362-5c8e-4b31-9bbe-bb068f9c0f01") + }, + new + { + Id = new Guid("0a1fc27b-5f76-4a98-acd2-c3f98852d1c0"), + IsRequired = false, + ModifiedAtCultureInfo = "ru-RU", + ModifiedAtXPath = "//meta[@itemprop='dateModified']/@content", + ParseSettingsId = new Guid("e4542056-2c68-43c6-a85c-9e4899556800") + }, + new + { + Id = new Guid("9980ee74-f655-40af-b44e-c9feb0e0bd40"), + IsRequired = false, + ModifiedAtCultureInfo = "ru-RU", + ModifiedAtXPath = "//meta[@itemprop='dateModified']/@content", + ParseSettingsId = new Guid("921d7c0a-c084-4188-b243-d08580f65142") + }, + new + { + Id = new Guid("da1fb28b-2afb-461a-9cf2-6e65a9c6963d"), + IsRequired = false, + ModifiedAtCultureInfo = "ru-RU", + ModifiedAtXPath = "//meta[@property='article:modified_time']/@content", + ParseSettingsId = new Guid("11795391-d20d-48df-ab38-30f796737a43") + }, + new + { + Id = new Guid("4adf1a9f-ac4c-4f17-932b-aac460d0d2f2"), + IsRequired = false, + ModifiedAtCultureInfo = "en-US", + ModifiedAtXPath = "//meta[@property='article:modified_time']/@content", + ParseSettingsId = new Guid("3c4ef27a-3157-4eff-a441-1e409c4b6c34") + }, + new + { + Id = new Guid("033e507a-cb9d-403f-a8cb-48238e03607b"), + IsRequired = false, + ModifiedAtCultureInfo = "en-US", + ModifiedAtXPath = "//meta[@property='article:modified_time']/@content", + ParseSettingsId = new Guid("2de49bdd-5c36-49ff-9a3b-a1f6ceb75e75") + }, + new + { + Id = new Guid("700ffddc-d0a5-450a-b756-deabd7bfed18"), + IsRequired = false, + ModifiedAtCultureInfo = "ru-RU", + ModifiedAtTimeZoneInfoId = "Russian Standard Time", + ModifiedAtXPath = "//meta[@property='article:modified_time']/@content", + ParseSettingsId = new Guid("76b3ad9b-48c5-4f9e-ab28-993ba795fdb1") + }, + new + { + Id = new Guid("6dc53704-3d38-47f9-9efa-7604da400355"), + IsRequired = false, + ModifiedAtCultureInfo = "ru-RU", + ModifiedAtTimeZoneInfoId = "Russian Standard Time", + ModifiedAtXPath = "//meta[@itemprop='dateModified']/@content", + ParseSettingsId = new Guid("692ba156-95b9-4a24-9b0c-71b769e8d3a8") + }, + new + { + Id = new Guid("348a6cf9-f469-4f19-a12c-bdc3f525947c"), + IsRequired = false, + ModifiedAtCultureInfo = "ru-RU", + ModifiedAtXPath = "//meta[@itemprop='dateModified']/@content", + ParseSettingsId = new Guid("49c1bb0c-b546-4142-a7ba-4925f71a933c") + }, + new + { + Id = new Guid("350279da-c53a-42a7-abad-a3097a881261"), + IsRequired = false, + ModifiedAtCultureInfo = "ru-RU", + ModifiedAtXPath = "//meta[@property='article:modified_time']/@content", + ParseSettingsId = new Guid("cba88caa-d8af-4e40-b8fa-14946187e939") + }, + new + { + Id = new Guid("c8cda125-f32f-492a-9d65-c1e0abb69300"), + IsRequired = false, + ModifiedAtCultureInfo = "ru-RU", + ModifiedAtTimeZoneInfoId = "Russian Standard Time", + ModifiedAtXPath = "//meta[@property='article:modified_time']/@content", + ParseSettingsId = new Guid("5726d5dd-18ac-4c5c-a5d1-f775f1dd0b20") + }, + new + { + Id = new Guid("75386858-8fad-48aa-bea8-d5aec36c1f8f"), + IsRequired = false, + ModifiedAtCultureInfo = "ru-RU", + ModifiedAtXPath = "//meta[@itemprop='dateModified']/@content", + ParseSettingsId = new Guid("a7d88817-12e6-434a-8c25-949dde2609f4") + }, + new + { + Id = new Guid("a62f2d07-0e56-4bdc-a6de-c061d313bea9"), + IsRequired = false, + ModifiedAtCultureInfo = "ru-RU", + ModifiedAtTimeZoneInfoId = "Russian Standard Time", + ModifiedAtXPath = "//meta[@property='og:updated_time']/@content", + ParseSettingsId = new Guid("c965a1d0-83b6-4018-a4a5-9c426a02943e") + }, + new + { + Id = new Guid("4aeb273b-8983-4ed7-adf0-74ff9bdfb4ab"), + IsRequired = false, + ModifiedAtCultureInfo = "ru-RU", + ModifiedAtTimeZoneInfoId = "Russian Standard Time", + ModifiedAtXPath = "//meta[@property='article:modified_time']/@content", + ParseSettingsId = new Guid("52ac2f5a-3b95-4adc-9c2a-abd192a1ec26") + }, + new + { + Id = new Guid("458c1359-0212-451f-9c05-a6d043114989"), + IsRequired = false, + ModifiedAtCultureInfo = "ru-RU", + ModifiedAtTimeZoneInfoId = "Russian Standard Time", + ModifiedAtXPath = "//meta[@property='article:modified_time']/@content", + ParseSettingsId = new Guid("dd419d1c-db40-4fd4-8f12-34206242d7cc") + }, + new + { + Id = new Guid("50257fdd-fcc6-4a8e-822c-4834d0f1d762"), + IsRequired = false, + ModifiedAtCultureInfo = "en-US", + ModifiedAtXPath = "//meta[@property='article:modified_time']/@content", + ParseSettingsId = new Guid("32b2600c-03b7-4d2d-ace8-77b11e1a5041") + }, + new + { + Id = new Guid("48f6b66c-3b41-49fd-b4ec-d2d1e3ced579"), + IsRequired = false, + ModifiedAtCultureInfo = "en-US", + ModifiedAtXPath = "//meta[@name='dcterms.modified']/@content", + ParseSettingsId = new Guid("00a974a4-e223-45fb-965e-97269039d94a") + }, + new + { + Id = new Guid("ac1075c5-1536-4691-bc44-c67665d0e2e2"), + IsRequired = false, + ModifiedAtCultureInfo = "en-US", + ModifiedAtTimeZoneInfoId = "Eastern Standard Time", + ModifiedAtXPath = "//div[@class='story-meta']//p[@class='story-meta__updated']/time/@datetime", + ParseSettingsId = new Guid("1a5ca4c2-2984-4c52-9fa2-d7f564fd6add") + }); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsParseModifiedAtSettingsFormat", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uuid") + .HasColumnName("id"); + + b.Property("Format") + .IsRequired() + .HasColumnType("text") + .HasColumnName("format"); + + b.Property("NewsParseModifiedAtSettingsId") + .HasColumnType("uuid") + .HasColumnName("news_parse_modified_at_settings_id"); + + b.HasKey("Id") + .HasName("pk_news_parse_modified_at_settings_formats"); + + b.HasIndex("NewsParseModifiedAtSettingsId") + .HasDatabaseName("ix_news_parse_modified_at_settings_formats_news_parse_modified"); + + b.ToTable("news_parse_modified_at_settings_formats", (string)null); + + b.HasData( + new + { + Id = new Guid("c4c8a06a-a104-4e0e-87d1-4fa02bdfa36a"), + Format = "yyyyMMddTHHmm", + NewsParseModifiedAtSettingsId = new Guid("3c897305-c4ad-42b1-9cb8-a550d075139c") + }, + new + { + Id = new Guid("4084a0b1-75dd-4ab0-9b43-d2d569dfc7c7"), + Format = "\"обновлено\" d MMMM yyyy, HH:mm", + NewsParseModifiedAtSettingsId = new Guid("307744f1-4338-481a-b849-b8d88c196cc3") + }, + new + { + Id = new Guid("61a158be-a01d-42c1-a474-2bbc66775a60"), + Format = "\"обновлено\" d MMMM, HH:mm", + NewsParseModifiedAtSettingsId = new Guid("307744f1-4338-481a-b849-b8d88c196cc3") + }, + new + { + Id = new Guid("a622e5c8-becb-44ac-809b-89da6191fa11"), + Format = "yyyy-MM-ddTHH:mm:ss", + NewsParseModifiedAtSettingsId = new Guid("90f502b6-e728-4f0a-b937-c264a9e683fd") + }, + new + { + Id = new Guid("a6d9eabc-e130-4d14-9cdf-1d0374e5fc6e"), + Format = "yyyy-MM-ddTHH:mm:ss\"+0300\"", + NewsParseModifiedAtSettingsId = new Guid("46cff913-17ee-438f-8f82-778002dbdcac") + }, + new + { + Id = new Guid("06d2ec66-84f2-448c-808e-d5a50facb4cc"), + Format = "yyyy-MM-ddTHH:mm:sszzz", + NewsParseModifiedAtSettingsId = new Guid("ffa17401-2b75-485d-a098-da254f125362") + }, + new + { + Id = new Guid("d2673a76-54a4-4013-8596-c648d3e16aa7"), + Format = "yyyy-MM-ddTHH:mm:sszzz", + NewsParseModifiedAtSettingsId = new Guid("25fa301c-d896-4a5e-b580-2dba44900fb6") + }, + new + { + Id = new Guid("73cf32f0-bb16-4319-935b-76de58df264b"), + Format = "yyyy-MM-ddTHH:mm:sszzz", + NewsParseModifiedAtSettingsId = new Guid("59699417-64ea-4f42-9573-68a21d4fdbe7") + }, + new + { + Id = new Guid("c18f4a2e-e149-4310-9311-f46c52acada0"), + Format = "yyyy-MM-ddTHH:mmzzz", + NewsParseModifiedAtSettingsId = new Guid("39d1b1e4-aa28-41b0-a55a-fffe8e406645") + }, + new + { + Id = new Guid("9ac871c4-a009-4f03-8920-3166aa64deeb"), + Format = "yyyy-MM-dd HH:mm:ss", + NewsParseModifiedAtSettingsId = new Guid("62afc18d-a34f-4989-8c4c-2a5d7deabf6b") + }, + new + { + Id = new Guid("10a053d0-a81c-42a6-a032-1a217bc6e9c1"), + Format = "yyyy-MM-ddTHH:mm:ss", + NewsParseModifiedAtSettingsId = new Guid("b8626e48-242d-48e4-aa30-8ca2936a0d59") + }, + new + { + Id = new Guid("4601b17e-822b-4b19-862c-a0a6c5b7a23c"), + Format = "yyyy-MM-ddTHH:mm:ssZ", + NewsParseModifiedAtSettingsId = new Guid("91c40a45-f102-46d4-bd9b-4e11869f18cd") + }, + new + { + Id = new Guid("3217adeb-8d21-4a5c-82df-83883177308f"), + Format = "yyyy-MM-ddTHH:mm:sszzz", + NewsParseModifiedAtSettingsId = new Guid("0a1fc27b-5f76-4a98-acd2-c3f98852d1c0") + }, + new + { + Id = new Guid("05acbeac-ea1d-41c7-b658-ab3971501e2b"), + Format = "yyyy-MM-ddTHH:mm:sszzz", + NewsParseModifiedAtSettingsId = new Guid("9980ee74-f655-40af-b44e-c9feb0e0bd40") + }, + new + { + Id = new Guid("61f79112-d8a1-4562-8a1d-6f5e64928a50"), + Format = "yyyy-MM-ddTHH:mm:sszzz", + NewsParseModifiedAtSettingsId = new Guid("da1fb28b-2afb-461a-9cf2-6e65a9c6963d") + }, + new + { + Id = new Guid("83158dac-180c-45f5-b13f-82b253c3f0be"), + Format = "yyyy-MM-ddTHH:mm:ss.fffZ", + NewsParseModifiedAtSettingsId = new Guid("4adf1a9f-ac4c-4f17-932b-aac460d0d2f2") + }, + new + { + Id = new Guid("ff02bb15-206e-4c8b-940e-c077740c4e8d"), + Format = "yyyy-MM-ddTHH:mm:ss.fffZ", + NewsParseModifiedAtSettingsId = new Guid("033e507a-cb9d-403f-a8cb-48238e03607b") + }, + new + { + Id = new Guid("fa45d026-0db8-4968-8753-da586b527e27"), + Format = "yyyy-MM-ddTHH:mm:ss.fff\"Z+0300\"", + NewsParseModifiedAtSettingsId = new Guid("700ffddc-d0a5-450a-b756-deabd7bfed18") + }, + new + { + Id = new Guid("d5896f93-bbef-44cb-82c4-6c0c73e4f4c9"), + Format = "yyyy-MM-dd", + NewsParseModifiedAtSettingsId = new Guid("6dc53704-3d38-47f9-9efa-7604da400355") + }, + new + { + Id = new Guid("9baa0874-10a0-4e13-8fc9-fb95036b8958"), + Format = "yyyy-MM-ddTHH:mm:ssZ", + NewsParseModifiedAtSettingsId = new Guid("348a6cf9-f469-4f19-a12c-bdc3f525947c") + }, + new + { + Id = new Guid("7258af78-93ae-46b1-9c4a-418769158262"), + Format = "yyyy-MM-ddTHH:mm:sszzz", + NewsParseModifiedAtSettingsId = new Guid("350279da-c53a-42a7-abad-a3097a881261") + }, + new + { + Id = new Guid("97301aa5-3306-4948-a4f9-0ad1c5d3cda0"), + Format = "yyyy-MM-ddTHH:mm:ss\"+0300\"", + NewsParseModifiedAtSettingsId = new Guid("c8cda125-f32f-492a-9d65-c1e0abb69300") + }, + new + { + Id = new Guid("4acbd680-8c5e-48a3-ae91-d66c2107150a"), + Format = "yyyy-MM-ddTHH:mm:sszzz", + NewsParseModifiedAtSettingsId = new Guid("75386858-8fad-48aa-bea8-d5aec36c1f8f") + }, + new + { + Id = new Guid("331d2e46-95f3-42de-9a4c-a7dd3312647a"), + Format = "yyyy-MM-dd HH:mm", + NewsParseModifiedAtSettingsId = new Guid("a62f2d07-0e56-4bdc-a6de-c061d313bea9") + }, + new + { + Id = new Guid("b86762b0-61e7-4b60-8d55-84285b2ba9f9"), + Format = "yyyy-MM-ddTHH:mm:ss\"+0300\"", + NewsParseModifiedAtSettingsId = new Guid("4aeb273b-8983-4ed7-adf0-74ff9bdfb4ab") + }, + new + { + Id = new Guid("405dd507-6429-4fd3-a76f-7c211adbb18e"), + Format = "yyyyMMddTHHmm", + NewsParseModifiedAtSettingsId = new Guid("458c1359-0212-451f-9c05-a6d043114989") + }, + new + { + Id = new Guid("db537dea-c0ab-426c-a394-10231d9c8a29"), + Format = "yyyy-MM-ddTHH:mm:ssZ", + NewsParseModifiedAtSettingsId = new Guid("50257fdd-fcc6-4a8e-822c-4834d0f1d762") + }, + new + { + Id = new Guid("adad19a0-95c1-40ee-a691-b4a8bcbf18b7"), + Format = "yyyy-MM-ddTHH:mm:sszzz", + NewsParseModifiedAtSettingsId = new Guid("48f6b66c-3b41-49fd-b4ec-d2d1e3ced579") + }, + new + { + Id = new Guid("1ae044f9-a228-41a3-a0c1-a708c760fe88"), + Format = "yyyy-MM-dd HH:mm:ss", + NewsParseModifiedAtSettingsId = new Guid("ac1075c5-1536-4691-bc44-c67665d0e2e2") + }); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsParseNeed", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uuid") + .HasColumnName("id"); + + b.Property("NewsUrl") + .IsRequired() + .HasColumnType("text") + .HasColumnName("news_url"); + + b.HasKey("Id") + .HasName("pk_news_parse_needs"); + + b.HasIndex("NewsUrl") + .HasDatabaseName("ix_news_parse_needs_news_url"); + + b.ToTable("news_parse_needs", (string)null); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsParseNetworkError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uuid") + .HasColumnName("id"); + + b.Property("CreatedAt") + .HasColumnType("timestamp with time zone") + .HasColumnName("created_at"); + + b.Property("Message") + .IsRequired() + .HasColumnType("text") + .HasColumnName("message"); + + b.Property("NewsUrl") + .IsRequired() + .HasColumnType("text") + .HasColumnName("news_url"); + + b.HasKey("Id") + .HasName("pk_news_parse_network_errors"); + + b.HasIndex("NewsUrl") + .HasDatabaseName("ix_news_parse_network_errors_news_url"); + + b.ToTable("news_parse_network_errors", (string)null); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsParsePictureSettings", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uuid") + .HasColumnName("id"); + + b.Property("IsRequired") + .HasColumnType("boolean") + .HasColumnName("is_required"); + + b.Property("ParseSettingsId") + .HasColumnType("uuid") + .HasColumnName("parse_settings_id"); + + b.Property("UrlXPath") + .IsRequired() + .HasColumnType("text") + .HasColumnName("url_x_path"); + + b.HasKey("Id") + .HasName("pk_news_parse_picture_settings"); + + b.HasIndex("ParseSettingsId") + .IsUnique() + .HasDatabaseName("ix_news_parse_picture_settings_parse_settings_id"); + + b.ToTable("news_parse_picture_settings", (string)null); + + b.HasData( + new + { + Id = new Guid("28112804-6fee-47fe-ad2e-9cdf4e982a82"), + IsRequired = false, + ParseSettingsId = new Guid("9d11efde-ae9c-42a7-ac57-649bf5891e8a"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("3b81d060-ce40-45bb-8ceb-81c10e88e2a8"), + IsRequired = false, + ParseSettingsId = new Guid("da641510-f1dd-4fce-b895-cbf32dca79bf"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("afb5bb1e-5cb0-4176-b2e0-99f6efb399dd"), + IsRequired = false, + ParseSettingsId = new Guid("28bff881-79f7-400c-ab5d-489176c269bb"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("d5de3a68-32d4-4553-ae39-ad3eb1509cc5"), + IsRequired = false, + ParseSettingsId = new Guid("a39fd0cf-d695-451a-8ec5-b662eddf4e9e"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("0ae45f17-84aa-42b2-801b-ff153d8d99b1"), + IsRequired = false, + ParseSettingsId = new Guid("52014d82-bd2b-47fb-9ba1-668df2126197"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("c8d55c4c-0a8b-4133-b85d-6ca0df5a5671"), + IsRequired = false, + ParseSettingsId = new Guid("e8ea5810-3cc4-46dd-84d7-eb7b5cbf3f3b"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("7ab23797-333a-428f-a8c2-620267ac2310"), + IsRequired = false, + ParseSettingsId = new Guid("929687ee-eb6f-4e95-852d-9635657d7f89"), + UrlXPath = "//meta[@itemprop='url']/@content" + }, + new + { + Id = new Guid("1119d2b6-db6a-4750-8263-9fb0025cc536"), + IsRequired = false, + ParseSettingsId = new Guid("8c399ef5-9d29-4442-a621-52867b8e7f6d"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("7c9e261c-a090-44f1-92b8-e4d0e6b1d9b5"), + IsRequired = false, + ParseSettingsId = new Guid("efd9bf27-abb2-46c2-bedb-dc7e745e55fb"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("8dfefc74-7200-46f5-94be-3fe0efa0894c"), + IsRequired = false, + ParseSettingsId = new Guid("9de1ef08-878b-4559-85af-a8b14d7ce68b"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("bb45ff0a-06f3-46ea-9921-c4f45270334e"), + IsRequired = false, + ParseSettingsId = new Guid("4c29ab0b-01eb-466e-8dc3-fe05886f4332"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("e8ae178c-a3c7-4ec4-8af8-d1431ef0b1a5"), + IsRequired = false, + ParseSettingsId = new Guid("77a6c5a1-b883-444f-ba7e-f0289943947f"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("ac6a9a56-dada-4c70-b614-1b8fa635a812"), + IsRequired = false, + ParseSettingsId = new Guid("68faffa0-b7e6-44bb-a958-441eb532bfbb"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("7e8d5e93-0edd-4054-8d1b-86b738bca16b"), + IsRequired = false, + ParseSettingsId = new Guid("f6ef6598-401b-4cd8-8654-f3009b41593f"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("86d081ed-0909-49c3-98fe-324f17415c27"), + IsRequired = false, + ParseSettingsId = new Guid("a1b03754-30d4-4c65-946d-10995830a159"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("2e408438-34d0-4ec7-9183-f14c49c50ad6"), + IsRequired = false, + ParseSettingsId = new Guid("052241f9-e3e7-4722-9f56-7202de4a331e"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("784347e1-cdbd-42dc-a71e-c0bf6dc1bd60"), + IsRequired = false, + ParseSettingsId = new Guid("3373c5b8-57e2-402b-9dfb-a0ae19e92336"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("09f7efa7-635a-4a7b-9e00-dbee344eaf0a"), + IsRequired = false, + ParseSettingsId = new Guid("44d47f91-a811-4cc3-a70f-f12236d1476d"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("7bf75c22-3ba4-42df-987a-468cbae9d132"), + IsRequired = false, + ParseSettingsId = new Guid("96ef6e5b-c81b-45e7-a715-1aa131d82ef2"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("140c9334-8e52-4c07-a0a2-f4842820af31"), + IsRequired = false, + ParseSettingsId = new Guid("f1b027fc-2809-4eaa-9858-c49a8756852f"), + UrlXPath = "//meta[@name='og:image']/@content" + }, + new + { + Id = new Guid("c9ff2c75-e65b-4fb4-a3a0-789c15973fac"), + IsRequired = false, + ParseSettingsId = new Guid("60a60886-4da0-4c2c-8635-a8ec57827667"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("515be790-404d-48ca-8d97-642a505b2149"), + IsRequired = false, + ParseSettingsId = new Guid("5c2d9dff-16d7-47f9-8d32-07f8fb52ac76"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("48dd42bd-47ea-4a97-aeff-bb84db84e6b2"), + IsRequired = false, + ParseSettingsId = new Guid("aed24362-5c8e-4b31-9bbe-bb068f9c0f01"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("fc8fc0b9-ccd3-4dcf-9b07-1e7031097188"), + IsRequired = false, + ParseSettingsId = new Guid("d477dceb-5655-432b-8bca-b2ca2d944d87"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("64c04564-82ae-449f-9264-840c277b648c"), + IsRequired = false, + ParseSettingsId = new Guid("e4542056-2c68-43c6-a85c-9e4899556800"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("baa19068-8f2f-445e-8450-27967074fac5"), + IsRequired = false, + ParseSettingsId = new Guid("921d7c0a-c084-4188-b243-d08580f65142"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("b28db8a4-5df8-4f99-9d5e-7013a3d053c8"), + IsRequired = false, + ParseSettingsId = new Guid("11795391-d20d-48df-ab38-30f796737a43"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("7d69c14b-403d-4216-ac58-f66c87bee0c8"), + IsRequired = false, + ParseSettingsId = new Guid("f63d1e4f-e82d-4020-8b9c-65beaab1d7c3"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("a8742001-52bb-4beb-852c-913eff64dceb"), + IsRequired = false, + ParseSettingsId = new Guid("3c4ef27a-3157-4eff-a441-1e409c4b6c34"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("3238cb06-5baa-4d87-a6a7-d3b826c1da59"), + IsRequired = false, + ParseSettingsId = new Guid("2de49bdd-5c36-49ff-9a3b-a1f6ceb75e75"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("375e4eca-f067-486a-a3cd-5045165dd9e1"), + IsRequired = false, + ParseSettingsId = new Guid("76b3ad9b-48c5-4f9e-ab28-993ba795fdb1"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("679b3f84-a212-422b-a41d-3544ae6c997a"), + IsRequired = false, + ParseSettingsId = new Guid("2d46f779-c13c-4699-9460-629e254a6444"), + UrlXPath = "//meta[@name='og:image']/@content" + }, + new + { + Id = new Guid("1f4694bc-c0d7-405c-ae73-88053c0ebc14"), + IsRequired = false, + ParseSettingsId = new Guid("e3fcdd00-2152-4d84-8f8c-bf70e4996990"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("da259816-c238-4a5e-af4b-be606546572f"), + IsRequired = false, + ParseSettingsId = new Guid("613dbfcf-7f5c-4060-a92a-d2ec7586f4a3"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("f30aba5c-0d63-4f7b-9f68-1dc1629cd449"), + IsRequired = false, + ParseSettingsId = new Guid("32cad97f-b071-4e24-bdc9-10e5e58cf99b"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("efc3e79b-1827-40e8-a072-7f1cac6e991b"), + IsRequired = false, + ParseSettingsId = new Guid("692ba156-95b9-4a24-9b0c-71b769e8d3a8"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("1927aaba-9fb9-4caf-a3f6-1586a082e21a"), + IsRequired = false, + ParseSettingsId = new Guid("49c1bb0c-b546-4142-a7ba-4925f71a933c"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("bf4cfe59-066b-4d7c-ab2c-ca2690648826"), + IsRequired = false, + ParseSettingsId = new Guid("be3e061e-25f4-4b43-a9f6-45db165b6000"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("3291c20c-0487-47a3-a428-fdcb0bdde0b6"), + IsRequired = false, + ParseSettingsId = new Guid("cba88caa-d8af-4e40-b8fa-14946187e939"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("6f3531a6-db42-459a-ab24-08493edc3ac0"), + IsRequired = false, + ParseSettingsId = new Guid("611bd50e-69f5-4598-8ad6-8b19771f1044"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("0da669ee-feb9-4403-bc90-9af266fab309"), + IsRequired = false, + ParseSettingsId = new Guid("5726d5dd-18ac-4c5c-a5d1-f775f1dd0b20"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("a6d5c07c-a1a6-4b00-9b58-babe896712fb"), + IsRequired = false, + ParseSettingsId = new Guid("fa16a108-45c2-42e4-8323-b1f3ea3cdf46"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("b9639099-40e4-4346-93ed-1aa69d2fd95c"), + IsRequired = false, + ParseSettingsId = new Guid("d36d75dc-add7-4e21-8a31-2f40f4033b14"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("e9c5bd35-588d-49c8-b0d0-3eda43d0afea"), + IsRequired = false, + ParseSettingsId = new Guid("14db83c2-cee9-47a2-b8fc-210bbbd399aa"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("84f20ff4-fb12-45de-b7de-e9d7844f6935"), + IsRequired = false, + ParseSettingsId = new Guid("a7d88817-12e6-434a-8c25-949dde2609f4"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("181a1d07-35cc-4e75-9a36-330c319c6590"), + IsRequired = false, + ParseSettingsId = new Guid("c965a1d0-83b6-4018-a4a5-9c426a02943e"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("9fcdbc5c-80af-454f-84f8-a8411f6b0184"), + IsRequired = false, + ParseSettingsId = new Guid("52ac2f5a-3b95-4adc-9c2a-abd192a1ec26"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("2b7405f0-8db7-447b-a239-4b8454cba04b"), + IsRequired = false, + ParseSettingsId = new Guid("289bab5a-8dd4-4ca7-a510-ff6a496b3993"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("6d23a40c-508d-4914-9c4e-4ca0e9db1985"), + IsRequired = false, + ParseSettingsId = new Guid("6d16ec92-860e-4bd8-9618-1e5b2ac5a792"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("99e62b88-dd05-4581-a2e1-eb1f2616a05f"), + IsRequired = false, + ParseSettingsId = new Guid("a03ca9fd-6e2d-4da5-9017-5feb6a9a1404"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("b1ce7387-38c3-475c-a085-0984b9ba8b00"), + IsRequired = false, + ParseSettingsId = new Guid("dd419d1c-db40-4fd4-8f12-34206242d7cc"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("d8dc9296-e936-406b-aad9-916f05f1b3fe"), + IsRequired = false, + ParseSettingsId = new Guid("6a7db6d7-c4ec-471c-93e2-9f7b9dd9180c"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("8c523334-f94b-4c87-ae3d-a6d749bc29b9"), + IsRequired = false, + ParseSettingsId = new Guid("32b2600c-03b7-4d2d-ace8-77b11e1a5041"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("e5f37d04-6aa1-4e5c-b850-387388d0c62e"), + IsRequired = false, + ParseSettingsId = new Guid("00a974a4-e223-45fb-965e-97269039d94a"), + UrlXPath = "//meta[@property='og:image']/@content" + }, + new + { + Id = new Guid("eb0cb4fc-8982-465c-87a0-d5a83e2c579a"), + IsRequired = false, + ParseSettingsId = new Guid("1a5ca4c2-2984-4c52-9fa2-d7f564fd6add"), + UrlXPath = "//meta[@property='og:image']/@content" + }); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsParsePublishedAtSettings", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uuid") + .HasColumnName("id"); + + b.Property("IsRequired") + .HasColumnType("boolean") + .HasColumnName("is_required"); + + b.Property("ParseSettingsId") + .HasColumnType("uuid") + .HasColumnName("parse_settings_id"); + + b.Property("PublishedAtCultureInfo") + .IsRequired() + .HasColumnType("text") + .HasColumnName("published_at_culture_info"); + + b.Property("PublishedAtTimeZoneInfoId") + .HasColumnType("text") + .HasColumnName("published_at_time_zone_info_id"); + + b.Property("PublishedAtXPath") + .IsRequired() + .HasColumnType("text") + .HasColumnName("published_at_x_path"); + + b.HasKey("Id") + .HasName("pk_news_parse_published_at_settings"); + + b.HasIndex("ParseSettingsId") + .IsUnique() + .HasDatabaseName("ix_news_parse_published_at_settings_parse_settings_id"); + + b.ToTable("news_parse_published_at_settings", (string)null); + + b.HasData( + new + { + Id = new Guid("b5afbf6f-9a28-4814-8ec0-80b43048c284"), + IsRequired = true, + ParseSettingsId = new Guid("9d11efde-ae9c-42a7-ac57-649bf5891e8a"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtTimeZoneInfoId = "Russian Standard Time", + PublishedAtXPath = "//meta[@property='article:published_time']/@content" + }, + new + { + Id = new Guid("a17cf1af-be32-4074-9b36-6f5481ecbf14"), + IsRequired = true, + ParseSettingsId = new Guid("da641510-f1dd-4fce-b895-cbf32dca79bf"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtXPath = "//meta[@name='mediator_published_time']/@content" + }, + new + { + Id = new Guid("076e2817-f0e0-4f4a-ae55-08210a7e1a7d"), + IsRequired = true, + ParseSettingsId = new Guid("28bff881-79f7-400c-ab5d-489176c269bb"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtTimeZoneInfoId = "UTC", + PublishedAtXPath = "//div[contains(@class, 'NewsHeader')]//div[contains(@class, 'PublishedMark')]//span[@ca-ts]/text()" + }, + new + { + Id = new Guid("b2514b4f-e07a-44e1-977b-9013bd07ea0c"), + IsRequired = true, + ParseSettingsId = new Guid("a39fd0cf-d695-451a-8ec5-b662eddf4e9e"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtTimeZoneInfoId = "Russian Standard Time", + PublishedAtXPath = "//div[@class='topic-page__header']//a[contains(@class, 'topic-header__time')]/text()" + }, + new + { + Id = new Guid("e07f5d48-7c9a-4425-ae9f-788d26a63f23"), + IsRequired = true, + ParseSettingsId = new Guid("52014d82-bd2b-47fb-9ba1-668df2126197"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtTimeZoneInfoId = "Russian Standard Time", + PublishedAtXPath = "//meta[@property='article:published_time']/@content" + }, + new + { + Id = new Guid("21890de7-31ad-4c9e-a749-05f565d45905"), + IsRequired = true, + ParseSettingsId = new Guid("e8ea5810-3cc4-46dd-84d7-eb7b5cbf3f3b"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtTimeZoneInfoId = "Russian Standard Time", + PublishedAtXPath = "//meta[@name='article:published_time']/@content" + }, + new + { + Id = new Guid("6f87ed33-a16c-465a-8784-33c69ef9bb0c"), + IsRequired = true, + ParseSettingsId = new Guid("929687ee-eb6f-4e95-852d-9635657d7f89"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtXPath = "//div[@class='article__header__info-block']/time[@class='article__header__date']/@datetime" + }, + new + { + Id = new Guid("dc0d0ef7-eb9e-4632-b75e-9d7d9ba44daa"), + IsRequired = true, + ParseSettingsId = new Guid("8c399ef5-9d29-4442-a621-52867b8e7f6d"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtXPath = "//header[@class='news-item__header']//time/@content" + }, + new + { + Id = new Guid("47328c5f-5e86-4b2d-be25-fe9198a946fc"), + IsRequired = true, + ParseSettingsId = new Guid("efd9bf27-abb2-46c2-bedb-dc7e745e55fb"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtXPath = "//meta[@property='article:published_time']/@content" + }, + new + { + Id = new Guid("00106a66-61a0-4abd-b58e-9f9b4ed2c07d"), + IsRequired = true, + ParseSettingsId = new Guid("9de1ef08-878b-4559-85af-a8b14d7ce68b"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtXPath = "//meta[@property='article:published_time']/@content" + }, + new + { + Id = new Guid("a4130bc3-4c5f-451f-92f1-73e1c1745fc6"), + IsRequired = true, + ParseSettingsId = new Guid("4c29ab0b-01eb-466e-8dc3-fe05886f4332"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtXPath = "//meta[@property='article:published_time']/@content" + }, + new + { + Id = new Guid("20903a2a-fdf2-4909-8478-bbfd57c492be"), + IsRequired = true, + ParseSettingsId = new Guid("77a6c5a1-b883-444f-ba7e-f0289943947f"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtTimeZoneInfoId = "Russian Standard Time", + PublishedAtXPath = "//meta[@property='article:published_time']/@content" + }, + new + { + Id = new Guid("89fc1310-fff8-4cdc-aff5-c4285f9ab73c"), + IsRequired = true, + ParseSettingsId = new Guid("68faffa0-b7e6-44bb-a958-441eb532bfbb"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtTimeZoneInfoId = "Russian Standard Time", + PublishedAtXPath = "//div[@class='b-text__date']/text()" + }, + new + { + Id = new Guid("4a6be1f2-8429-4185-a9c6-03aeda076dcd"), + IsRequired = true, + ParseSettingsId = new Guid("f6ef6598-401b-4cd8-8654-f3009b41593f"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtTimeZoneInfoId = "Russian Standard Time", + PublishedAtXPath = "//p[@class='b-material__date']/text()" + }, + new + { + Id = new Guid("f02b9ed4-7b5b-4572-bf74-604513ced86b"), + IsRequired = true, + ParseSettingsId = new Guid("a1b03754-30d4-4c65-946d-10995830a159"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtTimeZoneInfoId = "Russian Standard Time", + PublishedAtXPath = "//article/div[@class='header']/span/text()" + }, + new + { + Id = new Guid("a5685486-3a98-45aa-96b7-d25cd5e40c5d"), + IsRequired = true, + ParseSettingsId = new Guid("052241f9-e3e7-4722-9f56-7202de4a331e"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtTimeZoneInfoId = "Russian Standard Time", + PublishedAtXPath = "//article//header//time[@class='article-head__date']/text()" + }, + new + { + Id = new Guid("4a335cad-bc2f-442e-9c89-74da04bbde90"), + IsRequired = true, + ParseSettingsId = new Guid("3373c5b8-57e2-402b-9dfb-a0ae19e92336"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtXPath = "//meta[@property='article:published_time']/@content" + }, + new + { + Id = new Guid("82ed5673-25e2-497f-aaea-3dd42ecd4f85"), + IsRequired = true, + ParseSettingsId = new Guid("44d47f91-a811-4cc3-a70f-f12236d1476d"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtXPath = "//div[contains(@class, 'article-entry')]//div[@class='entry-info']/span[@itemprop='datePublished']/@content" + }, + new + { + Id = new Guid("fed30888-ff5a-4843-8a23-fa452ed88675"), + IsRequired = true, + ParseSettingsId = new Guid("96ef6e5b-c81b-45e7-a715-1aa131d82ef2"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtTimeZoneInfoId = "Russian Standard Time", + PublishedAtXPath = "//div[@class='b-article__top-author']/p[@class='date']/text()" + }, + new + { + Id = new Guid("2622b86a-c47b-4143-a11e-f2aad18faa8e"), + IsRequired = false, + ParseSettingsId = new Guid("f1b027fc-2809-4eaa-9858-c49a8756852f"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtTimeZoneInfoId = "Russian Standard Time", + PublishedAtXPath = "//div[contains(@class, 'pubdatetime')]//div[contains(@class, 'badge-time')]//text()" + }, + new + { + Id = new Guid("b208c066-da95-4c32-baec-ff448a07f62d"), + IsRequired = true, + ParseSettingsId = new Guid("60a60886-4da0-4c2c-8635-a8ec57827667"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtXPath = "//meta[@itemprop='dateModified']/@content" + }, + new + { + Id = new Guid("e762bdb6-dfae-410b-9478-3ff4b45dbe70"), + IsRequired = true, + ParseSettingsId = new Guid("5c2d9dff-16d7-47f9-8d32-07f8fb52ac76"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtTimeZoneInfoId = "Russian Standard Time", + PublishedAtXPath = "//meta[@itemprop='datePublished']/@content" + }, + new + { + Id = new Guid("a2c411a5-4b6a-4ed8-b383-b1a4f05b4605"), + IsRequired = true, + ParseSettingsId = new Guid("aed24362-5c8e-4b31-9bbe-bb068f9c0f01"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtXPath = "//meta[@property='article:published_time']/@content" + }, + new + { + Id = new Guid("3f29a12c-5e1c-45de-bf8b-96897f8ac962"), + IsRequired = true, + ParseSettingsId = new Guid("d477dceb-5655-432b-8bca-b2ca2d944d87"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtXPath = "//div[@class='publication-info']/time[@itemprop='datePublished']/@datetime" + }, + new + { + Id = new Guid("79e88ebb-d542-4d19-a212-6c21f2688c77"), + IsRequired = true, + ParseSettingsId = new Guid("e4542056-2c68-43c6-a85c-9e4899556800"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtXPath = "//meta[@itemprop='datePublished']/@content" + }, + new + { + Id = new Guid("c00312de-2ba3-4047-b80c-e5624577ad29"), + IsRequired = true, + ParseSettingsId = new Guid("921d7c0a-c084-4188-b243-d08580f65142"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtXPath = "//meta[@itemprop='datePublished']/@content" + }, + new + { + Id = new Guid("da19d28d-156b-47a0-868b-18f4ec0c8114"), + IsRequired = true, + ParseSettingsId = new Guid("11795391-d20d-48df-ab38-30f796737a43"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtXPath = "//meta[@property='article:published_time']/@content" + }, + new + { + Id = new Guid("5c23cab5-7864-429b-9080-ba88f81c6751"), + IsRequired = true, + ParseSettingsId = new Guid("f63d1e4f-e82d-4020-8b9c-65beaab1d7c3"), + PublishedAtCultureInfo = "en-US", + PublishedAtTimeZoneInfoId = "Central Europe Standard Time", + PublishedAtXPath = "//article//div[@class='article-info']/div[@class='date']/text()" + }, + new + { + Id = new Guid("ccc2a5c5-02fd-4a8d-ace5-7f41742f442b"), + IsRequired = true, + ParseSettingsId = new Guid("3c4ef27a-3157-4eff-a441-1e409c4b6c34"), + PublishedAtCultureInfo = "en-US", + PublishedAtXPath = "//meta[@property='article:published_time']/@content" + }, + new + { + Id = new Guid("1fe09b4f-73bd-4979-8206-439489299a64"), + IsRequired = true, + ParseSettingsId = new Guid("2de49bdd-5c36-49ff-9a3b-a1f6ceb75e75"), + PublishedAtCultureInfo = "en-US", + PublishedAtXPath = "//meta[@property='article:published_time']/@content" + }, + new + { + Id = new Guid("d153a1fc-66c6-4313-adc9-36850ec82124"), + IsRequired = true, + ParseSettingsId = new Guid("76b3ad9b-48c5-4f9e-ab28-993ba795fdb1"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtTimeZoneInfoId = "Russian Standard Time", + PublishedAtXPath = "//meta[@property='article:published_time']/@content" + }, + new + { + Id = new Guid("c6115996-838b-4309-813e-d520085af7df"), + IsRequired = true, + ParseSettingsId = new Guid("e3fcdd00-2152-4d84-8f8c-bf70e4996990"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtTimeZoneInfoId = "Russian Standard Time", + PublishedAtXPath = "//div[@class='article-details']/span[@class='article-details__time']/time/@datetime" + }, + new + { + Id = new Guid("8208ff9e-fbf8-4206-b4d8-e7f7287b2dec"), + IsRequired = true, + ParseSettingsId = new Guid("613dbfcf-7f5c-4060-a92a-d2ec7586f4a3"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtTimeZoneInfoId = "Russian Standard Time", + PublishedAtXPath = "//span[@class='date']/time/@datetime" + }, + new + { + Id = new Guid("8bf5f85a-aba6-48a5-8704-3f6c4f51d9d1"), + IsRequired = true, + ParseSettingsId = new Guid("32cad97f-b071-4e24-bdc9-10e5e58cf99b"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtXPath = "//meta[@property='article:published_time']/@content" + }, + new + { + Id = new Guid("9bfd49d6-dcb9-4a65-80f5-c9ac3b6b490d"), + IsRequired = true, + ParseSettingsId = new Guid("692ba156-95b9-4a24-9b0c-71b769e8d3a8"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtTimeZoneInfoId = "Russian Standard Time", + PublishedAtXPath = "//meta[@itemprop='datePublished']/@content" + }, + new + { + Id = new Guid("e6bd53e0-c868-451c-87a5-e048343b2759"), + IsRequired = true, + ParseSettingsId = new Guid("49c1bb0c-b546-4142-a7ba-4925f71a933c"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtXPath = "//meta[@itemprop='datePublished']/@content" + }, + new + { + Id = new Guid("0cea5575-ec4f-4b14-a0cc-49185e1d1768"), + IsRequired = true, + ParseSettingsId = new Guid("cba88caa-d8af-4e40-b8fa-14946187e939"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtXPath = "//meta[@property='article:published_time']/@content" + }, + new + { + Id = new Guid("f3f8cc16-9599-42fa-acea-c66be06e0d13"), + IsRequired = true, + ParseSettingsId = new Guid("5726d5dd-18ac-4c5c-a5d1-f775f1dd0b20"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtTimeZoneInfoId = "Russian Standard Time", + PublishedAtXPath = "//meta[@property='article:published_time']/@content" + }, + new + { + Id = new Guid("cbe14234-0158-487c-b0c0-2117107b9a34"), + IsRequired = true, + ParseSettingsId = new Guid("fa16a108-45c2-42e4-8323-b1f3ea3cdf46"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtTimeZoneInfoId = "Russian Standard Time", + PublishedAtXPath = "//section[contains(@class, 'news-content')]/div[@class='content-top']//p[contains(@class, 'content-top__date')]/text()" + }, + new + { + Id = new Guid("fdad3f1e-646d-4fe0-b46f-cf5a2d320981"), + IsRequired = true, + ParseSettingsId = new Guid("d36d75dc-add7-4e21-8a31-2f40f4033b14"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtXPath = "//meta[@itemprop='datePublished']/@content" + }, + new + { + Id = new Guid("f4df8c3f-efa8-4fa5-bb34-91942ecec22a"), + IsRequired = true, + ParseSettingsId = new Guid("a7d88817-12e6-434a-8c25-949dde2609f4"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtXPath = "//meta[@itemprop='datePublished']/@content" + }, + new + { + Id = new Guid("8ff05689-5c68-4f41-9023-4bfead386fed"), + IsRequired = true, + ParseSettingsId = new Guid("c965a1d0-83b6-4018-a4a5-9c426a02943e"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtTimeZoneInfoId = "Russian Standard Time", + PublishedAtXPath = "//span[@class='submitted-by']/text()" + }, + new + { + Id = new Guid("eaf8f8a4-7781-4285-b447-1e3309b2edbf"), + IsRequired = true, + ParseSettingsId = new Guid("52ac2f5a-3b95-4adc-9c2a-abd192a1ec26"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtTimeZoneInfoId = "Russian Standard Time", + PublishedAtXPath = "//meta[@property='article:published_time']/@content" + }, + new + { + Id = new Guid("22c82c40-fe3a-4394-ab34-295e3c094dcf"), + IsRequired = true, + ParseSettingsId = new Guid("289bab5a-8dd4-4ca7-a510-ff6a496b3993"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtTimeZoneInfoId = "Russian Standard Time", + PublishedAtXPath = "//div[@id='content']//div[contains(@class, 'topic')]/ul[contains(@class, 'blog_more')]//li[@class='date']/text()" + }, + new + { + Id = new Guid("80bc5b20-336c-4ac1-9ee0-e231d0ef74c7"), + IsRequired = true, + ParseSettingsId = new Guid("6d16ec92-860e-4bd8-9618-1e5b2ac5a792"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtTimeZoneInfoId = "Russian Standard Time", + PublishedAtXPath = "//span[@id='publication-date']/text()" + }, + new + { + Id = new Guid("d3c31d01-f7fd-42e6-8378-3df623d1fc09"), + IsRequired = true, + ParseSettingsId = new Guid("a03ca9fd-6e2d-4da5-9017-5feb6a9a1404"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtTimeZoneInfoId = "Russian Standard Time", + PublishedAtXPath = "//div[@class='newsDetail-body__item-subHeader']/time/text()" + }, + new + { + Id = new Guid("3785f3c0-c9d3-4e29-a0b8-46fa78983506"), + IsRequired = true, + ParseSettingsId = new Guid("dd419d1c-db40-4fd4-8f12-34206242d7cc"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtTimeZoneInfoId = "Russian Standard Time", + PublishedAtXPath = "//meta[@property='article:published_time']/@content" + }, + new + { + Id = new Guid("5e7874b1-13e9-4cf5-a96a-6612fe3661cf"), + IsRequired = true, + ParseSettingsId = new Guid("6a7db6d7-c4ec-471c-93e2-9f7b9dd9180c"), + PublishedAtCultureInfo = "ru-RU", + PublishedAtTimeZoneInfoId = "UTC", + PublishedAtXPath = "//div[@class='GeneralMaterial-module-materialHeader']//div[contains(@class, 'MetaItem-module_datetime')]/time/text()" + }, + new + { + Id = new Guid("74a87f1a-0325-4690-8c87-8ba4d24e078b"), + IsRequired = true, + ParseSettingsId = new Guid("32b2600c-03b7-4d2d-ace8-77b11e1a5041"), + PublishedAtCultureInfo = "en-US", + PublishedAtXPath = "//meta[@property='article:published_time']/@content" + }, + new + { + Id = new Guid("21813794-9df2-4993-a696-a65ee04af666"), + IsRequired = true, + ParseSettingsId = new Guid("00a974a4-e223-45fb-965e-97269039d94a"), + PublishedAtCultureInfo = "en-US", + PublishedAtXPath = "//meta[@name='dcterms.created']/@content" + }, + new + { + Id = new Guid("2dfea686-66c2-4b59-86cf-01fdce1da6c5"), + IsRequired = true, + ParseSettingsId = new Guid("1a5ca4c2-2984-4c52-9fa2-d7f564fd6add"), + PublishedAtCultureInfo = "en-US", + PublishedAtTimeZoneInfoId = "Eastern Standard Time", + PublishedAtXPath = "//div[@class='story-meta']//p[@class='story-meta__timestamp']/time/@datetime" + }); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsParsePublishedAtSettingsFormat", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uuid") + .HasColumnName("id"); + + b.Property("Format") + .IsRequired() + .HasColumnType("text") + .HasColumnName("format"); + + b.Property("NewsParsePublishedAtSettingsId") + .HasColumnType("uuid") + .HasColumnName("news_parse_published_at_settings_id"); + + b.HasKey("Id") + .HasName("pk_news_parse_published_at_settings_formats"); + + b.HasIndex("NewsParsePublishedAtSettingsId") + .HasDatabaseName("ix_news_parse_published_at_settings_formats_news_parse_publish"); + + b.ToTable("news_parse_published_at_settings_formats", (string)null); + + b.HasData( + new + { + Id = new Guid("fdae85e3-de1e-4d29-a496-fa6ffedc616a"), + Format = "yyyyMMddTHHmm", + NewsParsePublishedAtSettingsId = new Guid("b5afbf6f-9a28-4814-8ec0-80b43048c284") + }, + new + { + Id = new Guid("56366b43-4d17-44a6-9bdd-1cb63ec7dcfb"), + Format = "yyyy-MM-ddTHH:mm:sszzz", + NewsParsePublishedAtSettingsId = new Guid("a17cf1af-be32-4074-9b36-6f5481ecbf14") + }, + new + { + Id = new Guid("da39c45c-178d-4b8c-8944-9d77de2690d0"), + Format = "d MMMM yyyy, HH:mm", + NewsParsePublishedAtSettingsId = new Guid("076e2817-f0e0-4f4a-ae55-08210a7e1a7d") + }, + new + { + Id = new Guid("2f4dba30-cd44-4a34-a28b-50d3d6db53d1"), + Format = "d MMMM yyyy, HH:mm,", + NewsParsePublishedAtSettingsId = new Guid("076e2817-f0e0-4f4a-ae55-08210a7e1a7d") + }, + new + { + Id = new Guid("509eae6c-481c-4a9d-9a9a-bd20b2ae533e"), + Format = "d MMMM, HH:mm", + NewsParsePublishedAtSettingsId = new Guid("076e2817-f0e0-4f4a-ae55-08210a7e1a7d") + }, + new + { + Id = new Guid("3d264810-c568-4d66-9762-43c1467a6cd2"), + Format = "d MMMM, HH:mm,", + NewsParsePublishedAtSettingsId = new Guid("076e2817-f0e0-4f4a-ae55-08210a7e1a7d") + }, + new + { + Id = new Guid("013ad3fa-fc09-4bce-a62a-5b23dfaf4b55"), + Format = "HH:mm, d MMMM yyyy", + NewsParsePublishedAtSettingsId = new Guid("b2514b4f-e07a-44e1-977b-9013bd07ea0c") + }, + new + { + Id = new Guid("bd0d7dc4-64d5-4daa-a89d-ca0609a09d29"), + Format = "yyyy-MM-ddTHH:mm:ss", + NewsParsePublishedAtSettingsId = new Guid("e07f5d48-7c9a-4425-ae9f-788d26a63f23") + }, + new + { + Id = new Guid("098793a2-d99d-494b-afba-e727e26214b7"), + Format = "yyyy-MM-ddTHH:mm:ss\"+0300\"", + NewsParsePublishedAtSettingsId = new Guid("21890de7-31ad-4c9e-a749-05f565d45905") + }, + new + { + Id = new Guid("7a4a173c-cad8-4a09-adef-caecda7f5283"), + Format = "yyyy-MM-ddTHH:mm:sszzz", + NewsParsePublishedAtSettingsId = new Guid("6f87ed33-a16c-465a-8784-33c69ef9bb0c") + }, + new + { + Id = new Guid("a614d044-0c1d-4a5a-b547-a22ec2fdd1c0"), + Format = "yyyy-MM-ddTHH:mm:sszzz", + NewsParsePublishedAtSettingsId = new Guid("dc0d0ef7-eb9e-4632-b75e-9d7d9ba44daa") + }, + new + { + Id = new Guid("cdc7b365-0e9b-405d-b948-4c074942dcc3"), + Format = "yyyy-MM-ddTHH:mm:sszzz", + NewsParsePublishedAtSettingsId = new Guid("47328c5f-5e86-4b2d-be25-fe9198a946fc") + }, + new + { + Id = new Guid("d647a983-f4e1-4610-9ee7-5d8163fdd865"), + Format = "yyyy-MM-ddTHH:mm:sszzz", + NewsParsePublishedAtSettingsId = new Guid("00106a66-61a0-4abd-b58e-9f9b4ed2c07d") + }, + new + { + Id = new Guid("490ce35b-c2e5-4008-93f1-632720e22073"), + Format = "yyyy-MM-ddTHH:mmzzz", + NewsParsePublishedAtSettingsId = new Guid("a4130bc3-4c5f-451f-92f1-73e1c1745fc6") + }, + new + { + Id = new Guid("c0ff192d-ad34-459b-8fe8-49d20e6c5f41"), + Format = "yyyy-MM-dd HH:mm:ss", + NewsParsePublishedAtSettingsId = new Guid("20903a2a-fdf2-4909-8478-bbfd57c492be") + }, + new + { + Id = new Guid("558de16f-ff6b-412c-9526-c6dd265565f4"), + Format = "d MMMM yyyy HH:mm", + NewsParsePublishedAtSettingsId = new Guid("89fc1310-fff8-4cdc-aff5-c4285f9ab73c") + }, + new + { + Id = new Guid("d7afea6f-76d6-4684-86ce-f4d232f21786"), + Format = "d MMMM HH:mm", + NewsParsePublishedAtSettingsId = new Guid("89fc1310-fff8-4cdc-aff5-c4285f9ab73c") + }, + new + { + Id = new Guid("b871e83e-0792-470a-8610-4264a83c16b1"), + Format = "dd MMMM yyyy, HH:mm", + NewsParsePublishedAtSettingsId = new Guid("4a6be1f2-8429-4185-a9c6-03aeda076dcd") + }, + new + { + Id = new Guid("6c0231f6-71e1-4911-959c-9c93c1408781"), + Format = "dd MMMM, HH:mm", + NewsParsePublishedAtSettingsId = new Guid("4a6be1f2-8429-4185-a9c6-03aeda076dcd") + }, + new + { + Id = new Guid("7b5a7ff9-dc44-4399-8049-30505337726e"), + Format = "HH:mm", + NewsParsePublishedAtSettingsId = new Guid("4a6be1f2-8429-4185-a9c6-03aeda076dcd") + }, + new + { + Id = new Guid("8e6578d8-62d7-4761-a9a2-60e8cfd4da58"), + Format = "d MMMM yyyy, HH:mm\" •\"", + NewsParsePublishedAtSettingsId = new Guid("f02b9ed4-7b5b-4572-bf74-604513ced86b") + }, + new + { + Id = new Guid("a3e3e93d-5850-4f27-885b-d80d10d72a8e"), + Format = "d MMMM yyyy, HH:mm \"МСК\"", + NewsParsePublishedAtSettingsId = new Guid("a5685486-3a98-45aa-96b7-d25cd5e40c5d") + }, + new + { + Id = new Guid("715c49ba-24ae-40af-b0b5-cacd488cb00e"), + Format = "yyyy-MM-ddTHH:mm:sszzz", + NewsParsePublishedAtSettingsId = new Guid("4a335cad-bc2f-442e-9c89-74da04bbde90") + }, + new + { + Id = new Guid("04d00724-05cc-4ca5-a951-889b75da6f97"), + Format = "yyyy-MM-ddTHH:mm:sszzz", + NewsParsePublishedAtSettingsId = new Guid("82ed5673-25e2-497f-aaea-3dd42ecd4f85") + }, + new + { + Id = new Guid("63435dc7-a82d-43d8-80e9-f5e1307ec3ab"), + Format = "d MMMM yyyy \"в\" HH:mm", + NewsParsePublishedAtSettingsId = new Guid("fed30888-ff5a-4843-8a23-fa452ed88675") + }, + new + { + Id = new Guid("04fe3029-59e0-4670-9a51-99593a0f8041"), + Format = "yyyy-MM-dd HH:mm:ss", + NewsParsePublishedAtSettingsId = new Guid("2622b86a-c47b-4143-a11e-f2aad18faa8e") + }, + new + { + Id = new Guid("5161d08b-a97d-4fa1-ad5a-069c3b5dc41a"), + Format = "yyyy-MM-ddTHH:mm:sszzz", + NewsParsePublishedAtSettingsId = new Guid("b208c066-da95-4c32-baec-ff448a07f62d") + }, + new + { + Id = new Guid("3d3f9878-e5a6-4163-acb9-afe1346b3cf2"), + Format = "yyyy-MM-ddTHH:mm:ss", + NewsParsePublishedAtSettingsId = new Guid("e762bdb6-dfae-410b-9478-3ff4b45dbe70") + }, + new + { + Id = new Guid("94e51912-995a-4976-a4a0-4cc03ffe4e82"), + Format = "yyyy-MM-ddTHH:mm:ssZ", + NewsParsePublishedAtSettingsId = new Guid("a2c411a5-4b6a-4ed8-b383-b1a4f05b4605") + }, + new + { + Id = new Guid("0b9c2546-034c-44d5-b328-fc29b3b96db4"), + Format = "yyyy-MM-ddTHH:mm:sszzz", + NewsParsePublishedAtSettingsId = new Guid("3f29a12c-5e1c-45de-bf8b-96897f8ac962") + }, + new + { + Id = new Guid("78b09bbf-a311-4d1a-9d00-d054898f1354"), + Format = "yyyy-MM-ddTHH:mm:sszzz", + NewsParsePublishedAtSettingsId = new Guid("79e88ebb-d542-4d19-a212-6c21f2688c77") + }, + new + { + Id = new Guid("b0dec36b-12b0-4ff1-af8c-7feff35137de"), + Format = "yyyy-MM-ddTHH:mm:sszzz", + NewsParsePublishedAtSettingsId = new Guid("c00312de-2ba3-4047-b80c-e5624577ad29") + }, + new + { + Id = new Guid("6c536ec8-3a65-4fa3-9862-f7744d5b1e1f"), + Format = "yyyy-MM-ddTHH:mm:ss.fffZ", + NewsParsePublishedAtSettingsId = new Guid("da19d28d-156b-47a0-868b-18f4ec0c8114") + }, + new + { + Id = new Guid("055ce086-a067-43f4-98ad-4b3b039328d6"), + Format = "d-M-yyyy HH:mm", + NewsParsePublishedAtSettingsId = new Guid("5c23cab5-7864-429b-9080-ba88f81c6751") + }, + new + { + Id = new Guid("e0b7abad-a103-4050-92c5-36017a518376"), + Format = "yyyy-MM-ddTHH:mm:ss.fffZ", + NewsParsePublishedAtSettingsId = new Guid("ccc2a5c5-02fd-4a8d-ace5-7f41742f442b") + }, + new + { + Id = new Guid("fb9e24ab-9e5b-4641-ac8b-df59d34811d1"), + Format = "yyyy-MM-ddTHH:mm:ss.fffZ", + NewsParsePublishedAtSettingsId = new Guid("1fe09b4f-73bd-4979-8206-439489299a64") + }, + new + { + Id = new Guid("79934951-c9f9-4230-8eb5-2d3a80f4d4f4"), + Format = "yyyy-MM-ddTHH:mm:ss.fff\"Z+0300\"", + NewsParsePublishedAtSettingsId = new Guid("d153a1fc-66c6-4313-adc9-36850ec82124") + }, + new + { + Id = new Guid("9c7e361a-0096-483d-8f8a-edae7e347e1a"), + Format = "d MMMM yyyy", + NewsParsePublishedAtSettingsId = new Guid("c6115996-838b-4309-813e-d520085af7df") + }, + new + { + Id = new Guid("677d695e-ddcc-4a66-aa7f-ff1ccdb726dd"), + Format = "yyyy-MM-dd HH:mm", + NewsParsePublishedAtSettingsId = new Guid("8208ff9e-fbf8-4206-b4d8-e7f7287b2dec") + }, + new + { + Id = new Guid("699ff8c9-5f7e-4216-8e21-23627129bab9"), + Format = "yyyy-MM-ddTHH:mm:sszzz", + NewsParsePublishedAtSettingsId = new Guid("8bf5f85a-aba6-48a5-8704-3f6c4f51d9d1") + }, + new + { + Id = new Guid("d70086c1-dd34-40a7-b8d5-225689fd993c"), + Format = "yyyy-MM-dd", + NewsParsePublishedAtSettingsId = new Guid("9bfd49d6-dcb9-4a65-80f5-c9ac3b6b490d") + }, + new + { + Id = new Guid("95c6753e-1df4-4708-9b80-6976c6b91292"), + Format = "yyyy-MM-ddTHH:mm:ssZ", + NewsParsePublishedAtSettingsId = new Guid("e6bd53e0-c868-451c-87a5-e048343b2759") + }, + new + { + Id = new Guid("6b286540-6b0b-42b6-a696-aed7dd5844c8"), + Format = "yyyy-MM-ddTHH:mm:sszzz", + NewsParsePublishedAtSettingsId = new Guid("0cea5575-ec4f-4b14-a0cc-49185e1d1768") + }, + new + { + Id = new Guid("af484c5e-0924-4f42-bcc5-8c4407ea9a92"), + Format = "yyyy-MM-ddTHH:mm:ss\"+0300\"", + NewsParsePublishedAtSettingsId = new Guid("f3f8cc16-9599-42fa-acea-c66be06e0d13") + }, + new + { + Id = new Guid("c0377df6-a447-44bb-9698-cd37f084d4be"), + Format = "dd.MM.yyyy, HH:mm", + NewsParsePublishedAtSettingsId = new Guid("cbe14234-0158-487c-b0c0-2117107b9a34") + }, + new + { + Id = new Guid("c66b5e6c-d604-4a55-b38f-f9ae415ecd1c"), + Format = "yyyy-MM-ddTHH:mm:sszzz", + NewsParsePublishedAtSettingsId = new Guid("fdad3f1e-646d-4fe0-b46f-cf5a2d320981") + }, + new + { + Id = new Guid("7ff54b73-3ea0-49c6-9702-ad9fe746e1c9"), + Format = "yyyy-MM-ddTHH:mm:sszzz", + NewsParsePublishedAtSettingsId = new Guid("f4df8c3f-efa8-4fa5-bb34-91942ecec22a") + }, + new + { + Id = new Guid("a28a5ac8-e766-4c34-823a-a5703f3ef96b"), + Format = "dd.MM.yyyy \"-\" HH:mm", + NewsParsePublishedAtSettingsId = new Guid("8ff05689-5c68-4f41-9023-4bfead386fed") + }, + new + { + Id = new Guid("05a46c75-81a5-4b37-b01f-7ef41ba35858"), + Format = "yyyy-MM-ddTHH:mm:ss\"+0300\"", + NewsParsePublishedAtSettingsId = new Guid("eaf8f8a4-7781-4285-b447-1e3309b2edbf") + }, + new + { + Id = new Guid("664d9377-1900-4561-aa21-c2b0a7a1f8ac"), + Format = "dd MMMM yyyy, HH:mm", + NewsParsePublishedAtSettingsId = new Guid("22c82c40-fe3a-4394-ab34-295e3c094dcf") + }, + new + { + Id = new Guid("be418012-872b-49b6-bce4-f91a9bf8ef1d"), + Format = "dd.MM.yyyy HH:mm", + NewsParsePublishedAtSettingsId = new Guid("80bc5b20-336c-4ac1-9ee0-e231d0ef74c7") + }, + new + { + Id = new Guid("9b3343e0-5099-4696-a6b4-c00035cc78b3"), + Format = "d MMMM yyyy, HH:mm", + NewsParsePublishedAtSettingsId = new Guid("d3c31d01-f7fd-42e6-8378-3df623d1fc09") + }, + new + { + Id = new Guid("5b48664a-bb06-480d-bbd4-c7acebf918db"), + Format = "yyyyMMddTHHmm", + NewsParsePublishedAtSettingsId = new Guid("3785f3c0-c9d3-4e29-a0b8-46fa78983506") + }, + new + { + Id = new Guid("a9340a6d-ec66-49fc-8150-3a6a698e999e"), + Format = "HH:mm, d MMMM yyyy", + NewsParsePublishedAtSettingsId = new Guid("5e7874b1-13e9-4cf5-a96a-6612fe3661cf") + }, + new + { + Id = new Guid("a77f62ce-bb2c-41a7-8a35-f0aa8147e4de"), + Format = "yyyy-MM-ddTHH:mm:ssZ", + NewsParsePublishedAtSettingsId = new Guid("74a87f1a-0325-4690-8c87-8ba4d24e078b") + }, + new + { + Id = new Guid("5c71bd20-8b52-4291-89a4-8a54bb2e374b"), + Format = "yyyy-MM-ddTHH:mm:sszzz", + NewsParsePublishedAtSettingsId = new Guid("21813794-9df2-4993-a696-a65ee04af666") + }, + new + { + Id = new Guid("0ab06b9d-5327-4461-9493-a01ff9b37dfa"), + Format = "yyyy-MM-dd HH:mm:ss", + NewsParsePublishedAtSettingsId = new Guid("2dfea686-66c2-4b59-86cf-01fdce1da6c5") + }); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsParseSettings", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uuid") + .HasColumnName("id"); + + b.Property("HtmlDescriptionXPath") + .IsRequired() + .HasColumnType("text") + .HasColumnName("html_description_x_path"); + + b.Property("SourceId") + .HasColumnType("uuid") + .HasColumnName("source_id"); + + b.Property("TextDescriptionXPath") + .IsRequired() + .HasColumnType("text") + .HasColumnName("text_description_x_path"); + + b.Property("TitleXPath") + .IsRequired() + .HasColumnType("text") + .HasColumnName("title_x_path"); + + b.HasKey("Id") + .HasName("pk_news_parse_settings"); + + b.HasIndex("SourceId") + .IsUnique() + .HasDatabaseName("ix_news_parse_settings_source_id"); + + b.ToTable("news_parse_settings", (string)null); + + b.HasData( + new + { + Id = new Guid("9d11efde-ae9c-42a7-ac57-649bf5891e8a"), + HtmlDescriptionXPath = "//div[contains(@class, 'article__body')]", + SourceId = new Guid("b8d20577-6c4c-4bd7-a1b1-b58bb4914541"), + TextDescriptionXPath = "//div[contains(@class, 'article__body')]//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("da641510-f1dd-4fce-b895-cbf32dca79bf"), + HtmlDescriptionXPath = "//div[contains(@class, 'article__text ')]", + SourceId = new Guid("5d8e3050-5444-4709-afc3-18a8d46a71ba"), + TextDescriptionXPath = "//div[contains(@class, 'article__text ')]//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("28bff881-79f7-400c-ab5d-489176c269bb"), + HtmlDescriptionXPath = "//article/*", + SourceId = new Guid("7e889af8-0f19-44ab-96d4-241fd64fbcdb"), + TextDescriptionXPath = "//article/*//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("a39fd0cf-d695-451a-8ec5-b662eddf4e9e"), + HtmlDescriptionXPath = "//div[@class='topic-body__content']", + SourceId = new Guid("fb2f8557-ca7e-4ce2-86dd-b8a94ee02275"), + TextDescriptionXPath = "//div[@class='topic-body__content']//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("52014d82-bd2b-47fb-9ba1-668df2126197"), + HtmlDescriptionXPath = "//div[contains(@class, 'PageContentCommonStyling_text')]/*[not(name() = 'rg-video')]", + SourceId = new Guid("31b6f068-3f00-4250-bc74-62146525ba95"), + TextDescriptionXPath = "//div[contains(@class, 'PageContentCommonStyling_text')]/*[not(name() = 'rg-video')]//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("e8ea5810-3cc4-46dd-84d7-eb7b5cbf3f3b"), + HtmlDescriptionXPath = "//div[@class='article_text']", + SourceId = new Guid("9268835d-553d-4fbe-a0cb-0545b8019c68"), + TextDescriptionXPath = "//div[@class='article_text']//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("929687ee-eb6f-4e95-852d-9635657d7f89"), + HtmlDescriptionXPath = "//div[@class='article__text article__text_free']/*[not(contains(@class, 'article__text__overview')) and not(contains(@class, 'article__main-image'))]", + SourceId = new Guid("950d59d6-d94c-4396-a55e-cbcd2a9b533c"), + TextDescriptionXPath = "//div[@class='article__text article__text_free']/*[not(contains(@class, 'article__text__overview')) and not(contains(@class, 'article__main-image'))]//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("8c399ef5-9d29-4442-a621-52867b8e7f6d"), + HtmlDescriptionXPath = "//div[contains(@class, 'news-item__content')]", + SourceId = new Guid("3e1f065a-c135-4429-941e-d870886b4147"), + TextDescriptionXPath = "//div[contains(@class, 'news-item__content')]//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("efd9bf27-abb2-46c2-bedb-dc7e745e55fb"), + HtmlDescriptionXPath = "//div[@class='article_text_wrapper js-search-mark']/*[not(contains(@class, 'doc__text document_authors'))]", + SourceId = new Guid("baaa533a-cb1a-46e7-bb9e-79d631affc87"), + TextDescriptionXPath = "//div[@class='article_text_wrapper js-search-mark']/*[not(contains(@class, 'doc__text document_authors'))]//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("9de1ef08-878b-4559-85af-a8b14d7ce68b"), + HtmlDescriptionXPath = "//div[@itemprop='articleBody']/*", + SourceId = new Guid("31252741-4d0b-448f-b85c-d6538f7ca565"), + TextDescriptionXPath = "//div[@itemprop='articleBody']//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("4c29ab0b-01eb-466e-8dc3-fe05886f4332"), + HtmlDescriptionXPath = "//div[@class='article__content']/*[not(contains(@class, 'article__title')) and not(contains(@class, 'article__intro'))]", + SourceId = new Guid("3b8c9766-f5d5-44ec-a014-45ddce4a9a0c"), + TextDescriptionXPath = "//div[@class='article__content']/*[not(contains(@class, 'article__title')) and not(contains(@class, 'article__intro'))]//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("77a6c5a1-b883-444f-ba7e-f0289943947f"), + HtmlDescriptionXPath = "//div[@class='js-mediator-article']", + SourceId = new Guid("fc0a229f-bde4-4f61-b4eb-75d1285665dd"), + TextDescriptionXPath = "//div[@class='js-mediator-article']//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("68faffa0-b7e6-44bb-a958-441eb532bfbb"), + HtmlDescriptionXPath = "//div[@class='b-text__content']/div[contains(@class, 'b-text__block')]", + SourceId = new Guid("6854c858-b82d-44f5-bb48-620c9bf9825d"), + TextDescriptionXPath = "//div[@class='b-text__content']/div[contains(@class, 'b-text__block')]//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("f6ef6598-401b-4cd8-8654-f3009b41593f"), + HtmlDescriptionXPath = "//div[@class='b-material-body']/div/*[not(@class='b-material-incut-m-image')]", + SourceId = new Guid("3e24ec11-86a4-4db8-9337-35a00988da7d"), + TextDescriptionXPath = "//div[@class='b-material-body']/div/*[not(@class='b-material-incut-m-image')]//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("a1b03754-30d4-4c65-946d-10995830a159"), + HtmlDescriptionXPath = "//article/div[@class='news_text']", + SourceId = new Guid("e2ce0a01-9d10-4133-a989-618739aa3854"), + TextDescriptionXPath = "//article/div[@class='news_text']//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("052241f9-e3e7-4722-9f56-7202de4a331e"), + HtmlDescriptionXPath = "//article/div[@class='article-content']/*[not(@class)]", + SourceId = new Guid("49bcf6b7-15bc-4f30-a3d6-3c88837aa039"), + TextDescriptionXPath = "//article/div[@class='article-content']/*[not(@class)]//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("3373c5b8-57e2-402b-9dfb-a0ae19e92336"), + HtmlDescriptionXPath = "//div[contains(@class, 'styles_bodyWrapper')]/div[not(@class)]", + SourceId = new Guid("170a9aef-a708-41a4-8370-a8526f2c055f"), + TextDescriptionXPath = "//div[contains(@class, 'styles_bodyWrapper')]/div[not(@class)]//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("44d47f91-a811-4cc3-a70f-f12236d1476d"), + HtmlDescriptionXPath = "//div[contains(@class, 'article-entry')]//div[@class='js-mediator-article']/*[position()>4]", + SourceId = new Guid("5aebacd6-b4d5-4839-b2f0-533ff3329941"), + TextDescriptionXPath = "//div[contains(@class, 'article-entry')]//div[@class='js-mediator-article']/*[position()>4 and not(name()='script')]//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("96ef6e5b-c81b-45e7-a715-1aa131d82ef2"), + HtmlDescriptionXPath = "//div[@itemprop='articleBody']/*[position()>2]", + SourceId = new Guid("e023416d-7d91-4d92-bd5f-37d57c54f6b4"), + TextDescriptionXPath = "//div[@itemprop='articleBody']/*[position()>2]//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("f1b027fc-2809-4eaa-9858-c49a8756852f"), + HtmlDescriptionXPath = "//div[contains(@class, 'container-fluid shifted') and not(p[@class='announce lead']) and not(h1) and not(hr)]", + SourceId = new Guid("604e9548-9b99-4bd4-ab90-4bf90b4a1807"), + TextDescriptionXPath = "//div[contains(@class, 'container-fluid shifted') and not(p[@class='announce lead']) and not(h1) and not(hr)]//text()", + TitleXPath = "//meta[@name='og:title']/@content" + }, + new + { + Id = new Guid("60a60886-4da0-4c2c-8635-a8ec57827667"), + HtmlDescriptionXPath = "//div[@itemprop='articleBody']/*", + SourceId = new Guid("cc29eb91-2efb-4d57-8d14-bb5356cbfbb8"), + TextDescriptionXPath = "//div[@itemprop='articleBody']/*//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("5c2d9dff-16d7-47f9-8d32-07f8fb52ac76"), + HtmlDescriptionXPath = "//article[@itemprop='articleBody']/*[not(name() = 'h1') and not(name() = 'aside') and not(name() = 'meta') and not(name() = 'link') and not(@itemprop)]", + SourceId = new Guid("57597b92-2b9d-422e-b0a7-9b11326c879b"), + TextDescriptionXPath = "//article[@itemprop='articleBody']/*[not(name() = 'h1') and not(name() = 'aside') and not(name() = 'meta') and not(name() = 'link') and not(@itemprop)]//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("aed24362-5c8e-4b31-9bbe-bb068f9c0f01"), + HtmlDescriptionXPath = "//div[contains(@class, 'full-article')]/*[not(name()='h1') and not(name()='style') and not(name()='div')]", + SourceId = new Guid("13f235b7-a6f6-4da4-83a1-13b5af26700a"), + TextDescriptionXPath = "//div[contains(@class, 'full-article')]/*[not(name()='h1') and not(name()='style') and not(name()='div')]//text()", + TitleXPath = "//meta[@name='title']/@content" + }, + new + { + Id = new Guid("d477dceb-5655-432b-8bca-b2ca2d944d87"), + HtmlDescriptionXPath = "//div[@itemprop='articleBody']/*[not(name()='div')]", + SourceId = new Guid("e16286a8-78a9-4b86-ba4b-c844f7099336"), + TextDescriptionXPath = "//div[@itemprop='articleBody']/*[not(name()='div')]//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("e4542056-2c68-43c6-a85c-9e4899556800"), + HtmlDescriptionXPath = "//div[@itemprop='articleBody']/*[not(name()='figure' and position()=1)]", + SourceId = new Guid("321e1615-6328-4532-85ac-22d53d59c164"), + TextDescriptionXPath = "//div[@itemprop='articleBody']/*[not(name()='figure') and not(lazyhydrate)]//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("921d7c0a-c084-4188-b243-d08580f65142"), + HtmlDescriptionXPath = "//div[@itemprop='articleBody']/*", + SourceId = new Guid("70873440-0058-4669-aa74-352489f9e6da"), + TextDescriptionXPath = "//div[@itemprop='articleBody']/*//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("11795391-d20d-48df-ab38-30f796737a43"), + HtmlDescriptionXPath = "//div[contains(@class, 'js-mediator-article')]/*[position()>1]", + SourceId = new Guid("797060c0-3b47-4654-9176-32d719baad69"), + TextDescriptionXPath = "//div[contains(@class, 'js-mediator-article')]/*[position()>1]//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("f63d1e4f-e82d-4020-8b9c-65beaab1d7c3"), + HtmlDescriptionXPath = "//article//div[@class='newstext-con']/*[position()>2]", + SourceId = new Guid("e4b3e286-3589-49de-892b-d0d06e719115"), + TextDescriptionXPath = "//article//div[@class='newstext-con']/*[position()>2]//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("3c4ef27a-3157-4eff-a441-1e409c4b6c34"), + HtmlDescriptionXPath = "//section[@name='articleBody']/*", + SourceId = new Guid("136c7569-601c-4f16-9ca4-bd14bfa8c16a"), + TextDescriptionXPath = "//section[@name='articleBody']/*//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("2de49bdd-5c36-49ff-9a3b-a1f6ceb75e75"), + HtmlDescriptionXPath = "//div[@itemprop='articleBody']/*", + SourceId = new Guid("5c3b0099-2a8a-49a5-8c68-d24ebc9fac07"), + TextDescriptionXPath = "//div[@itemprop='articleBody']/*//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("76b3ad9b-48c5-4f9e-ab28-993ba795fdb1"), + HtmlDescriptionXPath = "//div[@data-gtm-el='content-body']/*[not(name()='div' and @data-wide='true')]", + SourceId = new Guid("cb68ce1c-c741-41df-a1c9-8ce34529b421"), + TextDescriptionXPath = "//div[@data-gtm-el='content-body']/*[not(name()='div' and @data-wide='true')]//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("2d46f779-c13c-4699-9460-629e254a6444"), + HtmlDescriptionXPath = "//div[contains(@class, 'styled__StoryBody')]/*[not(name()='p' and contains(@class, 'styled__StoryParagraph') and position()=1) and not(name()='div' and contains(@class, 'styled__StoryImgContainer') and position()=2)]", + SourceId = new Guid("a71c23bf-67e9-4955-bc8e-6226bd86ba90"), + TextDescriptionXPath = "//div[contains(@class, 'styled__StoryBody')]/*[not(name()='p' and contains(@class, 'styled__StoryParagraph') and position()=1) and not(name()='div' and contains(@class, 'styled__StoryImgContainer') and position()=2)]//text()", + TitleXPath = "//meta[@name='og:title']/@content" + }, + new + { + Id = new Guid("e3fcdd00-2152-4d84-8f8c-bf70e4996990"), + HtmlDescriptionXPath = "//section[@itemprop='articleBody']/*", + SourceId = new Guid("454f4f08-58cf-4ab7-9012-1e5ba663570c"), + TextDescriptionXPath = "//section[@itemprop='articleBody']/*[not(name()='script')]//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("613dbfcf-7f5c-4060-a92a-d2ec7586f4a3"), + HtmlDescriptionXPath = "//div[contains(@class, 'material-content')]/*", + SourceId = new Guid("dac8cec6-c84d-4287-b0b9-71f4cf304c7e"), + TextDescriptionXPath = "//div[contains(@class, 'material-content')]/p//text()", + TitleXPath = "//a[@class='header']/text()" + }, + new + { + Id = new Guid("32cad97f-b071-4e24-bdc9-10e5e58cf99b"), + HtmlDescriptionXPath = "//div[@class='textart']/div[not(@class)]/*", + SourceId = new Guid("296270ec-026b-4011-83ff-1466ba577864"), + TextDescriptionXPath = "//div[@class='textart']/div[not(@class)]//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("692ba156-95b9-4a24-9b0c-71b769e8d3a8"), + HtmlDescriptionXPath = "//div[@class='material-7days__paragraf-content']/*[not(name()='div' and @itemprop='image' and position()=1)]", + SourceId = new Guid("ba078388-eedf-4ccb-af5f-3f686f4ece4a"), + TextDescriptionXPath = "//div[@class='material-7days__paragraf-content']//p//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("49c1bb0c-b546-4142-a7ba-4925f71a933c"), + HtmlDescriptionXPath = "//section[@itemprop='articleBody']/div[@class='ds-article-content-block-and-creative-container' and position()>1]", + SourceId = new Guid("05765a1b-b174-4ad1-9f63-3189a52303f9"), + TextDescriptionXPath = "//section[@itemprop='articleBody']/div[@class='ds-article-content-block-and-creative-container' and position()>1]//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("be3e061e-25f4-4b43-a9f6-45db165b6000"), + HtmlDescriptionXPath = "//section[contains(@class, '_page-section')]/div[contains(@class, '_content_')]/*", + SourceId = new Guid("b5594347-6ec0-44c0-b381-7ae47f04fa56"), + TextDescriptionXPath = "//section[contains(@class, '_page-section')]/div[contains(@class, '_content_')]/*[contains(@class, '_text_')]//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("cba88caa-d8af-4e40-b8fa-14946187e939"), + HtmlDescriptionXPath = "//div[@class='widgets__item__text__inside']/*", + SourceId = new Guid("c169d8ad-a9fe-44e9-af6a-fd337ae10000"), + TextDescriptionXPath = "//div[@class='widgets__item__text__inside']//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("611bd50e-69f5-4598-8ad6-8b19771f1044"), + HtmlDescriptionXPath = "//div[@class='only__text']/*", + SourceId = new Guid("c7b863af-0565-4bec-9238-9383272637ef"), + TextDescriptionXPath = "//div[@class='only__text']/*[not(name()='script')]//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("5726d5dd-18ac-4c5c-a5d1-f775f1dd0b20"), + HtmlDescriptionXPath = "//div[@id='article_body']/*", + SourceId = new Guid("33b14253-7c02-4b79-8490-c8ed10312230"), + TextDescriptionXPath = "//div[@id='article_body']//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("fa16a108-45c2-42e4-8323-b1f3ea3cdf46"), + HtmlDescriptionXPath = "//div[@class='news-content__body']//div[contains(@class, 'content-text')]/*", + SourceId = new Guid("6c5fe2d4-8547-4fb0-8966-d148f8d77af7"), + TextDescriptionXPath = "//div[@class='news-content__body']//div[contains(@class, 'content-text')]//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("d36d75dc-add7-4e21-8a31-2f40f4033b14"), + HtmlDescriptionXPath = "//section[@itemprop='articleBody']/*", + SourceId = new Guid("068fb7bb-4b76-4261-bc9a-274625fe8890"), + TextDescriptionXPath = "//section[@itemprop='articleBody']//p//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("14db83c2-cee9-47a2-b8fc-210bbbd399aa"), + HtmlDescriptionXPath = "//div[@class='article-text']/*[not(name()='div' and @class='picture-wrapper')]", + SourceId = new Guid("60747323-2a4c-44e1-880d-7e5e36642645"), + TextDescriptionXPath = "//div[@class='article-text']/*[not(name()='div' and @class='picture-wrapper')]//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("a7d88817-12e6-434a-8c25-949dde2609f4"), + HtmlDescriptionXPath = "//span[@itemprop='articleBody']/*", + SourceId = new Guid("2fa2ff6a-9a8b-4a2d-b0e4-6e7e14679236"), + TextDescriptionXPath = "//span[@itemprop='articleBody']//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("c965a1d0-83b6-4018-a4a5-9c426a02943e"), + HtmlDescriptionXPath = "//div[contains(@class, 'field-type-text-long')]/*", + SourceId = new Guid("b2fb23b4-3f6d-440c-9ec0-99216f233fd0"), + TextDescriptionXPath = "//div[contains(@class, 'field-type-text-long')]//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("52ac2f5a-3b95-4adc-9c2a-abd192a1ec26"), + HtmlDescriptionXPath = "//div[@itemprop='articleBody']/*", + SourceId = new Guid("b9ec9be8-e1f2-49d6-b461-b61872bb369c"), + TextDescriptionXPath = "//div[@itemprop='articleBody']//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("289bab5a-8dd4-4ca7-a510-ff6a496b3993"), + HtmlDescriptionXPath = "//div[@id='content']//div[contains(@class, 'topic')]/div[@class='content']/*", + SourceId = new Guid("65141fc2-760f-4866-86c5-08cc764cabac"), + TextDescriptionXPath = "//div[@id='content']//div[contains(@class, 'topic')]/div[@class='content']//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("6d16ec92-860e-4bd8-9618-1e5b2ac5a792"), + HtmlDescriptionXPath = "//div[contains(@class, 'finfin-local-plugin-publication-item-item-')]/*", + SourceId = new Guid("9e3453b3-be81-4f3b-93da-45192677c6a9"), + TextDescriptionXPath = "//div[contains(@class, 'finfin-local-plugin-publication-item-item-')]//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("a03ca9fd-6e2d-4da5-9017-5feb6a9a1404"), + HtmlDescriptionXPath = "//div[@class='newsDetail-content__info']/*[not(name()='h1') and not(name()='h5')]", + SourceId = new Guid("9519622d-50f0-4a8d-8728-c58c12255b6f"), + TextDescriptionXPath = "//div[@class='newsDetail-content__info']/*[not(name()='h1') and not(name()='h5')]//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("dd419d1c-db40-4fd4-8f12-34206242d7cc"), + HtmlDescriptionXPath = "//div[contains(@class, 'article__body')]/*", + SourceId = new Guid("1994c4bc-aeb9-4242-81df-5bafffca6fd0"), + TextDescriptionXPath = "//div[contains(@class, 'article__body')]//*[not(name()='script')]/text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("6a7db6d7-c4ec-471c-93e2-9f7b9dd9180c"), + HtmlDescriptionXPath = "//div[@class='GeneralMaterial-module-article']/*[position()>1]", + SourceId = new Guid("3a346f18-1781-408b-bc8d-2f8e4cbc64ea"), + TextDescriptionXPath = "//div[@class='GeneralMaterial-module-article']/*[position()>1]//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("32b2600c-03b7-4d2d-ace8-77b11e1a5041"), + HtmlDescriptionXPath = "//section[contains(@class, 'entry__content-list js-entry-content')]/*[not(contains(@class, 'cli-embed--header-media')) and not(contains(@class, 'cli-support-huffpost'))]", + SourceId = new Guid("1f913a9a-4e5a-4925-89c1-51e985f63e9d"), + TextDescriptionXPath = "//section[contains(@class, 'entry__content-list js-entry-content')]/*[not(contains(@class, 'cli-embed--header-media')) and not(contains(@class, 'cli-support-huffpost'))]/p//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("00a974a4-e223-45fb-965e-97269039d94a"), + HtmlDescriptionXPath = "//div[@class='article-body']//div[contains(@class, 'paywall')]/*", + SourceId = new Guid("e5afb99f-47ff-4822-89fa-2ff8859a5c42"), + TextDescriptionXPath = "//div[@class='article-body']//div[contains(@class, 'paywall')]//p/text()", + TitleXPath = "//meta[@property='og:title']/@content" + }, + new + { + Id = new Guid("1a5ca4c2-2984-4c52-9fa2-d7f564fd6add"), + HtmlDescriptionXPath = "//div[@class='sidebar-grid__content article__content']", + SourceId = new Guid("7c0ac71c-0e8e-425b-ac26-424b152415f5"), + TextDescriptionXPath = "//div[@class='sidebar-grid__content article__content']//text()", + TitleXPath = "//meta[@property='og:title']/@content" + }); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsParseSubTitleSettings", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uuid") + .HasColumnName("id"); + + b.Property("IsRequired") + .HasColumnType("boolean") + .HasColumnName("is_required"); + + b.Property("ParseSettingsId") + .HasColumnType("uuid") + .HasColumnName("parse_settings_id"); + + b.Property("TitleXPath") + .IsRequired() + .HasColumnType("text") + .HasColumnName("title_x_path"); + + b.HasKey("Id") + .HasName("pk_news_parse_sub_title_settings"); + + b.HasIndex("ParseSettingsId") + .IsUnique() + .HasDatabaseName("ix_news_parse_sub_title_settings_parse_settings_id"); + + b.ToTable("news_parse_sub_title_settings", (string)null); + + b.HasData( + new + { + Id = new Guid("5118a64e-b1fe-4226-b0f6-da9d0eb13ed0"), + IsRequired = false, + ParseSettingsId = new Guid("9d11efde-ae9c-42a7-ac57-649bf5891e8a"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("0c0b371b-5c93-4577-b625-7d520237ce5d"), + IsRequired = false, + ParseSettingsId = new Guid("da641510-f1dd-4fce-b895-cbf32dca79bf"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("c8a3d258-c774-4ac2-85ae-08f7ede167d4"), + IsRequired = false, + ParseSettingsId = new Guid("28bff881-79f7-400c-ab5d-489176c269bb"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("527db9fa-2e2a-4f4e-b9eb-b9055994211f"), + IsRequired = false, + ParseSettingsId = new Guid("a39fd0cf-d695-451a-8ec5-b662eddf4e9e"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("f179e895-457c-4ccf-88ff-b4562edb1f33"), + IsRequired = false, + ParseSettingsId = new Guid("52014d82-bd2b-47fb-9ba1-668df2126197"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("de397d9b-55d7-45f3-b03b-66584a58d137"), + IsRequired = false, + ParseSettingsId = new Guid("e8ea5810-3cc4-46dd-84d7-eb7b5cbf3f3b"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("07eddb61-de8e-46d8-ae6a-8f146d04e693"), + IsRequired = false, + ParseSettingsId = new Guid("929687ee-eb6f-4e95-852d-9635657d7f89"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("30955c5b-0b5c-4655-9581-4972b4fc0df5"), + IsRequired = false, + ParseSettingsId = new Guid("8c399ef5-9d29-4442-a621-52867b8e7f6d"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("b07f324a-9029-4214-8521-01187ec7376d"), + IsRequired = false, + ParseSettingsId = new Guid("efd9bf27-abb2-46c2-bedb-dc7e745e55fb"), + TitleXPath = "//meta[@name='description']/@content" + }, + new + { + Id = new Guid("ee437f1b-e11b-48cd-9db5-645c3537edf1"), + IsRequired = false, + ParseSettingsId = new Guid("9de1ef08-878b-4559-85af-a8b14d7ce68b"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("0f75da21-14e8-47a2-81e2-01c5e05b5f9f"), + IsRequired = false, + ParseSettingsId = new Guid("4c29ab0b-01eb-466e-8dc3-fe05886f4332"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("48759786-80ce-4ea1-84c2-f5cbb3b3e9d9"), + IsRequired = false, + ParseSettingsId = new Guid("77a6c5a1-b883-444f-ba7e-f0289943947f"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("e20418bb-871d-4c31-a56b-9038d36a37e1"), + IsRequired = false, + ParseSettingsId = new Guid("68faffa0-b7e6-44bb-a958-441eb532bfbb"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("8cb13ca5-b19a-47dd-93f4-13f82a2afaab"), + IsRequired = false, + ParseSettingsId = new Guid("f6ef6598-401b-4cd8-8654-f3009b41593f"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("4087fb58-d428-4c26-b88d-b20e5715a6f8"), + IsRequired = false, + ParseSettingsId = new Guid("a1b03754-30d4-4c65-946d-10995830a159"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("86d2ce89-f28a-4779-be9c-1832701f99d4"), + IsRequired = false, + ParseSettingsId = new Guid("052241f9-e3e7-4722-9f56-7202de4a331e"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("60431c05-e7a1-4c09-a2d3-940896b52565"), + IsRequired = false, + ParseSettingsId = new Guid("3373c5b8-57e2-402b-9dfb-a0ae19e92336"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("4a01f0ed-4373-4b4c-be4c-5d8b23cd7b4b"), + IsRequired = false, + ParseSettingsId = new Guid("44d47f91-a811-4cc3-a70f-f12236d1476d"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("df87f204-4c84-408d-b84b-392e39d40b1f"), + IsRequired = false, + ParseSettingsId = new Guid("96ef6e5b-c81b-45e7-a715-1aa131d82ef2"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("1f572948-8062-4f2a-9603-54fd0815ff44"), + IsRequired = false, + ParseSettingsId = new Guid("f1b027fc-2809-4eaa-9858-c49a8756852f"), + TitleXPath = "//meta[@name='og:description']/@content" + }, + new + { + Id = new Guid("34d00cc0-a590-4e50-a6d8-6c4c7511c4d8"), + IsRequired = false, + ParseSettingsId = new Guid("60a60886-4da0-4c2c-8635-a8ec57827667"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("552e2547-f0f4-4536-ac2b-0368eb0d03c6"), + IsRequired = false, + ParseSettingsId = new Guid("5c2d9dff-16d7-47f9-8d32-07f8fb52ac76"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("c4d81a5f-b716-4dec-9ddf-3c908343be6a"), + IsRequired = false, + ParseSettingsId = new Guid("aed24362-5c8e-4b31-9bbe-bb068f9c0f01"), + TitleXPath = "//meta[@name='description']/@content" + }, + new + { + Id = new Guid("c4ac25c5-d5da-4126-b298-8803c12b4930"), + IsRequired = false, + ParseSettingsId = new Guid("d477dceb-5655-432b-8bca-b2ca2d944d87"), + TitleXPath = "//meta[@itemprop='description']/@content" + }, + new + { + Id = new Guid("7e4b4a81-f9e7-4830-9127-6fd86379db9a"), + IsRequired = false, + ParseSettingsId = new Guid("e4542056-2c68-43c6-a85c-9e4899556800"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("6996d64b-f805-4868-a6d1-6d287f568e83"), + IsRequired = false, + ParseSettingsId = new Guid("921d7c0a-c084-4188-b243-d08580f65142"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("051b16f3-07e7-49c7-ae63-d49e01d685e6"), + IsRequired = false, + ParseSettingsId = new Guid("11795391-d20d-48df-ab38-30f796737a43"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("15009b74-1ebf-4de7-b127-24e412d887b1"), + IsRequired = false, + ParseSettingsId = new Guid("f63d1e4f-e82d-4020-8b9c-65beaab1d7c3"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("75075f9b-f14d-4720-8311-933ae0383523"), + IsRequired = false, + ParseSettingsId = new Guid("3c4ef27a-3157-4eff-a441-1e409c4b6c34"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("f32f03ee-4548-4259-ac50-d791451cb1d7"), + IsRequired = false, + ParseSettingsId = new Guid("2de49bdd-5c36-49ff-9a3b-a1f6ceb75e75"), + TitleXPath = "//meta[@name='description']/@content" + }, + new + { + Id = new Guid("e68f6ef8-cd76-4fc8-b98b-cb2bc02c3dfd"), + IsRequired = false, + ParseSettingsId = new Guid("76b3ad9b-48c5-4f9e-ab28-993ba795fdb1"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("e250183d-d316-4ef3-b7cf-887ce77ac342"), + IsRequired = false, + ParseSettingsId = new Guid("2d46f779-c13c-4699-9460-629e254a6444"), + TitleXPath = "//div[contains(@class, 'styled__StoryBody')]/p[contains(@class, 'styled__StoryParagraph') and position()=1]/text()" + }, + new + { + Id = new Guid("999110e1-29e6-4a98-8361-743dd7f8bf07"), + IsRequired = false, + ParseSettingsId = new Guid("e3fcdd00-2152-4d84-8f8c-bf70e4996990"), + TitleXPath = "//meta[@name='description']/@content" + }, + new + { + Id = new Guid("c694b06f-3d99-4ec4-b939-374b524b728f"), + IsRequired = false, + ParseSettingsId = new Guid("613dbfcf-7f5c-4060-a92a-d2ec7586f4a3"), + TitleXPath = "//meta[@name='description']/@content" + }, + new + { + Id = new Guid("9e43be0a-592d-4c1a-8525-9545d8fada04"), + IsRequired = false, + ParseSettingsId = new Guid("32cad97f-b071-4e24-bdc9-10e5e58cf99b"), + TitleXPath = "//div[@class='block-page-new']/h2/text()" + }, + new + { + Id = new Guid("255720d2-2188-4d40-ac74-86e2f87c78c7"), + IsRequired = false, + ParseSettingsId = new Guid("692ba156-95b9-4a24-9b0c-71b769e8d3a8"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("e3d307d2-0cd5-42d2-9c7c-2fab779bb299"), + IsRequired = false, + ParseSettingsId = new Guid("49c1bb0c-b546-4142-a7ba-4925f71a933c"), + TitleXPath = "//p[contains(@itemprop, 'alternativeHeadline')]/text()" + }, + new + { + Id = new Guid("568f8fd4-3715-4895-a979-509ce2da11e2"), + IsRequired = false, + ParseSettingsId = new Guid("be3e061e-25f4-4b43-a9f6-45db165b6000"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("19df7bef-b4dd-4a35-991a-49c9a28ebfeb"), + IsRequired = false, + ParseSettingsId = new Guid("cba88caa-d8af-4e40-b8fa-14946187e939"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("eb234374-29cf-43b4-ae0f-5e8a80aaf132"), + IsRequired = false, + ParseSettingsId = new Guid("611bd50e-69f5-4598-8ad6-8b19771f1044"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("b96057cb-5a77-4785-a20d-c7bbb0c4752e"), + IsRequired = false, + ParseSettingsId = new Guid("5726d5dd-18ac-4c5c-a5d1-f775f1dd0b20"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("7d88f1e1-8458-403d-8d83-3d076b4cedd4"), + IsRequired = false, + ParseSettingsId = new Guid("fa16a108-45c2-42e4-8323-b1f3ea3cdf46"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("2656349d-0958-4779-a36a-cca96fe04b6a"), + IsRequired = false, + ParseSettingsId = new Guid("d36d75dc-add7-4e21-8a31-2f40f4033b14"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("4b514907-cb5c-4b5c-aaa9-1d581955c40b"), + IsRequired = false, + ParseSettingsId = new Guid("14db83c2-cee9-47a2-b8fc-210bbbd399aa"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("45ebf04d-7b70-4c43-882d-af3d6ac3c687"), + IsRequired = false, + ParseSettingsId = new Guid("a7d88817-12e6-434a-8c25-949dde2609f4"), + TitleXPath = "//meta[@name='description']/@content" + }, + new + { + Id = new Guid("191181df-86e6-43c2-9643-5e9bb0ad62ac"), + IsRequired = false, + ParseSettingsId = new Guid("c965a1d0-83b6-4018-a4a5-9c426a02943e"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("c8e216e4-355b-42c5-babf-cb9ae005b27c"), + IsRequired = false, + ParseSettingsId = new Guid("52ac2f5a-3b95-4adc-9c2a-abd192a1ec26"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("a33df3a5-b0b4-4c61-8978-67452ed955c9"), + IsRequired = false, + ParseSettingsId = new Guid("289bab5a-8dd4-4ca7-a510-ff6a496b3993"), + TitleXPath = "//meta[@name='DESCRIPTION']/@content" + }, + new + { + Id = new Guid("688c8958-8946-4e0c-a943-3a614eedf013"), + IsRequired = false, + ParseSettingsId = new Guid("6d16ec92-860e-4bd8-9618-1e5b2ac5a792"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("a811b3a1-c233-4875-9930-b99032c4fe99"), + IsRequired = false, + ParseSettingsId = new Guid("a03ca9fd-6e2d-4da5-9017-5feb6a9a1404"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("cbcb009b-37f0-4cf5-882c-df9a9e7dc908"), + IsRequired = false, + ParseSettingsId = new Guid("dd419d1c-db40-4fd4-8f12-34206242d7cc"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("4ff736eb-a44a-4880-aa4f-f70988527bfe"), + IsRequired = false, + ParseSettingsId = new Guid("6a7db6d7-c4ec-471c-93e2-9f7b9dd9180c"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("82bb1ac2-5fbb-4240-bca2-5417604ec562"), + IsRequired = false, + ParseSettingsId = new Guid("32b2600c-03b7-4d2d-ace8-77b11e1a5041"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("ef3237fa-b43a-4deb-b9d1-2e0b64d98a2a"), + IsRequired = false, + ParseSettingsId = new Guid("00a974a4-e223-45fb-965e-97269039d94a"), + TitleXPath = "//meta[@property='og:description']/@content" + }, + new + { + Id = new Guid("f7cd72a9-93c2-4f46-b76c-65cbe87a49ef"), + IsRequired = false, + ParseSettingsId = new Guid("1a5ca4c2-2984-4c52-9fa2-d7f564fd6add"), + TitleXPath = "//meta[@property='og:description']/@content" + }); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsParseVideoSettings", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uuid") + .HasColumnName("id"); + + b.Property("IsRequired") + .HasColumnType("boolean") + .HasColumnName("is_required"); + + b.Property("ParseSettingsId") + .HasColumnType("uuid") + .HasColumnName("parse_settings_id"); + + b.Property("UrlXPath") + .IsRequired() + .HasColumnType("text") + .HasColumnName("url_x_path"); + + b.HasKey("Id") + .HasName("pk_news_parse_video_settings"); + + b.HasIndex("ParseSettingsId") + .IsUnique() + .HasDatabaseName("ix_news_parse_video_settings_parse_settings_id"); + + b.ToTable("news_parse_video_settings", (string)null); + + b.HasData( + new + { + Id = new Guid("f3733384-2b0f-4b5e-bf44-040e6452b896"), + IsRequired = false, + ParseSettingsId = new Guid("9d11efde-ae9c-42a7-ac57-649bf5891e8a"), + UrlXPath = "//div[@class='article__header']//div[@class='media__video']//video/@src" + }, + new + { + Id = new Guid("55100c78-3692-482c-af91-808f1a4f29a4"), + IsRequired = false, + ParseSettingsId = new Guid("a39fd0cf-d695-451a-8ec5-b662eddf4e9e"), + UrlXPath = "//div[contains(@class, 'eagleplayer')]//video/@src" + }, + new + { + Id = new Guid("8bface35-e140-4937-8b51-06597bcfc862"), + IsRequired = false, + ParseSettingsId = new Guid("52014d82-bd2b-47fb-9ba1-668df2126197"), + UrlXPath = "//div[contains(@class, 'PageContentCommonStyling_text')]/rg-video//video/@src" + }, + new + { + Id = new Guid("4d2c5172-fc50-4854-bd47-44511c0fd763"), + IsRequired = false, + ParseSettingsId = new Guid("4c29ab0b-01eb-466e-8dc3-fe05886f4332"), + UrlXPath = "//meta[@property='og:video']/@content" + }, + new + { + Id = new Guid("f0a8b4c3-22d5-4aa7-be0c-0250cfa04d53"), + IsRequired = false, + ParseSettingsId = new Guid("f6ef6598-401b-4cd8-8654-f3009b41593f"), + UrlXPath = "//meta[@property='og:video:url']/@content" + }, + new + { + Id = new Guid("b5ff5316-a5a2-44b7-855f-7af3788ab3e9"), + IsRequired = false, + ParseSettingsId = new Guid("f63d1e4f-e82d-4020-8b9c-65beaab1d7c3"), + UrlXPath = "//article//div[@class='videoWrapper' and @itemprop='video']/iframe[@class='video']/@src" + }, + new + { + Id = new Guid("5a25f140-9895-4deb-9e9e-d048799446d3"), + IsRequired = false, + ParseSettingsId = new Guid("5726d5dd-18ac-4c5c-a5d1-f775f1dd0b20"), + UrlXPath = "//meta[@property='og:video']/@content" + }); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsPicture", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uuid") + .HasColumnName("id"); + + b.Property("NewsId") + .HasColumnType("uuid") + .HasColumnName("news_id"); + + b.Property("Url") + .IsRequired() + .HasColumnType("text") + .HasColumnName("url"); + + b.HasKey("Id") + .HasName("pk_news_pictures"); + + b.HasIndex("NewsId") + .IsUnique() + .HasDatabaseName("ix_news_pictures_news_id"); + + b.ToTable("news_pictures", (string)null); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsReaction", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uuid") + .HasColumnName("id"); + + b.Property("IpAddress") + .IsRequired() + .HasColumnType("text") + .HasColumnName("ip_address"); + + b.Property("NewsId") + .HasColumnType("uuid") + .HasColumnName("news_id"); + + b.Property("ReactedAt") + .HasColumnType("timestamp with time zone") + .HasColumnName("reacted_at"); + + b.Property("ReactionId") + .HasColumnType("uuid") + .HasColumnName("reaction_id"); + + b.HasKey("Id") + .HasName("pk_news_reactions"); + + b.HasIndex("IpAddress") + .HasDatabaseName("ix_news_reactions_ip_address"); + + b.HasIndex("NewsId") + .HasDatabaseName("ix_news_reactions_news_id"); + + b.HasIndex("ReactedAt") + .HasDatabaseName("ix_news_reactions_reacted_at"); + + b.HasIndex("ReactionId") + .HasDatabaseName("ix_news_reactions_reaction_id"); + + b.ToTable("news_reactions", (string)null); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsSearchSettings", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uuid") + .HasColumnName("id"); + + b.Property("NewsSiteUrl") + .IsRequired() + .HasColumnType("text") + .HasColumnName("news_site_url"); + + b.Property("NewsUrlXPath") + .IsRequired() + .HasColumnType("text") + .HasColumnName("news_url_x_path"); + + b.Property("SourceId") + .HasColumnType("uuid") + .HasColumnName("source_id"); + + b.HasKey("Id") + .HasName("pk_news_search_settings"); + + b.HasIndex("SourceId") + .IsUnique() + .HasDatabaseName("ix_news_search_settings_source_id"); + + b.ToTable("news_search_settings", (string)null); + + b.HasData( + new + { + Id = new Guid("bea34033-d382-4e18-9957-ad079cdb9a61"), + NewsSiteUrl = "https://ria.ru/", + NewsUrlXPath = "//a[contains(@class, 'cell-list__item-link')]/@href", + SourceId = new Guid("b8d20577-6c4c-4bd7-a1b1-b58bb4914541") + }, + new + { + Id = new Guid("84cb0a27-b2ef-4cd4-93d2-fcb0fdecf1d0"), + NewsSiteUrl = "https://russian.rt.com/", + NewsUrlXPath = "//a[contains(@class, 'link') and contains(@href, 'news/')]/@href", + SourceId = new Guid("5d8e3050-5444-4709-afc3-18a8d46a71ba") + }, + new + { + Id = new Guid("022c7083-ea41-4e42-b40e-a0d72dfb7956"), + NewsSiteUrl = "https://tass.ru/", + NewsUrlXPath = "//a[contains(@class, 'tass_pkg_link-v5WdK') and contains(substring(@href, 2), '/') and not(contains(@href, '/spec/')) and not(contains(@href, 'spec.tass.ru'))]/@href", + SourceId = new Guid("7e889af8-0f19-44ab-96d4-241fd64fbcdb") + }, + new + { + Id = new Guid("25667b44-614f-4c19-ad74-3be0c5f8c743"), + NewsSiteUrl = "https://lenta.ru/", + NewsUrlXPath = "//a[starts-with(@href, '/news/')]/@href", + SourceId = new Guid("fb2f8557-ca7e-4ce2-86dd-b8a94ee02275") + }, + new + { + Id = new Guid("938c857a-640d-413d-98bf-1f5c1872dbae"), + NewsSiteUrl = "https://rg.ru/", + NewsUrlXPath = "//a[contains(@href, '.html')]/@href", + SourceId = new Guid("31b6f068-3f00-4250-bc74-62146525ba95") + }, + new + { + Id = new Guid("1dde178c-c061-428a-b0e3-1d7b7ddc5c7b"), + NewsSiteUrl = "https://aif.ru/", + NewsUrlXPath = "//span[contains(@class, 'item_text__title')]/../@href", + SourceId = new Guid("9268835d-553d-4fbe-a0cb-0545b8019c68") + }, + new + { + Id = new Guid("0f9c275f-d418-4fea-abbf-ad3cda6d678c"), + NewsSiteUrl = "https://www.rbc.ru/", + NewsUrlXPath = "//a[contains(@href, 'https://www.rbc.ru/') and contains(@href, '?from=')]/@href", + SourceId = new Guid("950d59d6-d94c-4396-a55e-cbcd2a9b533c") + }, + new + { + Id = new Guid("d292849b-0727-4311-b0ff-da147c4d344a"), + NewsSiteUrl = "https://www.sports.ru/news/", + NewsUrlXPath = "//a[contains(@href, '.html') and not(contains(@href, '.html#comments')) and not (contains(@href, '/blogs/'))]/@href", + SourceId = new Guid("3e1f065a-c135-4429-941e-d870886b4147") + }, + new + { + Id = new Guid("465f7ae0-072e-4df3-8d24-7a194b478c2a"), + NewsSiteUrl = "https://www.kommersant.ru/", + NewsUrlXPath = "//a[contains(@href, '/doc/') and contains(@href, '?from=')]/@href", + SourceId = new Guid("baaa533a-cb1a-46e7-bb9e-79d631affc87") + }, + new + { + Id = new Guid("4c8ceb60-a498-4b5a-b574-a84b2d890e59"), + NewsSiteUrl = "https://iz.ru/news/", + NewsUrlXPath = "//a[contains(@href, '?main_click')]/@href", + SourceId = new Guid("31252741-4d0b-448f-b85c-d6538f7ca565") + }, + new + { + Id = new Guid("27aa8343-30f4-40ef-a8ab-20d41e3097c4"), + NewsSiteUrl = "https://tsargrad.tv/", + NewsUrlXPath = "//a[contains(@class, 'news-item__link')]/@href", + SourceId = new Guid("3b8c9766-f5d5-44ec-a014-45ddce4a9a0c") + }, + new + { + Id = new Guid("d9c7c3b0-bdc7-4bcc-afec-9423cb451086"), + NewsSiteUrl = "http://www.belta.by/", + NewsUrlXPath = "//a[contains(@href, 'www.belta.by') and contains(@href, '/view/')]/@href", + SourceId = new Guid("fc0a229f-bde4-4f61-b4eb-75d1285665dd") + }, + new + { + Id = new Guid("beacb8f7-d53b-4785-a799-57b69c4cd3fc"), + NewsSiteUrl = "https://svpressa.ru/all/news/", + NewsUrlXPath = "//a[contains(@href, '/news/') and not(contains(@href, '?')) and not(starts-with(@href, '/all/news/'))]/@href", + SourceId = new Guid("6854c858-b82d-44f5-bb48-620c9bf9825d") + }, + new + { + Id = new Guid("6d057994-d84f-4437-a8bc-bd4e427493ca"), + NewsSiteUrl = "https://www.m24.ru/", + NewsUrlXPath = "//a[contains(@href, '/news/')]/@href", + SourceId = new Guid("3e24ec11-86a4-4db8-9337-35a00988da7d") + }, + new + { + Id = new Guid("3b9ca981-bc22-40e2-93be-e08c99369c45"), + NewsSiteUrl = "https://vz.ru/", + NewsUrlXPath = "//a[contains(@href, '.html') and not(contains(@href, '#comments')) and not(contains(@href, '?')) and not(contains(@href, '/about/'))]/@href", + SourceId = new Guid("e2ce0a01-9d10-4133-a989-618739aa3854") + }, + new + { + Id = new Guid("e69f2b5a-89e8-43df-aa5d-ca4139af6f95"), + NewsSiteUrl = "https://www.championat.com/news/1.html?utm_source=button&utm_medium=news", + NewsUrlXPath = "//a[contains(@href, 'news-') and contains(@href, '.html') and not(contains(@href, '#comments'))]/@href", + SourceId = new Guid("49bcf6b7-15bc-4f30-a3d6-3c88837aa039") + }, + new + { + Id = new Guid("83f72716-09c4-4c46-97fc-255431a7f616"), + NewsSiteUrl = "https://life.ru/s/novosti", + NewsUrlXPath = "//a[contains(@href, '/p/')]/@href", + SourceId = new Guid("170a9aef-a708-41a4-8370-a8526f2c055f") + }, + new + { + Id = new Guid("0896d6d1-cbe7-4103-a47e-d9be4ad3c550"), + NewsSiteUrl = "https://3dnews.ru/news/", + NewsUrlXPath = "//div[@class='news-feed-all']//a[@class='entry-header']/h1/../@href", + SourceId = new Guid("5aebacd6-b4d5-4839-b2f0-533ff3329941") + }, + new + { + Id = new Guid("890e7953-5769-4023-922c-45094cb89251"), + NewsSiteUrl = "https://www.ixbt.com/news/", + NewsUrlXPath = "//a[starts-with(@href, '/news/') and contains(@href, '.html') and not(contains(@href, '#comments'))]/@href", + SourceId = new Guid("e023416d-7d91-4d92-bd5f-37d57c54f6b4") + }, + new + { + Id = new Guid("52805bca-3e28-413b-8da3-77c9411f6ae1"), + NewsSiteUrl = "https://ixbt.games/news/", + NewsUrlXPath = "//a[@class='card-link']/@href", + SourceId = new Guid("604e9548-9b99-4bd4-ab90-4bf90b4a1807") + }, + new + { + Id = new Guid("b8e85938-97a8-47bf-aa33-c5bca3708e0e"), + NewsSiteUrl = "https://www.gazeta.ru/news/", + NewsUrlXPath = "//a[contains(@href, '/news/') and contains(@href, '.shtml') and not(contains(@href, '?'))]/@href", + SourceId = new Guid("cc29eb91-2efb-4d57-8d14-bb5356cbfbb8") + }, + new + { + Id = new Guid("cf99e4fc-dbe3-4be7-9f98-1eccfc954f39"), + NewsSiteUrl = "https://www.interfax.ru/", + NewsUrlXPath = "//div[@class='timeline']//a[@tabindex=5]/@href", + SourceId = new Guid("57597b92-2b9d-422e-b0a7-9b11326c879b") + }, + new + { + Id = new Guid("99d95b1b-1ecf-42ec-8e95-e4dcc217762d"), + NewsSiteUrl = "https://www.pravda.ru/", + NewsUrlXPath = "//a[contains(@href, '/news/') and not(@href='https://www.pravda.ru/news/')]/@href", + SourceId = new Guid("13f235b7-a6f6-4da4-83a1-13b5af26700a") + }, + new + { + Id = new Guid("62c58603-8696-4a94-bd69-de1938895b9b"), + NewsSiteUrl = "https://ura.news/", + NewsUrlXPath = "//a[contains(@href, '/news/')]/@href", + SourceId = new Guid("e16286a8-78a9-4b86-ba4b-c844f7099336") + }, + new + { + Id = new Guid("e1e2fd1c-8939-4531-90b3-3a8879319fb9"), + NewsSiteUrl = "https://74.ru/", + NewsUrlXPath = "//a[starts-with(@href, '/text/') and not(contains(@href, '?')) and not(contains(@href, 'comments/')) and not(@href='/text/')]/@href", + SourceId = new Guid("321e1615-6328-4532-85ac-22d53d59c164") + }, + new + { + Id = new Guid("5337753f-c43d-4ffa-b966-6e926c3a0a1c"), + NewsSiteUrl = "https://www.1obl.ru/news/", + NewsUrlXPath = "//a[starts-with(@href, '/news/') and not(contains(@href, '?'))]/@href", + SourceId = new Guid("70873440-0058-4669-aa74-352489f9e6da") + }, + new + { + Id = new Guid("f75f5b07-588f-4a4d-afb2-3558f99b54d7"), + NewsSiteUrl = "https://www.cybersport.ru/", + NewsUrlXPath = "//a[contains(@href, '/tags/')]/@href", + SourceId = new Guid("797060c0-3b47-4654-9176-32d719baad69") + }, + new + { + Id = new Guid("01116c2c-7bf6-496d-96f6-9d10d4b14e97"), + NewsSiteUrl = "https://www.hltv.org/", + NewsUrlXPath = "//a[contains(@href, '/news/')]/@href", + SourceId = new Guid("e4b3e286-3589-49de-892b-d0d06e719115") + }, + new + { + Id = new Guid("035b1374-e0cd-4b0a-a567-e0feff9852ff"), + NewsSiteUrl = "https://www.nytimes.com/", + NewsUrlXPath = "//a[contains(@href, '.html')]/@href", + SourceId = new Guid("136c7569-601c-4f16-9ca4-bd14bfa8c16a") + }, + new + { + Id = new Guid("d9bee236-e02e-4940-a97f-7aa259961369"), + NewsSiteUrl = "https://edition.cnn.com/", + NewsUrlXPath = "//a[contains(@href, '.html')]/@href", + SourceId = new Guid("5c3b0099-2a8a-49a5-8c68-d24ebc9fac07") + }, + new + { + Id = new Guid("69765f00-a717-43b7-8c2e-59213979a3ed"), + NewsSiteUrl = "https://www.kp.ru/", + NewsUrlXPath = "//a[contains(@href, '/news/')]/@href", + SourceId = new Guid("cb68ce1c-c741-41df-a1c9-8ce34529b421") + }, + new + { + Id = new Guid("1b2f8ada-c349-4930-98ed-896d0b89093c"), + NewsSiteUrl = "https://www.zr.ru/news/", + NewsUrlXPath = "//a[contains(@href, '/news/') and not(starts-with(@href, '/news/')) and not(starts-with(@href, 'https://'))]/@href", + SourceId = new Guid("a71c23bf-67e9-4955-bc8e-6226bd86ba90") + }, + new + { + Id = new Guid("a169d814-b17e-4062-a2b5-1599ede6783c"), + NewsSiteUrl = "https://www.avtovzglyad.ru/news/", + NewsUrlXPath = "//a[@class='news-card__link']/@href", + SourceId = new Guid("454f4f08-58cf-4ab7-9012-1e5ba663570c") + }, + new + { + Id = new Guid("773dc871-3e67-4375-9ded-71969f1e0a81"), + NewsSiteUrl = "https://overclockers.ru/news", + NewsUrlXPath = "//div[contains(@class, 'event')]//a[not(contains(@href, '#comments'))]/@href", + SourceId = new Guid("dac8cec6-c84d-4287-b0b9-71f4cf304c7e") + }, + new + { + Id = new Guid("a6f6a030-99b0-4828-af01-5c01d655be30"), + NewsSiteUrl = "https://www.kinonews.ru/news/", + NewsUrlXPath = "//a[contains(@href, '/news_') and not(contains(@href, 'comments')) and not(contains(@href, 'news_p'))]/@href", + SourceId = new Guid("296270ec-026b-4011-83ff-1466ba577864") + }, + new + { + Id = new Guid("62fe0769-6882-48b6-91c1-0f7a205aca05"), + NewsSiteUrl = "https://7days.ru/news/", + NewsUrlXPath = "//a[contains(@class, '7days__item_href') and starts-with(@href, '/news/')]/@href", + SourceId = new Guid("ba078388-eedf-4ccb-af5f-3f686f4ece4a") + }, + new + { + Id = new Guid("3dd178c2-7dd6-4f7d-9fa3-8aad161b000a"), + NewsSiteUrl = "https://www.starhit.ru/novosti/", + NewsUrlXPath = "//a[@class='announce-inline-tile__label-container']/@href", + SourceId = new Guid("05765a1b-b174-4ad1-9f63-3189a52303f9") + }, + new + { + Id = new Guid("cea22ad0-6634-4def-9b5b-f1e754ce2d8d"), + NewsSiteUrl = "https://stopgame.ru/news", + NewsUrlXPath = "//div[contains(@class, 'list-view')]//div[contains(@class, '_card')]/a/@href", + SourceId = new Guid("b5594347-6ec0-44c0-b381-7ae47f04fa56") + }, + new + { + Id = new Guid("f0a00f38-8859-4603-91db-251ada2ae73e"), + NewsSiteUrl = "https://ren.tv/news/", + NewsUrlXPath = "//a[starts-with(@href, '/news/')]/@href", + SourceId = new Guid("c169d8ad-a9fe-44e9-af6a-fd337ae10000") + }, + new + { + Id = new Guid("285b962c-f8e9-4b05-95e9-81a0ff26cd26"), + NewsSiteUrl = "https://www.novorosinform.org/", + NewsUrlXPath = "//a[contains(@href, '.html')]/@href", + SourceId = new Guid("c7b863af-0565-4bec-9238-9383272637ef") + }, + new + { + Id = new Guid("0bd7b701-63de-48e9-8494-4faf1193e218"), + NewsSiteUrl = "https://www.5-tv.ru/news/", + NewsUrlXPath = "//a[not(@href='https://www.5-tv.ru/news/') and starts-with(@href, 'https://www.5-tv.ru/news/')]/@href", + SourceId = new Guid("33b14253-7c02-4b79-8490-c8ed10312230") + }, + new + { + Id = new Guid("6b670151-2211-4da1-9313-86e1d58c9893"), + NewsSiteUrl = "https://www.ntv.ru/novosti/", + NewsUrlXPath = "//a[not(@href='/novosti/') and not(@href='/novosti/authors') and starts-with(@href, '/novosti/')]/@href", + SourceId = new Guid("6c5fe2d4-8547-4fb0-8966-d148f8d77af7") + }, + new + { + Id = new Guid("92324d14-49b0-409a-96e1-6a37a8691c6e"), + NewsSiteUrl = "https://www.fontanka.ru/24hours_news.html", + NewsUrlXPath = "//section//ul/li//div[@class]/div[not(@class)]/a[starts-with(@href, '/') and not(contains(@href, 'all.comments.html')) and not(contains(@href, '?'))]/@href", + SourceId = new Guid("068fb7bb-4b76-4261-bc9a-274625fe8890") + }, + new + { + Id = new Guid("505e7e1d-72a9-4f64-b2ab-faf55410329f"), + NewsSiteUrl = "https://regnum.ru/news", + NewsUrlXPath = "//a[not(@href='/news/') and starts-with(@href, '/news/')]/@href", + SourceId = new Guid("60747323-2a4c-44e1-880d-7e5e36642645") + }, + new + { + Id = new Guid("09a55b0c-4a3f-497c-9626-9b5b5e12ca26"), + NewsSiteUrl = "https://www.womanhit.ru/", + NewsUrlXPath = "//a[not(@href='/stars/news/') and starts-with(@href, '/stars/news/')]/@href", + SourceId = new Guid("2fa2ff6a-9a8b-4a2d-b0e4-6e7e14679236") + }, + new + { + Id = new Guid("4305d788-135a-4922-8cfb-7d5b8971835e"), + NewsSiteUrl = "https://rusvesna.su/news", + NewsUrlXPath = "//a[not(@href='/news/') and starts-with(@href, '/news/')]/@href", + SourceId = new Guid("b2fb23b4-3f6d-440c-9ec0-99216f233fd0") + }, + new + { + Id = new Guid("a13340f1-b8ad-4aed-8db3-3ce1bc26b977"), + NewsSiteUrl = "https://travelask.ru/news", + NewsUrlXPath = "//a[not(@href='/news/') and starts-with(@href, '/news/')]/@href", + SourceId = new Guid("b9ec9be8-e1f2-49d6-b461-b61872bb369c") + }, + new + { + Id = new Guid("e33af74d-60d3-4b07-8a1f-f35dd3a2965a"), + NewsSiteUrl = "https://smart-lab.ru/news/", + NewsUrlXPath = "//a[not(@href='/blog/') and starts-with(@href, '/blog/') and contains(@href, '.php')]/@href", + SourceId = new Guid("65141fc2-760f-4866-86c5-08cc764cabac") + }, + new + { + Id = new Guid("8325b474-7ad4-40bc-a721-82cf3f01d4c2"), + NewsSiteUrl = "https://www.finam.ru/", + NewsUrlXPath = "//a[starts-with(@href, 'publications/item/') or starts-with(@href, '/publications/item/')]/@href", + SourceId = new Guid("9e3453b3-be81-4f3b-93da-45192677c6a9") + }, + new + { + Id = new Guid("d6c237fe-b4c2-47b1-918f-298f4a9eafdf"), + NewsSiteUrl = "https://www.khl.ru/news/", + NewsUrlXPath = "//a[starts-with(@href, '/news/') and contains(@href, '.html')]/@href", + SourceId = new Guid("9519622d-50f0-4a8d-8728-c58c12255b6f") + }, + new + { + Id = new Guid("112b8f16-4de2-4679-bed3-cf3c4ce5e1ed"), + NewsSiteUrl = "https://radiosputnik.ru/", + NewsUrlXPath = "//a[starts-with(@href, 'https://radiosputnik.ru/') and contains(@href, '.html')]/@href", + SourceId = new Guid("1994c4bc-aeb9-4242-81df-5bafffca6fd0") + }, + new + { + Id = new Guid("04980ca4-2525-446d-ba36-b6ec342d951e"), + NewsSiteUrl = "https://meduza.io/", + NewsUrlXPath = "//a[not(@href='/news/') and starts-with(@href, '/news/')]/@href", + SourceId = new Guid("3a346f18-1781-408b-bc8d-2f8e4cbc64ea") + }, + new + { + Id = new Guid("d54003f4-dab6-4218-a59d-7374ded91cce"), + NewsSiteUrl = "https://www.huffpost.com/", + NewsUrlXPath = "//a[contains(@href, '/entry/')]/@href", + SourceId = new Guid("1f913a9a-4e5a-4925-89c1-51e985f63e9d") + }, + new + { + Id = new Guid("5ef6d413-2916-4259-b2e1-6e5dc36f8e2c"), + NewsSiteUrl = "https://www.foxnews.com/", + NewsUrlXPath = "//header[@class='info-header']/h3[@class='title']/a/@href", + SourceId = new Guid("e5afb99f-47ff-4822-89fa-2ff8859a5c42") + }, + new + { + Id = new Guid("93606f5a-dd33-4a66-8c13-d718d2082e07"), + NewsSiteUrl = "https://www.politico.com/", + NewsUrlXPath = "//a[starts-with(@href, 'https://www.politico.com/news/')]/@href", + SourceId = new Guid("7c0ac71c-0e8e-425b-ac26-424b152415f5") + }); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsSiteVisit", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uuid") + .HasColumnName("id"); + + b.Property("IpAddress") + .IsRequired() + .HasColumnType("text") + .HasColumnName("ip_address"); + + b.Property("VisitedAt") + .HasColumnType("timestamp with time zone") + .HasColumnName("visited_at"); + + b.HasKey("Id") + .HasName("pk_news_site_visits"); + + b.HasIndex("IpAddress") + .HasDatabaseName("ix_news_site_visits_ip_address"); + + b.HasIndex("VisitedAt") + .HasDatabaseName("ix_news_site_visits_visited_at"); + + b.ToTable("news_site_visits", (string)null); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsSource", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uuid") + .HasColumnName("id"); + + b.Property("IsEnabled") + .HasColumnType("boolean") + .HasColumnName("is_enabled"); + + b.Property("IsSystem") + .HasColumnType("boolean") + .HasColumnName("is_system"); + + b.Property("SiteUrl") + .IsRequired() + .HasColumnType("text") + .HasColumnName("site_url"); + + b.Property("Title") + .IsRequired() + .HasColumnType("text") + .HasColumnName("title"); + + b.HasKey("Id") + .HasName("pk_news_sources"); + + b.HasIndex("IsEnabled") + .HasDatabaseName("ix_news_sources_is_enabled"); + + b.HasIndex("IsSystem") + .HasDatabaseName("ix_news_sources_is_system"); + + b.HasIndex("SiteUrl") + .HasDatabaseName("ix_news_sources_site_url"); + + b.HasIndex("Title") + .HasDatabaseName("ix_news_sources_title"); + + b.ToTable("news_sources", (string)null); + + b.HasData( + new + { + Id = new Guid("b8d20577-6c4c-4bd7-a1b1-b58bb4914541"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://ria.ru/", + Title = "РИА Новости" + }, + new + { + Id = new Guid("5d8e3050-5444-4709-afc3-18a8d46a71ba"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://russian.rt.com/", + Title = "RT на русском" + }, + new + { + Id = new Guid("7e889af8-0f19-44ab-96d4-241fd64fbcdb"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://tass.ru/", + Title = "ТАСС" + }, + new + { + Id = new Guid("fb2f8557-ca7e-4ce2-86dd-b8a94ee02275"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://lenta.ru/", + Title = "Лента.Ру" + }, + new + { + Id = new Guid("31b6f068-3f00-4250-bc74-62146525ba95"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://rg.ru/", + Title = "Российская газета" + }, + new + { + Id = new Guid("9268835d-553d-4fbe-a0cb-0545b8019c68"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://aif.ru/", + Title = "Аргументы и факты" + }, + new + { + Id = new Guid("950d59d6-d94c-4396-a55e-cbcd2a9b533c"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://www.rbc.ru/", + Title = "РБК" + }, + new + { + Id = new Guid("3e1f065a-c135-4429-941e-d870886b4147"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://www.sports.ru/", + Title = "Sports.ru" + }, + new + { + Id = new Guid("baaa533a-cb1a-46e7-bb9e-79d631affc87"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://www.kommersant.ru/", + Title = "Коммерсантъ" + }, + new + { + Id = new Guid("31252741-4d0b-448f-b85c-d6538f7ca565"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://iz.ru/", + Title = "Известия" + }, + new + { + Id = new Guid("3b8c9766-f5d5-44ec-a014-45ddce4a9a0c"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://tsargrad.tv/", + Title = "Царьград" + }, + new + { + Id = new Guid("fc0a229f-bde4-4f61-b4eb-75d1285665dd"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "http://www.belta.by/", + Title = "БелТА" + }, + new + { + Id = new Guid("6854c858-b82d-44f5-bb48-620c9bf9825d"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://svpressa.ru/", + Title = "СвободнаяПресса" + }, + new + { + Id = new Guid("3e24ec11-86a4-4db8-9337-35a00988da7d"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://www.m24.ru/", + Title = "Москва 24" + }, + new + { + Id = new Guid("e2ce0a01-9d10-4133-a989-618739aa3854"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://vz.ru/", + Title = "ВЗГЛЯД.РУ" + }, + new + { + Id = new Guid("49bcf6b7-15bc-4f30-a3d6-3c88837aa039"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://www.championat.com/", + Title = "Чемпионат.com" + }, + new + { + Id = new Guid("170a9aef-a708-41a4-8370-a8526f2c055f"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://life.ru/", + Title = "Life" + }, + new + { + Id = new Guid("5aebacd6-b4d5-4839-b2f0-533ff3329941"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://3dnews.ru/", + Title = "3Dnews.ru" + }, + new + { + Id = new Guid("e023416d-7d91-4d92-bd5f-37d57c54f6b4"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://www.ixbt.com/", + Title = "iXBT.com" + }, + new + { + Id = new Guid("604e9548-9b99-4bd4-ab90-4bf90b4a1807"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://ixbt.games/", + Title = "iXBT.games" + }, + new + { + Id = new Guid("cc29eb91-2efb-4d57-8d14-bb5356cbfbb8"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://www.gazeta.ru/", + Title = "Газета.Ru" + }, + new + { + Id = new Guid("57597b92-2b9d-422e-b0a7-9b11326c879b"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://www.interfax.ru/", + Title = "Интерфакс" + }, + new + { + Id = new Guid("13f235b7-a6f6-4da4-83a1-13b5af26700a"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://www.pravda.ru/", + Title = "Правда.ру" + }, + new + { + Id = new Guid("e16286a8-78a9-4b86-ba4b-c844f7099336"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://ura.news/", + Title = "Ura.ru" + }, + new + { + Id = new Guid("321e1615-6328-4532-85ac-22d53d59c164"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://74.ru/", + Title = "74.ru" + }, + new + { + Id = new Guid("70873440-0058-4669-aa74-352489f9e6da"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://www.1obl.ru/", + Title = "Первый областной" + }, + new + { + Id = new Guid("797060c0-3b47-4654-9176-32d719baad69"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://www.cybersport.ru/", + Title = "Cybersport.ru" + }, + new + { + Id = new Guid("e4b3e286-3589-49de-892b-d0d06e719115"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://www.hltv.org/", + Title = "HLTV.org" + }, + new + { + Id = new Guid("136c7569-601c-4f16-9ca4-bd14bfa8c16a"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://www.nytimes.com/", + Title = "The New York Times" + }, + new + { + Id = new Guid("5c3b0099-2a8a-49a5-8c68-d24ebc9fac07"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://edition.cnn.com/", + Title = "CNN" + }, + new + { + Id = new Guid("cb68ce1c-c741-41df-a1c9-8ce34529b421"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://www.kp.ru/", + Title = "Комсомольская правда" + }, + new + { + Id = new Guid("a71c23bf-67e9-4955-bc8e-6226bd86ba90"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://www.zr.ru/", + Title = "Журнал \"За рулем\"" + }, + new + { + Id = new Guid("454f4f08-58cf-4ab7-9012-1e5ba663570c"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://www.avtovzglyad.ru/", + Title = "АвтоВзгляд" + }, + new + { + Id = new Guid("dac8cec6-c84d-4287-b0b9-71f4cf304c7e"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://overclockers.ru/", + Title = "Overclockers" + }, + new + { + Id = new Guid("296270ec-026b-4011-83ff-1466ba577864"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://www.kinonews.ru/", + Title = "KinoNews.ru" + }, + new + { + Id = new Guid("ba078388-eedf-4ccb-af5f-3f686f4ece4a"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://7days.ru/", + Title = "7дней.ru" + }, + new + { + Id = new Guid("05765a1b-b174-4ad1-9f63-3189a52303f9"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://www.starhit.ru/", + Title = "Сетевое издание «Онлайн журнал StarHit (СтарХит)" + }, + new + { + Id = new Guid("b5594347-6ec0-44c0-b381-7ae47f04fa56"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://stopgame.ru/", + Title = "StopGame" + }, + new + { + Id = new Guid("c169d8ad-a9fe-44e9-af6a-fd337ae10000"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://ren.tv/", + Title = "РЕН ТВ" + }, + new + { + Id = new Guid("c7b863af-0565-4bec-9238-9383272637ef"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://www.novorosinform.org/", + Title = "Новороссия" + }, + new + { + Id = new Guid("33b14253-7c02-4b79-8490-c8ed10312230"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://www.5-tv.ru/", + Title = "Пятый канал" + }, + new + { + Id = new Guid("6c5fe2d4-8547-4fb0-8966-d148f8d77af7"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://www.ntv.ru/", + Title = "НТВ" + }, + new + { + Id = new Guid("068fb7bb-4b76-4261-bc9a-274625fe8890"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://www.fontanka.ru/", + Title = "ФОНТАНКА.ру" + }, + new + { + Id = new Guid("60747323-2a4c-44e1-880d-7e5e36642645"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://regnum.ru/", + Title = "ИА REGNUM" + }, + new + { + Id = new Guid("2fa2ff6a-9a8b-4a2d-b0e4-6e7e14679236"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://www.womanhit.ru/", + Title = "Женский журнал WomanHit.ru" + }, + new + { + Id = new Guid("b2fb23b4-3f6d-440c-9ec0-99216f233fd0"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://rusvesna.su/", + Title = "Русская весна" + }, + new + { + Id = new Guid("b9ec9be8-e1f2-49d6-b461-b61872bb369c"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://travelask.ru/", + Title = "TravelAsk" + }, + new + { + Id = new Guid("65141fc2-760f-4866-86c5-08cc764cabac"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://smart-lab.ru/", + Title = "SMART-LAB" + }, + new + { + Id = new Guid("9e3453b3-be81-4f3b-93da-45192677c6a9"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://www.finam.ru/", + Title = "Финам.Ру" + }, + new + { + Id = new Guid("9519622d-50f0-4a8d-8728-c58c12255b6f"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://www.khl.ru/", + Title = "КХЛ" + }, + new + { + Id = new Guid("1994c4bc-aeb9-4242-81df-5bafffca6fd0"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://radiosputnik.ru/", + Title = "Радио Sputnik" + }, + new + { + Id = new Guid("3a346f18-1781-408b-bc8d-2f8e4cbc64ea"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://meduza.io/", + Title = "Meduza" + }, + new + { + Id = new Guid("1f913a9a-4e5a-4925-89c1-51e985f63e9d"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://www.huffpost.com/", + Title = "HuffPost" + }, + new + { + Id = new Guid("e5afb99f-47ff-4822-89fa-2ff8859a5c42"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://www.foxnews.com/", + Title = "Fox News" + }, + new + { + Id = new Guid("7c0ac71c-0e8e-425b-ac26-424b152415f5"), + IsEnabled = true, + IsSystem = true, + SiteUrl = "https://www.politico.com/", + Title = "POLITICO" + }); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsSourceLogo", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uuid") + .HasColumnName("id"); + + b.Property("Original") + .IsRequired() + .HasColumnType("text") + .HasColumnName("original"); + + b.Property("Small") + .IsRequired() + .HasColumnType("text") + .HasColumnName("small"); + + b.Property("SourceId") + .HasColumnType("uuid") + .HasColumnName("source_id"); + + b.HasKey("Id") + .HasName("pk_news_source_logos"); + + b.HasIndex("SourceId") + .IsUnique() + .HasDatabaseName("ix_news_source_logos_source_id"); + + b.ToTable("news_source_logos", (string)null); + + b.HasData( + new + { + Id = new Guid("a0faaf8f-34af-43f7-af18-782f9c6214d4"), + Original = "https://cdnn21.img.ria.ru/i/favicons/favicon.svg", + Small = "https://cdnn21.img.ria.ru/i/favicons/favicon.ico", + SourceId = new Guid("b8d20577-6c4c-4bd7-a1b1-b58bb4914541") + }, + new + { + Id = new Guid("021335ce-8d6b-47fc-9de8-503f4c248982"), + Original = "https://russian.rt.com/static/blocks/touch-icon/apple-touch-icon-144x144-precomposed.png", + Small = "https://russian.rt.com/favicon.ico", + SourceId = new Guid("5d8e3050-5444-4709-afc3-18a8d46a71ba") + }, + new + { + Id = new Guid("29e9a963-8850-4c05-9714-a4b59af20be4"), + Original = "https://tass.ru/favicon/180.svg", + Small = "https://tass.ru/favicon/57.png", + SourceId = new Guid("7e889af8-0f19-44ab-96d4-241fd64fbcdb") + }, + new + { + Id = new Guid("ef6ba8cf-50e4-432b-9329-19097bff75e2"), + Original = "https://icdn.lenta.ru/images/icons/icon-256x256.png", + Small = "https://icdn.lenta.ru/favicon.ico", + SourceId = new Guid("fb2f8557-ca7e-4ce2-86dd-b8a94ee02275") + }, + new + { + Id = new Guid("f1b5322f-8f12-4a8d-ba28-ee5aaed34228"), + Original = "https://cdnstatic.rg.ru/images/touch-icon-ipad-retina_512x512.png", + Small = "https://rg.ru/favicon.ico", + SourceId = new Guid("31b6f068-3f00-4250-bc74-62146525ba95") + }, + new + { + Id = new Guid("3472a1e0-4bf9-418a-8e9e-94830248020b"), + Original = "https://aif.ru/img/icon/apple-touch-icon.png?44f", + Small = "https://aif.ru/img/icon/favicon-32x32.png?44f", + SourceId = new Guid("9268835d-553d-4fbe-a0cb-0545b8019c68") + }, + new + { + Id = new Guid("a77ffd9e-beb2-43d6-bf02-94ad9bc1eccd"), + Original = "https://s.rbk.ru/v10_rbcnews_static/common/common-10.10.120/images/android-chrome-512x512.png", + Small = "https://s.rbk.ru/v10_rbcnews_static/common/common-10.10.120/images/favicon.png", + SourceId = new Guid("950d59d6-d94c-4396-a55e-cbcd2a9b533c") + }, + new + { + Id = new Guid("5531cc3d-cee5-490a-aaac-20b826e1135b"), + Original = "https://www.sports.ru/apple-touch-icon-1024.png", + Small = "https://www.sports.ru/apple-touch-icon-76.png", + SourceId = new Guid("3e1f065a-c135-4429-941e-d870886b4147") + }, + new + { + Id = new Guid("52cd41a3-05b6-4ed0-87d0-bb62bd1a742a"), + Original = "https://im.kommersant.ru/ContentFlex/images/favicons2020/apple-touch-icon-180.png", + Small = "https://im.kommersant.ru/ContentFlex/images/favicons2020/favicon-32.png", + SourceId = new Guid("baaa533a-cb1a-46e7-bb9e-79d631affc87") + }, + new + { + Id = new Guid("a5431839-5bf7-46f6-a2eb-c93b4b18e24f"), + Original = "https://cdn.iz.ru/profiles/portal/themes/purple/images/favicons/android-icon-192x192.png", + Small = "https://cdn.iz.ru/profiles/portal/themes/purple/images/favicons/favicon-32x32.png", + SourceId = new Guid("31252741-4d0b-448f-b85c-d6538f7ca565") + }, + new + { + Id = new Guid("a1e75a31-deae-4634-8bd8-eea983e60bfc"), + Original = "https://tsargrad.tv/favicons/apple-touch-icon-180x180.png?s2", + Small = "https://tsargrad.tv/favicons/favicon-32x32.png?s2", + SourceId = new Guid("3b8c9766-f5d5-44ec-a014-45ddce4a9a0c") + }, + new + { + Id = new Guid("4975ba0c-d5eb-44cf-8743-2aa7d621c5d1"), + Original = "https://www.belta.by/images/storage/banners/000016_a133e848cb2e7b1debb7102d19e4d139_work.svg", + Small = "https://www.belta.by/images/storage/banners/000016_a133e848cb2e7b1debb7102d19e4d139_work.svg", + SourceId = new Guid("fc0a229f-bde4-4f61-b4eb-75d1285665dd") + }, + new + { + Id = new Guid("1949e476-a28c-49c7-8cef-114ed2f70618"), + Original = "https://svpressa.ru/favicon-96x96.png?v=1471426270000", + Small = "https://svpressa.ru/favicon-32x32.png?v=1471426270000", + SourceId = new Guid("6854c858-b82d-44f5-bb48-620c9bf9825d") + }, + new + { + Id = new Guid("7e056d72-a4a4-4608-b393-b56d976a2bad"), + Original = "https://www.m24.ru/img/fav/apple-touch-icon.png", + Small = "https://www.m24.ru/img/fav/favicon-32x32.png", + SourceId = new Guid("3e24ec11-86a4-4db8-9337-35a00988da7d") + }, + new + { + Id = new Guid("f22a5c00-53d0-43b8-93a3-1cdac2e103cc"), + Original = "https://vz.ru/apple-touch-icon.png", + Small = "https://vz.ru/static/images/favicon.ico", + SourceId = new Guid("e2ce0a01-9d10-4133-a989-618739aa3854") + }, + new + { + Id = new Guid("3fbe2b42-7817-422b-a3e1-020942b42d4b"), + Original = "https://st.championat.com/i/favicon/apple-touch-icon.png", + Small = "https://st.championat.com/i/favicon/favicon-32x32.png", + SourceId = new Guid("49bcf6b7-15bc-4f30-a3d6-3c88837aa039") + }, + new + { + Id = new Guid("53f0c42f-abe9-46e6-8c49-a4939e81be95"), + Original = "https://life.ru/appletouch/apple-icon-180%D1%85180.png", + Small = "https://life.ru/favicon-32%D1%8532.png", + SourceId = new Guid("170a9aef-a708-41a4-8370-a8526f2c055f") + }, + new + { + Id = new Guid("d1418d56-a990-448a-8334-a8cc8cec1b00"), + Original = "https://3dnews.ru/assets/images/3dnews_logo_soc.png", + Small = "https://3dnews.ru/assets/3dnews_logo_color.png", + SourceId = new Guid("5aebacd6-b4d5-4839-b2f0-533ff3329941") + }, + new + { + Id = new Guid("427cf0f1-b0ef-4ab9-b181-63710edcf220"), + Original = "https://www.ixbt.com/favicon.ico", + Small = "https://www.ixbt.com/favicon.ico", + SourceId = new Guid("e023416d-7d91-4d92-bd5f-37d57c54f6b4") + }, + new + { + Id = new Guid("def8f81b-0a9b-44fb-a6bc-26f398fb175c"), + Original = "https://ixbt.games/images/favicon/gt/apple-touch-icon.png", + Small = "https://ixbt.games/images/favicon/gt/apple-touch-icon.png", + SourceId = new Guid("604e9548-9b99-4bd4-ab90-4bf90b4a1807") + }, + new + { + Id = new Guid("d7e0f8bc-64ec-4450-b8bb-82689f1d9012"), + Original = "https://static.gazeta.ru/nm2021/img/icons/favicon.svg", + Small = "https://static.gazeta.ru/nm2021/img/icons/favicon.svg", + SourceId = new Guid("cc29eb91-2efb-4d57-8d14-bb5356cbfbb8") + }, + new + { + Id = new Guid("db46c593-155d-4775-b999-dbe4eb772fb1"), + Original = "https://www.interfax.ru/touch-icon-ipad-retina.png", + Small = "https://www.interfax.ru/touch-icon-iphone.png", + SourceId = new Guid("57597b92-2b9d-422e-b0a7-9b11326c879b") + }, + new + { + Id = new Guid("52827f36-597f-424c-bc69-6e71f2bdde5c"), + Original = "https://www.pravda.ru/pix/apple-touch-icon.png", + Small = "https://www.pravda.ru/favicon.ico", + SourceId = new Guid("13f235b7-a6f6-4da4-83a1-13b5af26700a") + }, + new + { + Id = new Guid("8db8aa26-06f6-4ebf-b2f6-81a02a20a288"), + Original = "https://ura.news/apple-touch-icon.png", + Small = "https://s.ura.news/favicon.ico?3", + SourceId = new Guid("e16286a8-78a9-4b86-ba4b-c844f7099336") + }, + new + { + Id = new Guid("f3318dd0-6ed3-4b25-ab34-6f4330317853"), + Original = "https://static.ngs.ru/jtnews/dist/static/favicons/apple/apple-favicon-74-180.png", + Small = "https://static.ngs.ru/jtnews/dist/static/favicons/favicon-rugion-32.ico", + SourceId = new Guid("321e1615-6328-4532-85ac-22d53d59c164") + }, + new + { + Id = new Guid("68fa8065-fdc2-4e15-b2b1-3adb91d2d862"), + Original = "https://www.1obl.ru/apple-touch-icon.png", + Small = "https://www.1obl.ru/favicon-32x32.png", + SourceId = new Guid("70873440-0058-4669-aa74-352489f9e6da") + }, + new + { + Id = new Guid("375423fe-7b3a-4296-80f1-4072577524c0"), + Original = "https://www.cybersport.ru/favicon-192x192.png", + Small = "https://www.cybersport.ru/favicon-32x32.png", + SourceId = new Guid("797060c0-3b47-4654-9176-32d719baad69") + }, + new + { + Id = new Guid("5195571a-9041-4d0e-a9d1-dddbc5c9cb39"), + Original = "https://www.hltv.org/img/static/favicon/apple-touch-icon.png", + Small = "https://www.hltv.org/img/static/favicon/favicon-32x32.png", + SourceId = new Guid("e4b3e286-3589-49de-892b-d0d06e719115") + }, + new + { + Id = new Guid("e1eeadd2-6075-447a-8cda-0952e46496fc"), + Original = "https://www.nytimes.com/vi-assets/static-assets/apple-touch-icon-28865b72953380a40aa43318108876cb.png", + Small = "https://www.nytimes.com/vi-assets/static-assets/ios-default-homescreen-57x57-dark-b395ebcad5b63aff9285aab58e31035e.png", + SourceId = new Guid("136c7569-601c-4f16-9ca4-bd14bfa8c16a") + }, + new + { + Id = new Guid("9f083bc5-a246-46d7-a2fe-eaa32d79a821"), + Original = "https://edition.cnn.com/media/sites/cnn/apple-touch-icon.png", + Small = "https://edition.cnn.com/media/sites/cnn/favicon.ico", + SourceId = new Guid("5c3b0099-2a8a-49a5-8c68-d24ebc9fac07") + }, + new + { + Id = new Guid("4cf43716-885c-4a85-8d23-0ecc987da590"), + Original = "https://s01.stc.yc.kpcdn.net/s0/2.1.321/adaptive/favicon-128.png", + Small = "https://s01.stc.yc.kpcdn.net/s0/2.1.321/adaptive/favicon-32.png", + SourceId = new Guid("cb68ce1c-c741-41df-a1c9-8ce34529b421") + }, + new + { + Id = new Guid("7083afb5-2799-44f7-a508-60369598da29"), + Original = "https://www.zr.ru/favicons/safari-pinned-tab.svg", + Small = "https://www.zr.ru/favicons/favicon.ico", + SourceId = new Guid("a71c23bf-67e9-4955-bc8e-6226bd86ba90") + }, + new + { + Id = new Guid("ef6108bf-e9c1-4f8b-b4f7-7e933b1c7ac3"), + Original = "https://www.avtovzglyad.ru/static/images/favicon/safari-pinned-tab.svg", + Small = "https://www.avtovzglyad.ru/static/images/favicon/favicon-32x32.png", + SourceId = new Guid("454f4f08-58cf-4ab7-9012-1e5ba663570c") + }, + new + { + Id = new Guid("955eb645-e135-46d6-990e-1348bcc962d8"), + Original = "https://overclockers.ru/assets/apple-touch-icon-120x120.png", + Small = "https://overclockers.ru/assets/apple-touch-icon.png", + SourceId = new Guid("dac8cec6-c84d-4287-b0b9-71f4cf304c7e") + }, + new + { + Id = new Guid("1aa24985-d52d-4f4e-8113-022a0216a2af"), + Original = "https://www.kinonews.ru/favicon.ico", + Small = "https://www.kinonews.ru/favicon.ico", + SourceId = new Guid("296270ec-026b-4011-83ff-1466ba577864") + }, + new + { + Id = new Guid("d227ada8-0869-4320-8e0b-29b4b57ace6f"), + Original = "https://7days.ru/android-icon-192x192.png", + Small = "https://7days.ru/favicon-32x32.png", + SourceId = new Guid("ba078388-eedf-4ccb-af5f-3f686f4ece4a") + }, + new + { + Id = new Guid("5f715b2b-8509-4425-aaed-2da285f295d0"), + Original = "https://cdn.hsmedia.ru/public/favicon/starhit/apple-touch-icon.png", + Small = "https://cdn.hsmedia.ru/public/favicon/starhit/favicon.png", + SourceId = new Guid("05765a1b-b174-4ad1-9f63-3189a52303f9") + }, + new + { + Id = new Guid("495799aa-0817-433e-9abe-5481c0f3d569"), + Original = "https://stopgame.ru/favicon_512.png", + Small = "https://stopgame.ru/favicon.ico", + SourceId = new Guid("b5594347-6ec0-44c0-b381-7ae47f04fa56") + }, + new + { + Id = new Guid("504e7035-e6bb-434a-939c-5b4515ad4e48"), + Original = "https://ren.tv/apple-touch-icon.png", + Small = "https://ren.tv/favicon-32x32.png", + SourceId = new Guid("c169d8ad-a9fe-44e9-af6a-fd337ae10000") + }, + new + { + Id = new Guid("bafc4c68-8558-46d1-b778-0c2137188d93"), + Original = "https://www.novorosinform.org/favicon.ico?v3", + Small = "https://www.novorosinform.org/favicon.ico?v3", + SourceId = new Guid("c7b863af-0565-4bec-9238-9383272637ef") + }, + new + { + Id = new Guid("c4d13a4c-2f0d-41a4-a5e0-543e6a7dbad8"), + Original = "https://img5tv.cdnvideo.ru/shared/img/favicon_24.png", + Small = "https://img5tv.cdnvideo.ru/shared/img/favicon_24.png", + SourceId = new Guid("33b14253-7c02-4b79-8490-c8ed10312230") + }, + new + { + Id = new Guid("4af4b3b2-ca3d-4421-976f-0406c515033a"), + Original = "https://cdn-static.ntv.ru/images/favicons/android-chrome-192x192.png", + Small = "https://cdn-static.ntv.ru/images/favicons/favicon-32x32.png", + SourceId = new Guid("6c5fe2d4-8547-4fb0-8966-d148f8d77af7") + }, + new + { + Id = new Guid("872f13d3-d28d-44c4-bf38-ab69bb554e4a"), + Original = "https://www.fontanka.ru/static/assets/favicons/apple/apple-favicon-180.png", + Small = "https://www.fontanka.ru/static/assets/favicons/apple/apple-favicon-76-precomposed.png", + SourceId = new Guid("068fb7bb-4b76-4261-bc9a-274625fe8890") + }, + new + { + Id = new Guid("a786f93c-3c1d-4561-a699-58fba081cc37"), + Original = "https://regnum.ru/favicons/apple-touch-icon.png?v=202305", + Small = "https://regnum.ru/favicons/favicon-32x32.png?v=202305", + SourceId = new Guid("60747323-2a4c-44e1-880d-7e5e36642645") + }, + new + { + Id = new Guid("1a1a5026-c9a6-4d74-9f36-721b47a79548"), + Original = "https://www.womanhit.ru/static/front/img/favicon.ico?v=2", + Small = "https://www.womanhit.ru/static/front/img/favicon.ico?v=2", + SourceId = new Guid("2fa2ff6a-9a8b-4a2d-b0e4-6e7e14679236") + }, + new + { + Id = new Guid("3ee815d8-a253-47c7-9084-22cddbb490d4"), + Original = "https://rusvesna.su/favicon.ico", + Small = "https://rusvesna.su/favicon.ico", + SourceId = new Guid("b2fb23b4-3f6d-440c-9ec0-99216f233fd0") + }, + new + { + Id = new Guid("915e2d86-b519-4034-a44f-991b0a446607"), + Original = "https://s9.travelask.ru/favicons/apple-touch-icon-180x180.png", + Small = "https://s9.travelask.ru/favicons/favicon-32x32.png", + SourceId = new Guid("b9ec9be8-e1f2-49d6-b461-b61872bb369c") + }, + new + { + Id = new Guid("6b5da5aa-29f4-4ee9-a310-db70936a1ff1"), + Original = "https://smart-lab.ru/templates/skin/smart-lab-x3/images/favicon.ico", + Small = "https://smart-lab.ru/templates/skin/smart-lab-x3/images/favicon.ico", + SourceId = new Guid("65141fc2-760f-4866-86c5-08cc764cabac") + }, + new + { + Id = new Guid("9e7d94a1-3960-4019-aa85-e4f384ec14ea"), + Original = "https://www.finam.ru/favicon-144x144.png", + Small = "https://www.finam.ru/favicon.png", + SourceId = new Guid("9e3453b3-be81-4f3b-93da-45192677c6a9") + }, + new + { + Id = new Guid("b22f3762-d5d6-4102-9817-a719bb0c220c"), + Original = "https://www.khl.ru/img/icons/152x152.png", + Small = "https://www.khl.ru/img/icons/32x32.png", + SourceId = new Guid("9519622d-50f0-4a8d-8728-c58c12255b6f") + }, + new + { + Id = new Guid("e8db752b-966e-4c0f-9cab-895cda0de469"), + Original = "https://cdnn21.img.ria.ru/i/favicons/radiosputnik/apple-touch-icon.png", + Small = "https://cdnn21.img.ria.ru/i/favicons/radiosputnik/favicon.ico", + SourceId = new Guid("1994c4bc-aeb9-4242-81df-5bafffca6fd0") + }, + new + { + Id = new Guid("6e7dee47-3b1c-4ec8-b2c7-b6ec29fcc6f5"), + Original = "https://meduza.io/apple-touch-icon-180.png", + Small = "https://meduza.io/favicon-32x32.png", + SourceId = new Guid("3a346f18-1781-408b-bc8d-2f8e4cbc64ea") + }, + new + { + Id = new Guid("aaf79c06-980f-4d3c-9d89-0281ccfecc70"), + Original = "https://www.huffpost.com/favicon.ico", + Small = "https://www.huffpost.com/favicon.ico", + SourceId = new Guid("1f913a9a-4e5a-4925-89c1-51e985f63e9d") + }, + new + { + Id = new Guid("3cd265f4-637e-480c-8294-9d81d9027538"), + Original = "https://static.foxnews.com/static/orion/styles/img/fox-news/favicons/apple-touch-icon-180x180.png", + Small = "https://static.foxnews.com/static/orion/styles/img/fox-news/favicons/favicon-32x32.png", + SourceId = new Guid("e5afb99f-47ff-4822-89fa-2ff8859a5c42") + }, + new + { + Id = new Guid("cdfd8be8-f692-48f3-a06d-e290f20d92e2"), + Original = "https://www.politico.com/apple-touch-icon-180x180.png", + Small = "https://www.politico.com/favicon-32x32.png", + SourceId = new Guid("7c0ac71c-0e8e-425b-ac26-424b152415f5") + }); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsSourceTag", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uuid") + .HasColumnName("id"); + + b.Property("SourceId") + .HasColumnType("uuid") + .HasColumnName("source_id"); + + b.Property("TagId") + .HasColumnType("uuid") + .HasColumnName("tag_id"); + + b.HasKey("Id") + .HasName("pk_news_source_tags"); + + b.HasIndex("SourceId") + .HasDatabaseName("ix_news_source_tags_source_id"); + + b.HasIndex("TagId") + .HasDatabaseName("ix_news_source_tags_tag_id"); + + b.ToTable("news_source_tags", (string)null); + + b.HasData( + new + { + Id = new Guid("aec9b965-2433-4bf0-ac3d-0f01775a6a75"), + SourceId = new Guid("b8d20577-6c4c-4bd7-a1b1-b58bb4914541"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("b246f291-1cb3-42fc-904c-fdca50162d28"), + SourceId = new Guid("b8d20577-6c4c-4bd7-a1b1-b58bb4914541"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("3f0c3643-d21d-4e8e-bf55-a01b42011215"), + SourceId = new Guid("b8d20577-6c4c-4bd7-a1b1-b58bb4914541"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }, + new + { + Id = new Guid("4cac9f6e-f034-4600-8272-a04aeca7f0b4"), + SourceId = new Guid("5d8e3050-5444-4709-afc3-18a8d46a71ba"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("dd4ff481-d8d3-410d-ad32-e39cf572071d"), + SourceId = new Guid("5d8e3050-5444-4709-afc3-18a8d46a71ba"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("c549c18b-8e40-4196-b6d7-ff9c9cb516ba"), + SourceId = new Guid("5d8e3050-5444-4709-afc3-18a8d46a71ba"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }, + new + { + Id = new Guid("bc9d7be6-2e7e-4b7c-9859-b8047ce7ef81"), + SourceId = new Guid("7e889af8-0f19-44ab-96d4-241fd64fbcdb"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("20725e40-3f1d-4089-8d74-9d08ae3f127d"), + SourceId = new Guid("7e889af8-0f19-44ab-96d4-241fd64fbcdb"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("33e821e2-c90d-45ed-a905-269ca20bf28f"), + SourceId = new Guid("7e889af8-0f19-44ab-96d4-241fd64fbcdb"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }, + new + { + Id = new Guid("585e40dd-ec2b-41b6-b505-59603e1031f8"), + SourceId = new Guid("fb2f8557-ca7e-4ce2-86dd-b8a94ee02275"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("5178aad8-b861-4640-afc6-c3bd1749ae94"), + SourceId = new Guid("fb2f8557-ca7e-4ce2-86dd-b8a94ee02275"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("3e8627f0-f07d-4cab-a30b-08282bbdf928"), + SourceId = new Guid("fb2f8557-ca7e-4ce2-86dd-b8a94ee02275"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }, + new + { + Id = new Guid("5385f93d-42d7-4798-9868-d5c75a86fd8f"), + SourceId = new Guid("31b6f068-3f00-4250-bc74-62146525ba95"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("000a5ecc-fee2-486f-88de-ca43ce445849"), + SourceId = new Guid("31b6f068-3f00-4250-bc74-62146525ba95"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("33e60843-feb6-4f42-b171-b5dbd423ed3b"), + SourceId = new Guid("31b6f068-3f00-4250-bc74-62146525ba95"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }, + new + { + Id = new Guid("7c4772ef-afbb-4264-92b5-77389e8c0990"), + SourceId = new Guid("9268835d-553d-4fbe-a0cb-0545b8019c68"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("d194cd94-eb02-471e-900c-2f298405b7c5"), + SourceId = new Guid("9268835d-553d-4fbe-a0cb-0545b8019c68"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("3241b406-31e8-41a2-b9cd-efc585789d48"), + SourceId = new Guid("9268835d-553d-4fbe-a0cb-0545b8019c68"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }, + new + { + Id = new Guid("a1ba384a-04c5-4886-a113-36d86fc8cf60"), + SourceId = new Guid("950d59d6-d94c-4396-a55e-cbcd2a9b533c"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("75e4331e-76d5-48d0-998b-0765b6b7854d"), + SourceId = new Guid("950d59d6-d94c-4396-a55e-cbcd2a9b533c"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("c7585125-4dbc-4b56-aa3a-422a96ade9fb"), + SourceId = new Guid("950d59d6-d94c-4396-a55e-cbcd2a9b533c"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }, + new + { + Id = new Guid("b2a8ec2b-61da-45fd-b98f-6b32d0ccf331"), + SourceId = new Guid("3e1f065a-c135-4429-941e-d870886b4147"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("c3fc77db-1764-4453-a6e9-6f85ef5fde66"), + SourceId = new Guid("3e1f065a-c135-4429-941e-d870886b4147"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("0ac9ad4a-29b6-4689-aadc-b3b75a3b034c"), + SourceId = new Guid("3e1f065a-c135-4429-941e-d870886b4147"), + TagId = new Guid("6c939d6c-0461-46c8-b9b6-83021b68df71") + }, + new + { + Id = new Guid("ca9c9fa1-182d-416f-af3c-53b470edbbaa"), + SourceId = new Guid("baaa533a-cb1a-46e7-bb9e-79d631affc87"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("6884348a-7db9-49b3-81db-8300d6e0d72e"), + SourceId = new Guid("baaa533a-cb1a-46e7-bb9e-79d631affc87"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("6d9524d2-1101-493e-bd71-53d8ecf0e8de"), + SourceId = new Guid("baaa533a-cb1a-46e7-bb9e-79d631affc87"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }, + new + { + Id = new Guid("a881440d-08a1-41e0-86a7-64b3dec4d5d4"), + SourceId = new Guid("31252741-4d0b-448f-b85c-d6538f7ca565"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("fd0b4b8f-5731-4e4f-a96b-f80093af1630"), + SourceId = new Guid("31252741-4d0b-448f-b85c-d6538f7ca565"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("6a065cf7-5a1e-445f-98d1-043b96aa75e8"), + SourceId = new Guid("31252741-4d0b-448f-b85c-d6538f7ca565"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }, + new + { + Id = new Guid("97b780f9-1854-4ee2-88f9-cc9027152826"), + SourceId = new Guid("3b8c9766-f5d5-44ec-a014-45ddce4a9a0c"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("745d9370-217a-4c3c-9289-215003e963f2"), + SourceId = new Guid("3b8c9766-f5d5-44ec-a014-45ddce4a9a0c"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("660485e7-ff2a-4375-979a-62769a8becfa"), + SourceId = new Guid("3b8c9766-f5d5-44ec-a014-45ddce4a9a0c"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }, + new + { + Id = new Guid("9bed47b1-ba64-453a-91df-0c08b9ab61c1"), + SourceId = new Guid("fc0a229f-bde4-4f61-b4eb-75d1285665dd"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("393c3856-dbc5-4620-9a35-635894691dfc"), + SourceId = new Guid("fc0a229f-bde4-4f61-b4eb-75d1285665dd"), + TagId = new Guid("5654a834-6f9a-4caa-a153-d4644204001c") + }, + new + { + Id = new Guid("2565182d-475e-4217-8b8d-b2ba9dbeb092"), + SourceId = new Guid("fc0a229f-bde4-4f61-b4eb-75d1285665dd"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }, + new + { + Id = new Guid("95d32d18-c7c5-4749-8166-7d83d9ad9bf6"), + SourceId = new Guid("6854c858-b82d-44f5-bb48-620c9bf9825d"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("a02eecd4-f17b-42eb-beea-331873191aa9"), + SourceId = new Guid("6854c858-b82d-44f5-bb48-620c9bf9825d"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("151e6d99-9d03-4acb-8058-0f49bbb4a589"), + SourceId = new Guid("6854c858-b82d-44f5-bb48-620c9bf9825d"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }, + new + { + Id = new Guid("06b2c915-82cf-4115-a537-cbc91d80783a"), + SourceId = new Guid("3e24ec11-86a4-4db8-9337-35a00988da7d"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("e3566a06-d006-4937-9bb5-90eade9d2bac"), + SourceId = new Guid("3e24ec11-86a4-4db8-9337-35a00988da7d"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("8949a721-7dfc-428c-a03d-6721e5b35879"), + SourceId = new Guid("3e24ec11-86a4-4db8-9337-35a00988da7d"), + TagId = new Guid("9f2effc4-5f9d-419a-83a9-598c41afc2b8") + }, + new + { + Id = new Guid("0b19d00f-4483-4f55-818a-a7b34925b37b"), + SourceId = new Guid("e2ce0a01-9d10-4133-a989-618739aa3854"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("4f514879-ca5a-45a2-9c9c-4834f7f98bd7"), + SourceId = new Guid("e2ce0a01-9d10-4133-a989-618739aa3854"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("b12ca17b-650c-4fbb-84a3-10057f365551"), + SourceId = new Guid("e2ce0a01-9d10-4133-a989-618739aa3854"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }, + new + { + Id = new Guid("5ec2412d-81f3-4157-924d-44ad65e0a24a"), + SourceId = new Guid("49bcf6b7-15bc-4f30-a3d6-3c88837aa039"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("4998ee1a-d54c-4d29-be1d-8df7c60ee7b3"), + SourceId = new Guid("49bcf6b7-15bc-4f30-a3d6-3c88837aa039"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("1a3984fc-b3b1-4d9f-bdff-716636bb2353"), + SourceId = new Guid("49bcf6b7-15bc-4f30-a3d6-3c88837aa039"), + TagId = new Guid("6c939d6c-0461-46c8-b9b6-83021b68df71") + }, + new + { + Id = new Guid("2d10c3ff-332e-46bb-a37b-0ca725ee91a1"), + SourceId = new Guid("170a9aef-a708-41a4-8370-a8526f2c055f"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("c2535359-45dd-458c-9b5a-bf7991047d9b"), + SourceId = new Guid("170a9aef-a708-41a4-8370-a8526f2c055f"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("e219d7a3-c5d4-4f54-a275-75c5bc9df4cb"), + SourceId = new Guid("170a9aef-a708-41a4-8370-a8526f2c055f"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }, + new + { + Id = new Guid("d6846cf7-bca1-48d3-b78d-188d94e2f80a"), + SourceId = new Guid("5aebacd6-b4d5-4839-b2f0-533ff3329941"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("b6d1bfd8-38e9-4365-936d-ed3c6c09b357"), + SourceId = new Guid("5aebacd6-b4d5-4839-b2f0-533ff3329941"), + TagId = new Guid("529cd044-c4fe-4c50-8748-080584a48d12") + }, + new + { + Id = new Guid("c8f40af2-f3b9-40de-ab83-dd5e74962bfb"), + SourceId = new Guid("5aebacd6-b4d5-4839-b2f0-533ff3329941"), + TagId = new Guid("b99b8260-8eb2-4a30-8d59-2f251a83e68c") + }, + new + { + Id = new Guid("4762d902-fdfe-413d-9c8d-76e619e81c7d"), + SourceId = new Guid("5aebacd6-b4d5-4839-b2f0-533ff3329941"), + TagId = new Guid("34cc1d82-002a-4c8c-b783-e46d9c88dde5") + }, + new + { + Id = new Guid("5136ab36-5504-49e6-9422-0afeff788cbf"), + SourceId = new Guid("e023416d-7d91-4d92-bd5f-37d57c54f6b4"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("fc69d2fa-df60-45d6-8e79-41105f488cbf"), + SourceId = new Guid("e023416d-7d91-4d92-bd5f-37d57c54f6b4"), + TagId = new Guid("529cd044-c4fe-4c50-8748-080584a48d12") + }, + new + { + Id = new Guid("f534eefe-6616-4631-8354-c8e86140632b"), + SourceId = new Guid("e023416d-7d91-4d92-bd5f-37d57c54f6b4"), + TagId = new Guid("b99b8260-8eb2-4a30-8d59-2f251a83e68c") + }, + new + { + Id = new Guid("688e1338-51ad-40c5-a537-4fcc91fd0ed0"), + SourceId = new Guid("e023416d-7d91-4d92-bd5f-37d57c54f6b4"), + TagId = new Guid("34cc1d82-002a-4c8c-b783-e46d9c88dde5") + }, + new + { + Id = new Guid("7afa8562-f5b4-4cdf-92c0-af0594d4be4d"), + SourceId = new Guid("604e9548-9b99-4bd4-ab90-4bf90b4a1807"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("ce7a5f4b-071f-4c3e-af81-758a1b918c39"), + SourceId = new Guid("604e9548-9b99-4bd4-ab90-4bf90b4a1807"), + TagId = new Guid("2139e644-a9fa-49ce-8eea-7380e7936527") + }, + new + { + Id = new Guid("025c4e26-53d0-469f-9c52-3cec92eda13a"), + SourceId = new Guid("cc29eb91-2efb-4d57-8d14-bb5356cbfbb8"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("25a4e9e3-c047-485a-9684-c3f897c6d8b8"), + SourceId = new Guid("cc29eb91-2efb-4d57-8d14-bb5356cbfbb8"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("fa9322b8-0640-43ea-847f-4a05bf1b160d"), + SourceId = new Guid("cc29eb91-2efb-4d57-8d14-bb5356cbfbb8"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }, + new + { + Id = new Guid("f60c2ec2-8e72-462f-8144-987d9ba37751"), + SourceId = new Guid("57597b92-2b9d-422e-b0a7-9b11326c879b"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("ad8b55a9-c949-469f-956a-5624ecb7f577"), + SourceId = new Guid("57597b92-2b9d-422e-b0a7-9b11326c879b"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("dc2ed602-baa8-4a9e-8f38-b1cf40d5bb59"), + SourceId = new Guid("57597b92-2b9d-422e-b0a7-9b11326c879b"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }, + new + { + Id = new Guid("311ea1df-f338-4d3a-83f9-9f69c9fb5593"), + SourceId = new Guid("13f235b7-a6f6-4da4-83a1-13b5af26700a"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("e33ba004-f85b-4714-a381-ee25fafd52f0"), + SourceId = new Guid("13f235b7-a6f6-4da4-83a1-13b5af26700a"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("99d1cd54-f21d-407d-b1e1-54a6bd79f6ab"), + SourceId = new Guid("13f235b7-a6f6-4da4-83a1-13b5af26700a"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }, + new + { + Id = new Guid("1e00ba56-95e3-41d7-8eb0-fb2a839faf9c"), + SourceId = new Guid("e16286a8-78a9-4b86-ba4b-c844f7099336"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("f28044d3-15c7-4bee-9b92-8b418e03a191"), + SourceId = new Guid("e16286a8-78a9-4b86-ba4b-c844f7099336"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("9f83d191-c57f-4c08-bdf9-6b0c97b8367c"), + SourceId = new Guid("e16286a8-78a9-4b86-ba4b-c844f7099336"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }, + new + { + Id = new Guid("9d6cd55b-f966-4e6a-973d-d548d7183da2"), + SourceId = new Guid("321e1615-6328-4532-85ac-22d53d59c164"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("32ea560c-f4ef-4bb9-844c-72206f5f0e5f"), + SourceId = new Guid("321e1615-6328-4532-85ac-22d53d59c164"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("cbc029ee-c8f0-493a-b9e7-837420e76734"), + SourceId = new Guid("321e1615-6328-4532-85ac-22d53d59c164"), + TagId = new Guid("54d48566-0e56-4e41-a2c6-35f71d9e35fe") + }, + new + { + Id = new Guid("0eedd3af-e5dd-45f7-af31-15b9dee5c89f"), + SourceId = new Guid("70873440-0058-4669-aa74-352489f9e6da"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("1536f46f-ea14-4fb8-b8d5-9aae924266ff"), + SourceId = new Guid("70873440-0058-4669-aa74-352489f9e6da"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("b3e5aec3-aee3-41a6-a797-e56c87d2f920"), + SourceId = new Guid("70873440-0058-4669-aa74-352489f9e6da"), + TagId = new Guid("54d48566-0e56-4e41-a2c6-35f71d9e35fe") + }, + new + { + Id = new Guid("9c690333-2c73-4cfc-b113-b4feb4fbc30a"), + SourceId = new Guid("797060c0-3b47-4654-9176-32d719baad69"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("ab8a6089-a6b8-4031-934e-d296f8253fd3"), + SourceId = new Guid("797060c0-3b47-4654-9176-32d719baad69"), + TagId = new Guid("4c65a245-2631-47ed-a84d-e4699e9a997c") + }, + new + { + Id = new Guid("2753275a-efd1-41e9-84cd-8b5399cb2ea3"), + SourceId = new Guid("797060c0-3b47-4654-9176-32d719baad69"), + TagId = new Guid("6c939d6c-0461-46c8-b9b6-83021b68df71") + }, + new + { + Id = new Guid("508b2fd4-609d-4ce2-925a-a18c7b9889db"), + SourceId = new Guid("e4b3e286-3589-49de-892b-d0d06e719115"), + TagId = new Guid("8e8ec992-5b4b-43d9-b290-73fbfcd8a32e") + }, + new + { + Id = new Guid("1bc5683b-b0fa-4a72-b9d8-bfc9c45360c6"), + SourceId = new Guid("e4b3e286-3589-49de-892b-d0d06e719115"), + TagId = new Guid("cfa03d74-4386-4e3f-a841-bb6498a02adc") + }, + new + { + Id = new Guid("6ce3a3ff-775d-4606-a3eb-462daa663500"), + SourceId = new Guid("e4b3e286-3589-49de-892b-d0d06e719115"), + TagId = new Guid("4c65a245-2631-47ed-a84d-e4699e9a997c") + }, + new + { + Id = new Guid("d6550af5-7e26-49cc-b9bb-65ddfe9ccd67"), + SourceId = new Guid("e4b3e286-3589-49de-892b-d0d06e719115"), + TagId = new Guid("6c939d6c-0461-46c8-b9b6-83021b68df71") + }, + new + { + Id = new Guid("85583770-ceb5-4114-b5dd-b00cc6dcb199"), + SourceId = new Guid("136c7569-601c-4f16-9ca4-bd14bfa8c16a"), + TagId = new Guid("8e8ec992-5b4b-43d9-b290-73fbfcd8a32e") + }, + new + { + Id = new Guid("934a294d-04fc-4f74-971c-1dac01b70086"), + SourceId = new Guid("136c7569-601c-4f16-9ca4-bd14bfa8c16a"), + TagId = new Guid("f06891c5-6324-4bab-b836-a78a4d2c603d") + }, + new + { + Id = new Guid("f739b571-d14b-4366-8c75-4b39aadd24f7"), + SourceId = new Guid("136c7569-601c-4f16-9ca4-bd14bfa8c16a"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }, + new + { + Id = new Guid("dd0ea6e1-0684-4a1e-b143-37bdb1ba7c5a"), + SourceId = new Guid("136c7569-601c-4f16-9ca4-bd14bfa8c16a"), + TagId = new Guid("e0a5af2c-cb45-40da-90d7-7ba59c662bcb") + }, + new + { + Id = new Guid("e9e871d8-2a97-4117-bdd3-99a28be03cad"), + SourceId = new Guid("5c3b0099-2a8a-49a5-8c68-d24ebc9fac07"), + TagId = new Guid("8e8ec992-5b4b-43d9-b290-73fbfcd8a32e") + }, + new + { + Id = new Guid("6225f6e1-2901-4727-8aa5-c34d46730169"), + SourceId = new Guid("5c3b0099-2a8a-49a5-8c68-d24ebc9fac07"), + TagId = new Guid("cbb60009-18c3-479b-a09a-cfe976fb5abd") + }, + new + { + Id = new Guid("6db9856b-05fa-4036-b700-6f6288bc8318"), + SourceId = new Guid("5c3b0099-2a8a-49a5-8c68-d24ebc9fac07"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }, + new + { + Id = new Guid("5c40c521-5f8b-4fd2-984c-78c7a3e583bd"), + SourceId = new Guid("5c3b0099-2a8a-49a5-8c68-d24ebc9fac07"), + TagId = new Guid("ae20fd4f-a451-42cb-aae6-875d0bfacaa7") + }, + new + { + Id = new Guid("3442ffd8-d296-4f9a-8b56-e1c83a468053"), + SourceId = new Guid("cb68ce1c-c741-41df-a1c9-8ce34529b421"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("d49cfbc4-2c58-4d27-b68c-6ead4192affc"), + SourceId = new Guid("cb68ce1c-c741-41df-a1c9-8ce34529b421"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("b460f29d-8f45-4d10-9529-145c54287a6f"), + SourceId = new Guid("cb68ce1c-c741-41df-a1c9-8ce34529b421"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }, + new + { + Id = new Guid("942b3d98-af39-40f6-a2d4-e4acb4d48df2"), + SourceId = new Guid("a71c23bf-67e9-4955-bc8e-6226bd86ba90"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("050c5ae6-0a40-40fc-b900-4e16ec28159c"), + SourceId = new Guid("a71c23bf-67e9-4955-bc8e-6226bd86ba90"), + TagId = new Guid("464a2260-130c-4a4b-8aa6-4f477cd1760f") + }, + new + { + Id = new Guid("f603da29-65c5-4713-80bd-ec8023b9c94d"), + SourceId = new Guid("454f4f08-58cf-4ab7-9012-1e5ba663570c"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("a5c23469-5399-4848-bf82-14e195c357ac"), + SourceId = new Guid("454f4f08-58cf-4ab7-9012-1e5ba663570c"), + TagId = new Guid("464a2260-130c-4a4b-8aa6-4f477cd1760f") + }, + new + { + Id = new Guid("4d30d497-e95e-428f-b8ed-b38f67a62894"), + SourceId = new Guid("dac8cec6-c84d-4287-b0b9-71f4cf304c7e"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("c5e74bb8-c08b-4498-baad-11ce59564015"), + SourceId = new Guid("dac8cec6-c84d-4287-b0b9-71f4cf304c7e"), + TagId = new Guid("34cc1d82-002a-4c8c-b783-e46d9c88dde5") + }, + new + { + Id = new Guid("eb0ca62c-bf7c-40c8-946d-fadfd107cffb"), + SourceId = new Guid("296270ec-026b-4011-83ff-1466ba577864"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("24eaf488-7213-4419-8f9e-edb3222c7004"), + SourceId = new Guid("296270ec-026b-4011-83ff-1466ba577864"), + TagId = new Guid("85e1d7f3-0150-48ac-9c29-17acec559f32") + }, + new + { + Id = new Guid("0ee0d08c-66c0-4f83-ad46-92e3971d13d8"), + SourceId = new Guid("ba078388-eedf-4ccb-af5f-3f686f4ece4a"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("e19e6158-1b33-4f1b-9757-6b50f180f007"), + SourceId = new Guid("ba078388-eedf-4ccb-af5f-3f686f4ece4a"), + TagId = new Guid("bcc08307-a922-4de1-aa17-8ff9dc438425") + }, + new + { + Id = new Guid("4ee63615-d18c-4f48-8b9a-8aff52d12006"), + SourceId = new Guid("05765a1b-b174-4ad1-9f63-3189a52303f9"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("50d237f6-59fa-44bc-96f4-344bab93f074"), + SourceId = new Guid("05765a1b-b174-4ad1-9f63-3189a52303f9"), + TagId = new Guid("bcc08307-a922-4de1-aa17-8ff9dc438425") + }, + new + { + Id = new Guid("39b9de90-e868-41c1-8390-632d344850d7"), + SourceId = new Guid("b5594347-6ec0-44c0-b381-7ae47f04fa56"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("853e103e-0105-46c0-869b-3b7c3ed19a46"), + SourceId = new Guid("b5594347-6ec0-44c0-b381-7ae47f04fa56"), + TagId = new Guid("2139e644-a9fa-49ce-8eea-7380e7936527") + }, + new + { + Id = new Guid("30042a38-0f29-4378-b9e9-12c64a043913"), + SourceId = new Guid("c169d8ad-a9fe-44e9-af6a-fd337ae10000"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("3073fa94-5ff5-411f-b8b7-25663045c4da"), + SourceId = new Guid("c169d8ad-a9fe-44e9-af6a-fd337ae10000"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("8512f634-1ddd-405a-841d-45545534904f"), + SourceId = new Guid("c169d8ad-a9fe-44e9-af6a-fd337ae10000"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }, + new + { + Id = new Guid("6159dd07-94f5-471e-b6ea-0cd73b2de872"), + SourceId = new Guid("c169d8ad-a9fe-44e9-af6a-fd337ae10000"), + TagId = new Guid("ae20fd4f-a451-42cb-aae6-875d0bfacaa7") + }, + new + { + Id = new Guid("95fe22e4-5977-4f74-947d-9cc8dba28f47"), + SourceId = new Guid("c7b863af-0565-4bec-9238-9383272637ef"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("b27c172f-99b0-4441-a3a4-d499e302d509"), + SourceId = new Guid("c7b863af-0565-4bec-9238-9383272637ef"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("a06bb1f8-a548-44b5-8d41-02af27aeeaf7"), + SourceId = new Guid("c7b863af-0565-4bec-9238-9383272637ef"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }, + new + { + Id = new Guid("a12ba2dd-791c-44c0-963c-d0d0224f7aef"), + SourceId = new Guid("33b14253-7c02-4b79-8490-c8ed10312230"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("c55962cf-5967-4d67-a1a6-b2d1a856930b"), + SourceId = new Guid("33b14253-7c02-4b79-8490-c8ed10312230"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("0b335897-3cb8-4bd8-8e01-3435785fdc9c"), + SourceId = new Guid("33b14253-7c02-4b79-8490-c8ed10312230"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }, + new + { + Id = new Guid("3a64826a-9a6f-4d7d-9798-1c86350846d1"), + SourceId = new Guid("33b14253-7c02-4b79-8490-c8ed10312230"), + TagId = new Guid("ae20fd4f-a451-42cb-aae6-875d0bfacaa7") + }, + new + { + Id = new Guid("93013951-10cd-474a-834f-fa528a3fd95b"), + SourceId = new Guid("6c5fe2d4-8547-4fb0-8966-d148f8d77af7"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("f075a7a6-561f-4cdf-b71e-dd7a1f8f960f"), + SourceId = new Guid("6c5fe2d4-8547-4fb0-8966-d148f8d77af7"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("a3c4d53e-42e2-4639-a0e6-adb0ce838bdb"), + SourceId = new Guid("6c5fe2d4-8547-4fb0-8966-d148f8d77af7"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }, + new + { + Id = new Guid("a12d8fd1-873f-4ac7-b4c5-4bffc6cb3479"), + SourceId = new Guid("6c5fe2d4-8547-4fb0-8966-d148f8d77af7"), + TagId = new Guid("ae20fd4f-a451-42cb-aae6-875d0bfacaa7") + }, + new + { + Id = new Guid("22aacfa5-7c90-4d6f-9b04-79805d6d01e3"), + SourceId = new Guid("068fb7bb-4b76-4261-bc9a-274625fe8890"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("4b63e46c-1f07-4dc7-8c63-2a8eab4fb054"), + SourceId = new Guid("068fb7bb-4b76-4261-bc9a-274625fe8890"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("674e3fd9-f4a8-4b81-9f11-4de28cc824dd"), + SourceId = new Guid("068fb7bb-4b76-4261-bc9a-274625fe8890"), + TagId = new Guid("6fc28243-4b6e-4013-8121-0bc4d8397552") + }, + new + { + Id = new Guid("53a0fa14-82ed-49a0-9f6c-0ad21e2c8ff8"), + SourceId = new Guid("60747323-2a4c-44e1-880d-7e5e36642645"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("2134a235-9b9d-4010-b627-2de04e044a0f"), + SourceId = new Guid("60747323-2a4c-44e1-880d-7e5e36642645"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("70b71eaf-20ce-489e-bf24-77201fb2a506"), + SourceId = new Guid("60747323-2a4c-44e1-880d-7e5e36642645"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }, + new + { + Id = new Guid("e71cb8fe-52b0-4e6e-b344-0e5631996192"), + SourceId = new Guid("2fa2ff6a-9a8b-4a2d-b0e4-6e7e14679236"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("f0c920e4-64c9-4b1f-b3ce-780a1d0c34b3"), + SourceId = new Guid("2fa2ff6a-9a8b-4a2d-b0e4-6e7e14679236"), + TagId = new Guid("2e2cf727-d007-4293-8f2c-f8e54baf06ce") + }, + new + { + Id = new Guid("9730da62-1ba7-4f35-a1e0-6b7a0d6c4e3f"), + SourceId = new Guid("b2fb23b4-3f6d-440c-9ec0-99216f233fd0"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("83188472-1463-4bcf-8d36-6166906332ac"), + SourceId = new Guid("b2fb23b4-3f6d-440c-9ec0-99216f233fd0"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("6939baf3-2726-4b72-9ef2-ad710cdecc88"), + SourceId = new Guid("b2fb23b4-3f6d-440c-9ec0-99216f233fd0"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }, + new + { + Id = new Guid("374ede54-919b-4c31-9738-18b31de40898"), + SourceId = new Guid("b9ec9be8-e1f2-49d6-b461-b61872bb369c"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("bad63cda-47c7-45ef-867c-c271c48b2e13"), + SourceId = new Guid("b9ec9be8-e1f2-49d6-b461-b61872bb369c"), + TagId = new Guid("f74ca29a-e9bc-4111-94d7-ebe5beccd72c") + }, + new + { + Id = new Guid("6a63cd8b-9bfd-4c7b-9fc4-add3af28ab09"), + SourceId = new Guid("65141fc2-760f-4866-86c5-08cc764cabac"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("afed64e4-db23-4f41-9519-6570621c0b30"), + SourceId = new Guid("65141fc2-760f-4866-86c5-08cc764cabac"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("e86d098a-4561-40b9-83e0-d35612ecfafe"), + SourceId = new Guid("65141fc2-760f-4866-86c5-08cc764cabac"), + TagId = new Guid("47ea1951-5508-4647-a805-138a861974ff") + }, + new + { + Id = new Guid("985748c8-d5a4-48c5-a41b-b23c8726d297"), + SourceId = new Guid("65141fc2-760f-4866-86c5-08cc764cabac"), + TagId = new Guid("19db4d3d-b17a-45ff-9853-cdce9630c08f") + }, + new + { + Id = new Guid("9d0a0cea-e52f-4418-8652-3a152788a1ff"), + SourceId = new Guid("9e3453b3-be81-4f3b-93da-45192677c6a9"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("a0d39b98-3a62-4153-9a5f-b678bd754ff0"), + SourceId = new Guid("9e3453b3-be81-4f3b-93da-45192677c6a9"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("53d62165-056b-4061-9415-696925c16912"), + SourceId = new Guid("9e3453b3-be81-4f3b-93da-45192677c6a9"), + TagId = new Guid("47ea1951-5508-4647-a805-138a861974ff") + }, + new + { + Id = new Guid("4ef14b7a-d41d-4eab-b58d-db7ce19bcdbb"), + SourceId = new Guid("9e3453b3-be81-4f3b-93da-45192677c6a9"), + TagId = new Guid("19db4d3d-b17a-45ff-9853-cdce9630c08f") + }, + new + { + Id = new Guid("683efe05-2dee-444a-95e9-5f23909ef186"), + SourceId = new Guid("9519622d-50f0-4a8d-8728-c58c12255b6f"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("06253ef3-b019-488a-a553-9da5fafb3ac1"), + SourceId = new Guid("9519622d-50f0-4a8d-8728-c58c12255b6f"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("931d85e9-49d4-44dd-b062-d8c7ce5d241a"), + SourceId = new Guid("9519622d-50f0-4a8d-8728-c58c12255b6f"), + TagId = new Guid("6c939d6c-0461-46c8-b9b6-83021b68df71") + }, + new + { + Id = new Guid("89efc9f8-a1a8-4ca4-accb-72741ca89d18"), + SourceId = new Guid("9519622d-50f0-4a8d-8728-c58c12255b6f"), + TagId = new Guid("aa8de58c-f61f-4b4c-ad4c-ff05245e052c") + }, + new + { + Id = new Guid("c3d9032b-5b1b-4c67-9267-fcf6a890a660"), + SourceId = new Guid("9519622d-50f0-4a8d-8728-c58c12255b6f"), + TagId = new Guid("3afdf0a8-2504-4436-8483-2b9566b881f2") + }, + new + { + Id = new Guid("4f09a167-0888-4ee7-9f0a-0cf691870de1"), + SourceId = new Guid("1994c4bc-aeb9-4242-81df-5bafffca6fd0"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("8477f4da-0bb6-4f77-9d5b-e8681d275e34"), + SourceId = new Guid("1994c4bc-aeb9-4242-81df-5bafffca6fd0"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("4b5473d0-5275-4615-94e2-596a86b383dd"), + SourceId = new Guid("1994c4bc-aeb9-4242-81df-5bafffca6fd0"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }, + new + { + Id = new Guid("faddd74b-9234-4412-be8c-74b05ce04dc7"), + SourceId = new Guid("1994c4bc-aeb9-4242-81df-5bafffca6fd0"), + TagId = new Guid("4aaeef66-ae04-4d75-8920-72fb30031c53") + }, + new + { + Id = new Guid("b681073b-3a8a-469e-8d03-db44364f0557"), + SourceId = new Guid("3a346f18-1781-408b-bc8d-2f8e4cbc64ea"), + TagId = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff") + }, + new + { + Id = new Guid("eeb9e776-c05e-499f-ad3d-49dd23a8f1e1"), + SourceId = new Guid("3a346f18-1781-408b-bc8d-2f8e4cbc64ea"), + TagId = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31") + }, + new + { + Id = new Guid("2765ef2f-338c-4f92-a1d2-4ed1dc54ed83"), + SourceId = new Guid("3a346f18-1781-408b-bc8d-2f8e4cbc64ea"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }, + new + { + Id = new Guid("35a38041-59d7-4924-ad4a-92ac14988e54"), + SourceId = new Guid("1f913a9a-4e5a-4925-89c1-51e985f63e9d"), + TagId = new Guid("8e8ec992-5b4b-43d9-b290-73fbfcd8a32e") + }, + new + { + Id = new Guid("9f4fd158-51d1-4aa9-ad41-0d59d26ac38f"), + SourceId = new Guid("1f913a9a-4e5a-4925-89c1-51e985f63e9d"), + TagId = new Guid("f06891c5-6324-4bab-b836-a78a4d2c603d") + }, + new + { + Id = new Guid("371d2b27-1b5f-4f87-bb12-3e3b11651b44"), + SourceId = new Guid("1f913a9a-4e5a-4925-89c1-51e985f63e9d"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }, + new + { + Id = new Guid("0840963c-95b1-40c4-9806-a3f96a510b2f"), + SourceId = new Guid("e5afb99f-47ff-4822-89fa-2ff8859a5c42"), + TagId = new Guid("8e8ec992-5b4b-43d9-b290-73fbfcd8a32e") + }, + new + { + Id = new Guid("48a9904d-be59-4aac-8abb-5959bbd10a36"), + SourceId = new Guid("e5afb99f-47ff-4822-89fa-2ff8859a5c42"), + TagId = new Guid("f06891c5-6324-4bab-b836-a78a4d2c603d") + }, + new + { + Id = new Guid("291c690f-9a53-4ae0-9480-2475af09adeb"), + SourceId = new Guid("e5afb99f-47ff-4822-89fa-2ff8859a5c42"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }, + new + { + Id = new Guid("526e62ee-b4d1-4575-ba8a-8ee1ba5a041c"), + SourceId = new Guid("e5afb99f-47ff-4822-89fa-2ff8859a5c42"), + TagId = new Guid("ae20fd4f-a451-42cb-aae6-875d0bfacaa7") + }, + new + { + Id = new Guid("acc922e5-bf8f-4bd7-bc82-7e75d87bc245"), + SourceId = new Guid("7c0ac71c-0e8e-425b-ac26-424b152415f5"), + TagId = new Guid("8e8ec992-5b4b-43d9-b290-73fbfcd8a32e") + }, + new + { + Id = new Guid("996ec670-045e-45e0-bb3b-d0218e36704d"), + SourceId = new Guid("7c0ac71c-0e8e-425b-ac26-424b152415f5"), + TagId = new Guid("f06891c5-6324-4bab-b836-a78a4d2c603d") + }, + new + { + Id = new Guid("cc81438d-b3a7-44cb-bb91-7b8b01b2b700"), + SourceId = new Guid("7c0ac71c-0e8e-425b-ac26-424b152415f5"), + TagId = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb") + }); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsSubTitle", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uuid") + .HasColumnName("id"); + + b.Property("NewsId") + .HasColumnType("uuid") + .HasColumnName("news_id"); + + b.Property("Title") + .IsRequired() + .HasColumnType("text") + .HasColumnName("title"); + + b.HasKey("Id") + .HasName("pk_news_sub_titles"); + + b.HasIndex("NewsId") + .IsUnique() + .HasDatabaseName("ix_news_sub_titles_news_id"); + + b.HasIndex("Title") + .HasDatabaseName("ix_news_sub_titles_title"); + + b.ToTable("news_sub_titles", (string)null); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsTag", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uuid") + .HasColumnName("id"); + + b.Property("Name") + .IsRequired() + .HasColumnType("text") + .HasColumnName("name"); + + b.HasKey("Id") + .HasName("pk_news_tags"); + + b.HasIndex("Name") + .HasDatabaseName("ix_news_tags_name"); + + b.ToTable("news_tags", (string)null); + + b.HasData( + new + { + Id = new Guid("9503b07f-c97a-49e7-b177-97e3a293dc31"), + Name = "Russia" + }, + new + { + Id = new Guid("f06891c5-6324-4bab-b836-a78a4d2c603d"), + Name = "USA" + }, + new + { + Id = new Guid("cbb60009-18c3-479b-a09a-cfe976fb5abd"), + Name = "UK" + }, + new + { + Id = new Guid("d57fa572-a720-432c-a372-b8ade1a7edff"), + Name = "Russian" + }, + new + { + Id = new Guid("8e8ec992-5b4b-43d9-b290-73fbfcd8a32e"), + Name = "English" + }, + new + { + Id = new Guid("302d7e19-c80f-4e1a-8877-3e9b17f9baeb"), + Name = "Politics" + }, + new + { + Id = new Guid("6c939d6c-0461-46c8-b9b6-83021b68df71"), + Name = "Sport" + }, + new + { + Id = new Guid("3afdf0a8-2504-4436-8483-2b9566b881f2"), + Name = "KHL" + }, + new + { + Id = new Guid("aa8de58c-f61f-4b4c-ad4c-ff05245e052c"), + Name = "Hockey" + }, + new + { + Id = new Guid("9f2effc4-5f9d-419a-83a9-598c41afc2b8"), + Name = "Moscow" + }, + new + { + Id = new Guid("6fc28243-4b6e-4013-8121-0bc4d8397552"), + Name = "Saint-Petersburg" + }, + new + { + Id = new Guid("54d48566-0e56-4e41-a2c6-35f71d9e35fe"), + Name = "Chelyabinsk" + }, + new + { + Id = new Guid("5654a834-6f9a-4caa-a153-d4644204001c"), + Name = "Belarus" + }, + new + { + Id = new Guid("b99b8260-8eb2-4a30-8d59-2f251a83e68c"), + Name = "Technologies" + }, + new + { + Id = new Guid("529cd044-c4fe-4c50-8748-080584a48d12"), + Name = "IT" + }, + new + { + Id = new Guid("2139e644-a9fa-49ce-8eea-7380e7936527"), + Name = "Video games" + }, + new + { + Id = new Guid("4c65a245-2631-47ed-a84d-e4699e9a997c"), + Name = "Cybersport" + }, + new + { + Id = new Guid("cfa03d74-4386-4e3f-a841-bb6498a02adc"), + Name = "Counter Strike" + }, + new + { + Id = new Guid("e0a5af2c-cb45-40da-90d7-7ba59c662bcb"), + Name = "New York" + }, + new + { + Id = new Guid("464a2260-130c-4a4b-8aa6-4f477cd1760f"), + Name = "Auto" + }, + new + { + Id = new Guid("34cc1d82-002a-4c8c-b783-e46d9c88dde5"), + Name = "Computer hardware" + }, + new + { + Id = new Guid("85e1d7f3-0150-48ac-9c29-17acec559f32"), + Name = "Movie" + }, + new + { + Id = new Guid("bcc08307-a922-4de1-aa17-8ff9dc438425"), + Name = "Show business" + }, + new + { + Id = new Guid("ae20fd4f-a451-42cb-aae6-875d0bfacaa7"), + Name = "TV" + }, + new + { + Id = new Guid("2e2cf727-d007-4293-8f2c-f8e54baf06ce"), + Name = "Woman" + }, + new + { + Id = new Guid("f74ca29a-e9bc-4111-94d7-ebe5beccd72c"), + Name = "Travel" + }, + new + { + Id = new Guid("47ea1951-5508-4647-a805-138a861974ff"), + Name = "Economy" + }, + new + { + Id = new Guid("19db4d3d-b17a-45ff-9853-cdce9630c08f"), + Name = "Finance" + }, + new + { + Id = new Guid("4aaeef66-ae04-4d75-8920-72fb30031c53"), + Name = "Radio" + }); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsTextDescription", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uuid") + .HasColumnName("id"); + + b.Property("Description") + .IsRequired() + .HasColumnType("text") + .HasColumnName("description"); + + b.Property("NewsId") + .HasColumnType("uuid") + .HasColumnName("news_id"); + + b.HasKey("Id") + .HasName("pk_news_text_descriptions"); + + b.HasIndex("NewsId") + .IsUnique() + .HasDatabaseName("ix_news_text_descriptions_news_id"); + + b.ToTable("news_text_descriptions", (string)null); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsVideo", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uuid") + .HasColumnName("id"); + + b.Property("NewsId") + .HasColumnType("uuid") + .HasColumnName("news_id"); + + b.Property("Url") + .IsRequired() + .HasColumnType("text") + .HasColumnName("url"); + + b.HasKey("Id") + .HasName("pk_news_videos"); + + b.HasIndex("NewsId") + .IsUnique() + .HasDatabaseName("ix_news_videos_news_id"); + + b.ToTable("news_videos", (string)null); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsView", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uuid") + .HasColumnName("id"); + + b.Property("IpAddress") + .IsRequired() + .HasColumnType("text") + .HasColumnName("ip_address"); + + b.Property("NewsId") + .HasColumnType("uuid") + .HasColumnName("news_id"); + + b.Property("ViewedAt") + .HasColumnType("timestamp with time zone") + .HasColumnName("viewed_at"); + + b.HasKey("Id") + .HasName("pk_news_views"); + + b.HasIndex("IpAddress") + .HasDatabaseName("ix_news_views_ip_address"); + + b.HasIndex("NewsId") + .HasDatabaseName("ix_news_views_news_id"); + + b.HasIndex("ViewedAt") + .HasDatabaseName("ix_news_views_viewed_at"); + + b.ToTable("news_views", (string)null); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.Reaction", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uuid") + .HasColumnName("id"); + + b.Property("Title") + .IsRequired() + .HasColumnType("text") + .HasColumnName("title"); + + b.HasKey("Id") + .HasName("pk_reactions"); + + b.HasIndex("Title") + .HasDatabaseName("ix_reactions_title"); + + b.ToTable("reactions", (string)null); + + b.HasData( + new + { + Id = new Guid("79569ca3-5279-4f10-a69b-a1c01bc4aafc"), + Title = "Angry" + }, + new + { + Id = new Guid("64f9b137-6ec4-4026-84f6-371fd15b2d7a"), + Title = "Astonished" + }, + new + { + Id = new Guid("7f2a58e7-34f8-4551-a1d6-8cd2f132351d"), + Title = "Frown" + }, + new + { + Id = new Guid("181976e1-087d-42dc-9b2b-baeaa79431c7"), + Title = "Laughing" + }, + new + { + Id = new Guid("60e71cd7-12a3-4c2e-b626-ffba6415b814"), + Title = "Neutral" + }, + new + { + Id = new Guid("44135679-ac4c-4a3b-8f60-eb645bdda922"), + Title = "Smile" + }, + new + { + Id = new Guid("1ef9784e-14e3-4435-b536-9467a7a66176"), + Title = "Surprise" + }, + new + { + Id = new Guid("81f8a4e0-f850-411b-ba9a-6131c6768658"), + Title = "Tear" + }, + new + { + Id = new Guid("04cd624c-2d10-4be5-8128-7a529e690cc8"), + Title = "Thumbs down" + }, + new + { + Id = new Guid("015aae0f-d855-4f47-b001-4b45c5a837db"), + Title = "Thumbs up" + }); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.ReactionIcon", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uuid") + .HasColumnName("id"); + + b.Property("IconClass") + .IsRequired() + .HasColumnType("text") + .HasColumnName("icon_class"); + + b.Property("IconColor") + .IsRequired() + .HasColumnType("text") + .HasColumnName("icon_color"); + + b.Property("ReactionId") + .HasColumnType("uuid") + .HasColumnName("reaction_id"); + + b.HasKey("Id") + .HasName("pk_reaction_icons"); + + b.HasIndex("ReactionId") + .IsUnique() + .HasDatabaseName("ix_reaction_icons_reaction_id"); + + b.ToTable("reaction_icons", (string)null); + + b.HasData( + new + { + Id = new Guid("c815a7e1-385a-4b64-9351-04c32b9a45d5"), + IconClass = "bi-emoji-angry-fill", + IconColor = "red", + ReactionId = new Guid("79569ca3-5279-4f10-a69b-a1c01bc4aafc") + }, + new + { + Id = new Guid("02c35a67-344b-4520-b04c-ea8e92d62dbf"), + IconClass = "bi-emoji-astonished-fill", + IconColor = "orange", + ReactionId = new Guid("64f9b137-6ec4-4026-84f6-371fd15b2d7a") + }, + new + { + Id = new Guid("e1f9ac21-e918-4ab7-a051-43e0fec7e7c5"), + IconClass = "bi-emoji-frown-fill", + IconColor = "aqua", + ReactionId = new Guid("7f2a58e7-34f8-4551-a1d6-8cd2f132351d") + }, + new + { + Id = new Guid("334e08bb-a136-4977-a8e2-d24c01108242"), + IconClass = "bi-emoji-laughing-fill", + IconColor = "lime", + ReactionId = new Guid("181976e1-087d-42dc-9b2b-baeaa79431c7") + }, + new + { + Id = new Guid("26c1d336-5429-4343-ac30-651bab560ca9"), + IconClass = "bi-emoji-neutral-fill", + IconColor = "orange", + ReactionId = new Guid("60e71cd7-12a3-4c2e-b626-ffba6415b814") + }, + new + { + Id = new Guid("2ffbe56a-543f-4f3b-8196-8886ce47f12a"), + IconClass = "bi-emoji-smile-fill", + IconColor = "lime", + ReactionId = new Guid("44135679-ac4c-4a3b-8f60-eb645bdda922") + }, + new + { + Id = new Guid("19ca1fb2-5435-4f26-90b6-9e96d0d6821c"), + IconClass = "bi-emoji-surprise-fill", + IconColor = "lime", + ReactionId = new Guid("1ef9784e-14e3-4435-b536-9467a7a66176") + }, + new + { + Id = new Guid("2158fcf6-039c-49f4-8e2e-9867ba006e1f"), + IconClass = "bi-emoji-tear-fill", + IconColor = "aqua", + ReactionId = new Guid("81f8a4e0-f850-411b-ba9a-6131c6768658") + }, + new + { + Id = new Guid("ef493f75-50d3-49c2-9aad-01edf6cd55c2"), + IconClass = "bi-hand-thumbs-down-fill", + IconColor = "red", + ReactionId = new Guid("04cd624c-2d10-4be5-8128-7a529e690cc8") + }, + new + { + Id = new Guid("66874c88-c3f0-4836-b340-d186b264e32c"), + IconClass = "bi-hand-thumbs-up-fill", + IconColor = "lime", + ReactionId = new Guid("015aae0f-d855-4f47-b001-4b45c5a837db") + }); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.News", b => + { + b.HasOne("NewsAggregator.News.Entities.NewsEditor", "Editor") + .WithMany("News") + .HasForeignKey("EditorId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("fk_news_news_editors_editor_id"); + + b.Navigation("Editor"); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsEditor", b => + { + b.HasOne("NewsAggregator.News.Entities.NewsSource", "Source") + .WithMany("Editors") + .HasForeignKey("SourceId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("fk_news_editors_news_sources_source_id"); + + b.Navigation("Source"); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsHtmlDescription", b => + { + b.HasOne("NewsAggregator.News.Entities.News", "News") + .WithOne("HtmlDescription") + .HasForeignKey("NewsAggregator.News.Entities.NewsHtmlDescription", "NewsId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("fk_news_html_descriptions_news_news_id"); + + b.Navigation("News"); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsParseEditorSettings", b => + { + b.HasOne("NewsAggregator.News.Entities.NewsParseSettings", "ParseSettings") + .WithOne("ParseEditorSettings") + .HasForeignKey("NewsAggregator.News.Entities.NewsParseEditorSettings", "ParseSettingsId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("fk_news_parse_editor_settings_news_parse_settings_parse_settin"); + + b.Navigation("ParseSettings"); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsParseModifiedAtSettings", b => + { + b.HasOne("NewsAggregator.News.Entities.NewsParseSettings", "ParseSettings") + .WithOne("ParseModifiedAtSettings") + .HasForeignKey("NewsAggregator.News.Entities.NewsParseModifiedAtSettings", "ParseSettingsId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("fk_news_parse_modified_at_settings_news_parse_settings_parse_s"); + + b.Navigation("ParseSettings"); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsParseModifiedAtSettingsFormat", b => + { + b.HasOne("NewsAggregator.News.Entities.NewsParseModifiedAtSettings", "Settings") + .WithMany("Formats") + .HasForeignKey("NewsParseModifiedAtSettingsId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("fk_news_parse_modified_at_settings_formats_news_parse_modified"); + + b.Navigation("Settings"); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsParsePictureSettings", b => + { + b.HasOne("NewsAggregator.News.Entities.NewsParseSettings", "ParseSettings") + .WithOne("ParsePictureSettings") + .HasForeignKey("NewsAggregator.News.Entities.NewsParsePictureSettings", "ParseSettingsId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("fk_news_parse_picture_settings_news_parse_settings_parse_setti"); + + b.Navigation("ParseSettings"); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsParsePublishedAtSettings", b => + { + b.HasOne("NewsAggregator.News.Entities.NewsParseSettings", "ParseSettings") + .WithOne("ParsePublishedAtSettings") + .HasForeignKey("NewsAggregator.News.Entities.NewsParsePublishedAtSettings", "ParseSettingsId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("fk_news_parse_published_at_settings_news_parse_settings_parse_"); + + b.Navigation("ParseSettings"); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsParsePublishedAtSettingsFormat", b => + { + b.HasOne("NewsAggregator.News.Entities.NewsParsePublishedAtSettings", "Settings") + .WithMany("Formats") + .HasForeignKey("NewsParsePublishedAtSettingsId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("fk_news_parse_published_at_settings_formats_news_parse_publish"); + + b.Navigation("Settings"); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsParseSettings", b => + { + b.HasOne("NewsAggregator.News.Entities.NewsSource", "Source") + .WithOne("ParseSettings") + .HasForeignKey("NewsAggregator.News.Entities.NewsParseSettings", "SourceId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("fk_news_parse_settings_news_sources_source_id"); + + b.Navigation("Source"); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsParseSubTitleSettings", b => + { + b.HasOne("NewsAggregator.News.Entities.NewsParseSettings", "ParseSettings") + .WithOne("ParseSubTitleSettings") + .HasForeignKey("NewsAggregator.News.Entities.NewsParseSubTitleSettings", "ParseSettingsId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("fk_news_parse_sub_title_settings_news_parse_settings_parse_set"); + + b.Navigation("ParseSettings"); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsParseVideoSettings", b => + { + b.HasOne("NewsAggregator.News.Entities.NewsParseSettings", "ParseSettings") + .WithOne("ParseVideoSettings") + .HasForeignKey("NewsAggregator.News.Entities.NewsParseVideoSettings", "ParseSettingsId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("fk_news_parse_video_settings_news_parse_settings_parse_setting"); + + b.Navigation("ParseSettings"); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsPicture", b => + { + b.HasOne("NewsAggregator.News.Entities.News", "News") + .WithOne("Picture") + .HasForeignKey("NewsAggregator.News.Entities.NewsPicture", "NewsId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("fk_news_pictures_news_news_id"); + + b.Navigation("News"); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsReaction", b => + { + b.HasOne("NewsAggregator.News.Entities.News", "News") + .WithMany("Reactions") + .HasForeignKey("NewsId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("fk_news_reactions_news_news_id"); + + b.HasOne("NewsAggregator.News.Entities.Reaction", "Reaction") + .WithMany("News") + .HasForeignKey("ReactionId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("fk_news_reactions_reactions_reaction_id"); + + b.Navigation("News"); + + b.Navigation("Reaction"); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsSearchSettings", b => + { + b.HasOne("NewsAggregator.News.Entities.NewsSource", "Source") + .WithOne("SearchSettings") + .HasForeignKey("NewsAggregator.News.Entities.NewsSearchSettings", "SourceId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("fk_news_search_settings_news_sources_source_id"); + + b.Navigation("Source"); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsSourceLogo", b => + { + b.HasOne("NewsAggregator.News.Entities.NewsSource", "Source") + .WithOne("Logo") + .HasForeignKey("NewsAggregator.News.Entities.NewsSourceLogo", "SourceId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("fk_news_source_logos_news_sources_source_id"); + + b.Navigation("Source"); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsSourceTag", b => + { + b.HasOne("NewsAggregator.News.Entities.NewsSource", "Source") + .WithMany("Tags") + .HasForeignKey("SourceId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("fk_news_source_tags_news_sources_source_id"); + + b.HasOne("NewsAggregator.News.Entities.NewsTag", "Tag") + .WithMany("Sources") + .HasForeignKey("TagId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("fk_news_source_tags_news_tags_tag_id"); + + b.Navigation("Source"); + + b.Navigation("Tag"); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsSubTitle", b => + { + b.HasOne("NewsAggregator.News.Entities.News", "News") + .WithOne("SubTitle") + .HasForeignKey("NewsAggregator.News.Entities.NewsSubTitle", "NewsId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("fk_news_sub_titles_news_news_id"); + + b.Navigation("News"); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsTextDescription", b => + { + b.HasOne("NewsAggregator.News.Entities.News", "News") + .WithOne("TextDescription") + .HasForeignKey("NewsAggregator.News.Entities.NewsTextDescription", "NewsId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("fk_news_text_descriptions_news_news_id"); + + b.Navigation("News"); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsVideo", b => + { + b.HasOne("NewsAggregator.News.Entities.News", "News") + .WithOne("Video") + .HasForeignKey("NewsAggregator.News.Entities.NewsVideo", "NewsId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("fk_news_videos_news_news_id"); + + b.Navigation("News"); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsView", b => + { + b.HasOne("NewsAggregator.News.Entities.News", "News") + .WithMany("Views") + .HasForeignKey("NewsId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("fk_news_views_news_news_id"); + + b.Navigation("News"); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.ReactionIcon", b => + { + b.HasOne("NewsAggregator.News.Entities.Reaction", "Reaction") + .WithOne("Icon") + .HasForeignKey("NewsAggregator.News.Entities.ReactionIcon", "ReactionId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("fk_reaction_icons_reactions_reaction_id"); + + b.Navigation("Reaction"); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.News", b => + { + b.Navigation("HtmlDescription"); + + b.Navigation("Picture"); + + b.Navigation("Reactions"); + + b.Navigation("SubTitle"); + + b.Navigation("TextDescription"); + + b.Navigation("Video"); + + b.Navigation("Views"); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsEditor", b => + { + b.Navigation("News"); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsParseModifiedAtSettings", b => + { + b.Navigation("Formats"); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsParsePublishedAtSettings", b => + { + b.Navigation("Formats"); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsParseSettings", b => + { + b.Navigation("ParseEditorSettings"); + + b.Navigation("ParseModifiedAtSettings"); + + b.Navigation("ParsePictureSettings"); + + b.Navigation("ParsePublishedAtSettings"); + + b.Navigation("ParseSubTitleSettings"); + + b.Navigation("ParseVideoSettings"); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsSource", b => + { + b.Navigation("Editors"); + + b.Navigation("Logo"); + + b.Navigation("ParseSettings"); + + b.Navigation("SearchSettings"); + + b.Navigation("Tags"); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.NewsTag", b => + { + b.Navigation("Sources"); + }); + + modelBuilder.Entity("NewsAggregator.News.Entities.Reaction", b => + { + b.Navigation("Icon"); + + b.Navigation("News"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/src/Microservices/Services/News/NewsAggregator.News/Databases/EntityFramework/News/Migrations/20240330072418_ChangedIconColorValues.cs b/src/Microservices/Services/News/NewsAggregator.News/Databases/EntityFramework/News/Migrations/20240330072418_ChangedIconColorValues.cs new file mode 100644 index 0000000..9cb9aa8 --- /dev/null +++ b/src/Microservices/Services/News/NewsAggregator.News/Databases/EntityFramework/News/Migrations/20240330072418_ChangedIconColorValues.cs @@ -0,0 +1,47 @@ +using System; +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace NewsAggregator.News.Databases.EntityFramework.News.Migrations +{ + /// + public partial class ChangedIconColorValues : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.UpdateData( + table: "reaction_icons", + keyColumn: "id", + keyValue: new Guid("2158fcf6-039c-49f4-8e2e-9867ba006e1f"), + column: "icon_color", + value: "aqua"); + + migrationBuilder.UpdateData( + table: "reaction_icons", + keyColumn: "id", + keyValue: new Guid("e1f9ac21-e918-4ab7-a051-43e0fec7e7c5"), + column: "icon_color", + value: "aqua"); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.UpdateData( + table: "reaction_icons", + keyColumn: "id", + keyValue: new Guid("2158fcf6-039c-49f4-8e2e-9867ba006e1f"), + column: "icon_color", + value: "auqa"); + + migrationBuilder.UpdateData( + table: "reaction_icons", + keyColumn: "id", + keyValue: new Guid("e1f9ac21-e918-4ab7-a051-43e0fec7e7c5"), + column: "icon_color", + value: "auqa"); + } + } +} diff --git a/src/Microservices/Services/News/NewsAggregator.News/Databases/EntityFramework/News/Migrations/NewsDbContextModelSnapshot.cs b/src/Microservices/Services/News/NewsAggregator.News/Databases/EntityFramework/News/Migrations/NewsDbContextModelSnapshot.cs index fefa712..022a50e 100644 --- a/src/Microservices/Services/News/NewsAggregator.News/Databases/EntityFramework/News/Migrations/NewsDbContextModelSnapshot.cs +++ b/src/Microservices/Services/News/NewsAggregator.News/Databases/EntityFramework/News/Migrations/NewsDbContextModelSnapshot.cs @@ -6111,6 +6111,11 @@ protected override void BuildModel(ModelBuilder modelBuilder) .HasColumnType("text") .HasColumnName("icon_class"); + b.Property("IconColor") + .IsRequired() + .HasColumnType("text") + .HasColumnName("icon_color"); + b.Property("ReactionId") .HasColumnType("uuid") .HasColumnName("reaction_id"); @@ -6129,60 +6134,70 @@ protected override void BuildModel(ModelBuilder modelBuilder) { Id = new Guid("c815a7e1-385a-4b64-9351-04c32b9a45d5"), IconClass = "bi-emoji-angry-fill", + IconColor = "red", ReactionId = new Guid("79569ca3-5279-4f10-a69b-a1c01bc4aafc") }, new { Id = new Guid("02c35a67-344b-4520-b04c-ea8e92d62dbf"), IconClass = "bi-emoji-astonished-fill", + IconColor = "orange", ReactionId = new Guid("64f9b137-6ec4-4026-84f6-371fd15b2d7a") }, new { Id = new Guid("e1f9ac21-e918-4ab7-a051-43e0fec7e7c5"), IconClass = "bi-emoji-frown-fill", + IconColor = "aqua", ReactionId = new Guid("7f2a58e7-34f8-4551-a1d6-8cd2f132351d") }, new { Id = new Guid("334e08bb-a136-4977-a8e2-d24c01108242"), IconClass = "bi-emoji-laughing-fill", + IconColor = "lime", ReactionId = new Guid("181976e1-087d-42dc-9b2b-baeaa79431c7") }, new { Id = new Guid("26c1d336-5429-4343-ac30-651bab560ca9"), IconClass = "bi-emoji-neutral-fill", + IconColor = "orange", ReactionId = new Guid("60e71cd7-12a3-4c2e-b626-ffba6415b814") }, new { Id = new Guid("2ffbe56a-543f-4f3b-8196-8886ce47f12a"), IconClass = "bi-emoji-smile-fill", + IconColor = "lime", ReactionId = new Guid("44135679-ac4c-4a3b-8f60-eb645bdda922") }, new { Id = new Guid("19ca1fb2-5435-4f26-90b6-9e96d0d6821c"), IconClass = "bi-emoji-surprise-fill", + IconColor = "lime", ReactionId = new Guid("1ef9784e-14e3-4435-b536-9467a7a66176") }, new { Id = new Guid("2158fcf6-039c-49f4-8e2e-9867ba006e1f"), IconClass = "bi-emoji-tear-fill", + IconColor = "aqua", ReactionId = new Guid("81f8a4e0-f850-411b-ba9a-6131c6768658") }, new { Id = new Guid("ef493f75-50d3-49c2-9aad-01edf6cd55c2"), IconClass = "bi-hand-thumbs-down-fill", + IconColor = "red", ReactionId = new Guid("04cd624c-2d10-4be5-8128-7a529e690cc8") }, new { Id = new Guid("66874c88-c3f0-4836-b340-d186b264e32c"), IconClass = "bi-hand-thumbs-up-fill", + IconColor = "lime", ReactionId = new Guid("015aae0f-d855-4f47-b001-4b45c5a837db") }); }); diff --git a/src/Microservices/Services/News/NewsAggregator.News/Databases/EntityFramework/News/Repositories/NewsReactionRepository.cs b/src/Microservices/Services/News/NewsAggregator.News/Databases/EntityFramework/News/Repositories/NewsReactionRepository.cs new file mode 100644 index 0000000..b1e4b44 --- /dev/null +++ b/src/Microservices/Services/News/NewsAggregator.News/Databases/EntityFramework/News/Repositories/NewsReactionRepository.cs @@ -0,0 +1,40 @@ +using Microsoft.EntityFrameworkCore; +using NewsAggregator.News.DTOs; +using NewsAggregator.News.Entities; +using NewsAggregator.News.Repositories; + +namespace NewsAggregator.News.Databases.EntityFramework.News.Repositories +{ + public class NewsReactionRepository : NewsDbRepository, INewsReactionRepository + { + public NewsReactionRepository(NewsDbContext dbContext) : base(dbContext) + { + + } + + public async Task ContainsAsync(Guid newsId, string ipAddress, + CancellationToken cancellationToken = default) + { + return await FindOneByExpressionAsync(reaction => reaction.NewsId == newsId + && reaction.IpAddress == ipAddress, cancellationToken) != null; + } + + public async Task> GetNewsReactionsByNewsIdAsync(Guid newsId, + CancellationToken cancellationToken = default) + { + return await _dbContext.Reactions.AsNoTracking() + .Include(reaction => reaction.Icon) + .Include(reaction => reaction.News.Where(news => news.Id == newsId)) + .Select(reaction => new NewsReactionDto + { + NewsId = newsId, + ReactionId = reaction.Id, + ReactionTitle = reaction.Title, + ReactionIconClass = reaction.Icon.IconClass, + ReactionIconColor = reaction.Icon.IconColor, + Count = reaction.News.Count + }) + .ToListAsync(); + } + } +} diff --git a/src/Microservices/Services/News/NewsAggregator.News/Entities/ReactionIcon.cs b/src/Microservices/Services/News/NewsAggregator.News/Entities/ReactionIcon.cs index e24140f..3855af9 100644 --- a/src/Microservices/Services/News/NewsAggregator.News/Entities/ReactionIcon.cs +++ b/src/Microservices/Services/News/NewsAggregator.News/Entities/ReactionIcon.cs @@ -8,6 +8,8 @@ public class ReactionIcon : EntityBase public string IconClass { get; set; } + public string IconColor { get; set; } + public virtual Reaction? Reaction { get; set; } } } diff --git a/src/Microservices/Services/News/NewsAggregator.News/Extensions/HttpContextExtensions.cs b/src/Microservices/Services/News/NewsAggregator.News/Extensions/HttpContextExtensions.cs new file mode 100644 index 0000000..90b27e0 --- /dev/null +++ b/src/Microservices/Services/News/NewsAggregator.News/Extensions/HttpContextExtensions.cs @@ -0,0 +1,14 @@ +using Microsoft.AspNetCore.Http; + +namespace NewsAggregator.News.Extensions +{ + public static class HttpContextExtensions + { + public static string GetConnectionIpAddress(this HttpContext context) + { + return context.Request.Headers.FirstOrDefault(header => header.Key == "X-Real-IP").Value.FirstOrDefault() + ?? context.Connection.RemoteIpAddress?.ToString() + ?? string.Empty; + } + } +} diff --git a/src/Microservices/Services/News/NewsAggregator.News/Extensions/ModelBuilderExtensions.cs b/src/Microservices/Services/News/NewsAggregator.News/Extensions/ModelBuilderExtensions.cs index c291567..7d7e6c0 100644 --- a/src/Microservices/Services/News/NewsAggregator.News/Extensions/ModelBuilderExtensions.cs +++ b/src/Microservices/Services/News/NewsAggregator.News/Extensions/ModelBuilderExtensions.cs @@ -62,7 +62,8 @@ private static ModelBuilder AddReaction(this ModelBuilder modelBuilder, Reaction { Id = reaction.Icon.Id, ReactionId = reaction.Id, - IconClass = reaction.Icon.IconClass + IconClass = reaction.Icon.IconClass, + IconColor = reaction.Icon.IconColor }); } diff --git a/src/Microservices/Services/News/NewsAggregator.News/MessageConsumers/RegisterNewsReactionConsumer.cs b/src/Microservices/Services/News/NewsAggregator.News/MessageConsumers/RegisterNewsReactionConsumer.cs new file mode 100644 index 0000000..c3548a6 --- /dev/null +++ b/src/Microservices/Services/News/NewsAggregator.News/MessageConsumers/RegisterNewsReactionConsumer.cs @@ -0,0 +1,29 @@ +using MassTransit; +using MediatR; +using NewsAggregator.News.Messages; +using NewsAggregator.News.UseCases.Commands; + +namespace NewsAggregator.News.MessageConsumers +{ + public class RegisterNewsReactionConsumer : IConsumer + { + private readonly IMediator _mediator; + + public RegisterNewsReactionConsumer(IMediator mediator) + { + _mediator = mediator; + } + + public async Task Consume(ConsumeContext context) + { + var exists = await _mediator.Send(new ContainsNewsReactionCommand(context.Message.NewsId, + context.Message.IpAddress)); + + if (!exists) + { + await _mediator.Send(new RegisterNewsReactionCommand(context.Message.NewsId, context.Message.ReactionId, + context.Message.IpAddress, context.Message.ReactedAt)); + } + } + } +} diff --git a/src/Microservices/Services/News/NewsAggregator.News/Messages/NewsReacted.cs b/src/Microservices/Services/News/NewsAggregator.News/Messages/NewsReacted.cs new file mode 100644 index 0000000..20d599e --- /dev/null +++ b/src/Microservices/Services/News/NewsAggregator.News/Messages/NewsReacted.cs @@ -0,0 +1,26 @@ +using MassTransit; +using MediatR; + +namespace NewsAggregator.News.Messages +{ + [MessageUrn("news-reacted")] + public class NewsReacted : INotification + { + public Guid NewsId { get; } + + public Guid ReactionId { get; } + + public string IpAddress { get; } + + public DateTime ReactedAt { get; } + + public NewsReacted(Guid newsId, Guid reactionId, string ipAddress) + { + NewsId = newsId; + ReactionId = reactionId; + IpAddress = ipAddress; + ReactedAt = DateTime.UtcNow; + + } + } +} diff --git a/src/Microservices/Services/News/NewsAggregator.News/MvcNewsModuleServiceCollectionExtensions.cs b/src/Microservices/Services/News/NewsAggregator.News/MvcNewsModuleServiceCollectionExtensions.cs index 09df9ee..d869b3d 100644 --- a/src/Microservices/Services/News/NewsAggregator.News/MvcNewsModuleServiceCollectionExtensions.cs +++ b/src/Microservices/Services/News/NewsAggregator.News/MvcNewsModuleServiceCollectionExtensions.cs @@ -64,6 +64,22 @@ public static IServiceCollection AddMvcNewsModule(this IServiceCollection servic messagePublishConfigurator.Durable = true; messagePublishConfigurator.ExchangeType = ExchangeType.Direct; }); + + configurator.Send(messageSendConfigurator => + { + messageSendConfigurator.UseRoutingKeyFormatter(context => "news.reacted"); + }); + + configurator.Message(messageConfigurator => + { + messageConfigurator.SetEntityName("news.events"); + }); + + configurator.Publish(messagePublishConfigurator => + { + messagePublishConfigurator.Durable = true; + messagePublishConfigurator.ExchangeType = ExchangeType.Direct; + }); }); }); diff --git a/src/Microservices/Services/News/NewsAggregator.News/NewsModuleServiceCollectionExtensions.cs b/src/Microservices/Services/News/NewsAggregator.News/NewsModuleServiceCollectionExtensions.cs index 8fa2fe0..37be5ba 100644 --- a/src/Microservices/Services/News/NewsAggregator.News/NewsModuleServiceCollectionExtensions.cs +++ b/src/Microservices/Services/News/NewsAggregator.News/NewsModuleServiceCollectionExtensions.cs @@ -30,6 +30,7 @@ public static IServiceCollection AddNewsModule(this IServiceCollection services, busConfigurator.AddConsumer(); busConfigurator.AddConsumer(); busConfigurator.AddConsumer(); + busConfigurator.AddConsumer(); busConfigurator.UsingRabbitMq((context, configurator) => { @@ -328,6 +329,28 @@ public static IServiceCollection AddNewsModule(this IServiceCollection services, endpointConfigurator.Consumer(context); }); + + configurator.Message(messageConfigurator => + { + messageConfigurator.SetEntityName("news.events"); + }); + + configurator.ReceiveEndpoint("register-news-reaction", endpointConfigurator => + { + endpointConfigurator.Durable = true; + endpointConfigurator.ConfigureConsumeTopology = false; + + endpointConfigurator.Bind("news.events", exchangeBindingConfigurator => + { + exchangeBindingConfigurator.ExchangeType = ExchangeType.Direct; + exchangeBindingConfigurator.RoutingKey = "news.reacted"; + }); + + endpointConfigurator.Consumer(context, configurator => + { + configurator.UseConcurrencyLimit(1); + }); + }); }); }); diff --git a/src/Microservices/Services/News/NewsAggregator.News/NewsReactions/AngryReaction.cs b/src/Microservices/Services/News/NewsAggregator.News/NewsReactions/AngryReaction.cs index 472bd12..9fc3c53 100644 --- a/src/Microservices/Services/News/NewsAggregator.News/NewsReactions/AngryReaction.cs +++ b/src/Microservices/Services/News/NewsAggregator.News/NewsReactions/AngryReaction.cs @@ -11,7 +11,8 @@ public AngryReaction() Icon = new ReactionIcon { Id = Guid.Parse("c815a7e1-385a-4b64-9351-04c32b9a45d5"), - IconClass = "bi-emoji-angry-fill" + IconClass = "bi-emoji-angry-fill", + IconColor = "red" }; } } diff --git a/src/Microservices/Services/News/NewsAggregator.News/NewsReactions/AstonishedReaction.cs b/src/Microservices/Services/News/NewsAggregator.News/NewsReactions/AstonishedReaction.cs index 3c1e7bc..480dc18 100644 --- a/src/Microservices/Services/News/NewsAggregator.News/NewsReactions/AstonishedReaction.cs +++ b/src/Microservices/Services/News/NewsAggregator.News/NewsReactions/AstonishedReaction.cs @@ -11,7 +11,8 @@ public AstonishedReaction() Icon = new ReactionIcon { Id = Guid.Parse("02c35a67-344b-4520-b04c-ea8e92d62dbf"), - IconClass = "bi-emoji-astonished-fill" + IconClass = "bi-emoji-astonished-fill", + IconColor = "orange" }; } } diff --git a/src/Microservices/Services/News/NewsAggregator.News/NewsReactions/FrownReaction.cs b/src/Microservices/Services/News/NewsAggregator.News/NewsReactions/FrownReaction.cs index 5d7e9be..edff321 100644 --- a/src/Microservices/Services/News/NewsAggregator.News/NewsReactions/FrownReaction.cs +++ b/src/Microservices/Services/News/NewsAggregator.News/NewsReactions/FrownReaction.cs @@ -11,7 +11,8 @@ public FrownReaction() Icon = new ReactionIcon { Id = Guid.Parse("e1f9ac21-e918-4ab7-a051-43e0fec7e7c5"), - IconClass = "bi-emoji-frown-fill" + IconClass = "bi-emoji-frown-fill", + IconColor = "aqua" }; } } diff --git a/src/Microservices/Services/News/NewsAggregator.News/NewsReactions/LaughingReaction.cs b/src/Microservices/Services/News/NewsAggregator.News/NewsReactions/LaughingReaction.cs index 99514e1..ecd91b0 100644 --- a/src/Microservices/Services/News/NewsAggregator.News/NewsReactions/LaughingReaction.cs +++ b/src/Microservices/Services/News/NewsAggregator.News/NewsReactions/LaughingReaction.cs @@ -11,7 +11,8 @@ public LaughingReaction() Icon = new ReactionIcon { Id = Guid.Parse("334e08bb-a136-4977-a8e2-d24c01108242"), - IconClass = "bi-emoji-laughing-fill" + IconClass = "bi-emoji-laughing-fill", + IconColor = "lime", }; } } diff --git a/src/Microservices/Services/News/NewsAggregator.News/NewsReactions/NeutralReaction.cs b/src/Microservices/Services/News/NewsAggregator.News/NewsReactions/NeutralReaction.cs index c6a84bb..ac0b5a2 100644 --- a/src/Microservices/Services/News/NewsAggregator.News/NewsReactions/NeutralReaction.cs +++ b/src/Microservices/Services/News/NewsAggregator.News/NewsReactions/NeutralReaction.cs @@ -11,7 +11,8 @@ public NeutralReaction() Icon = new ReactionIcon { Id = Guid.Parse("26c1d336-5429-4343-ac30-651bab560ca9"), - IconClass = "bi-emoji-neutral-fill" + IconClass = "bi-emoji-neutral-fill", + IconColor = "orange" }; } } diff --git a/src/Microservices/Services/News/NewsAggregator.News/NewsReactions/SmileReaction.cs b/src/Microservices/Services/News/NewsAggregator.News/NewsReactions/SmileReaction.cs index 7e4a858..dae7e42 100644 --- a/src/Microservices/Services/News/NewsAggregator.News/NewsReactions/SmileReaction.cs +++ b/src/Microservices/Services/News/NewsAggregator.News/NewsReactions/SmileReaction.cs @@ -11,7 +11,8 @@ public SmileReaction() Icon = new ReactionIcon { Id = Guid.Parse("2ffbe56a-543f-4f3b-8196-8886ce47f12a"), - IconClass = "bi-emoji-smile-fill" + IconClass = "bi-emoji-smile-fill", + IconColor = "lime" }; } } diff --git a/src/Microservices/Services/News/NewsAggregator.News/NewsReactions/SurpriseReaction.cs b/src/Microservices/Services/News/NewsAggregator.News/NewsReactions/SurpriseReaction.cs index 83771b9..d22dee8 100644 --- a/src/Microservices/Services/News/NewsAggregator.News/NewsReactions/SurpriseReaction.cs +++ b/src/Microservices/Services/News/NewsAggregator.News/NewsReactions/SurpriseReaction.cs @@ -11,7 +11,8 @@ public SurpriseReaction() Icon = new ReactionIcon { Id = Guid.Parse("19ca1fb2-5435-4f26-90b6-9e96d0d6821c"), - IconClass = "bi-emoji-surprise-fill" + IconClass = "bi-emoji-surprise-fill", + IconColor = "lime" }; } } diff --git a/src/Microservices/Services/News/NewsAggregator.News/NewsReactions/TearReaction.cs b/src/Microservices/Services/News/NewsAggregator.News/NewsReactions/TearReaction.cs index 0cea38c..647a740 100644 --- a/src/Microservices/Services/News/NewsAggregator.News/NewsReactions/TearReaction.cs +++ b/src/Microservices/Services/News/NewsAggregator.News/NewsReactions/TearReaction.cs @@ -11,7 +11,8 @@ public TearReaction() Icon = new ReactionIcon { Id = Guid.Parse("2158fcf6-039c-49f4-8e2e-9867ba006e1f"), - IconClass = "bi-emoji-tear-fill" + IconClass = "bi-emoji-tear-fill", + IconColor = "aqua" }; } } diff --git a/src/Microservices/Services/News/NewsAggregator.News/NewsReactions/ThumbsDown.cs b/src/Microservices/Services/News/NewsAggregator.News/NewsReactions/ThumbsDown.cs index 7bd7f85..80870cc 100644 --- a/src/Microservices/Services/News/NewsAggregator.News/NewsReactions/ThumbsDown.cs +++ b/src/Microservices/Services/News/NewsAggregator.News/NewsReactions/ThumbsDown.cs @@ -11,7 +11,8 @@ public ThumbsDown() Icon = new ReactionIcon { Id = Guid.Parse("ef493f75-50d3-49c2-9aad-01edf6cd55c2"), - IconClass = "bi-hand-thumbs-down-fill" + IconClass = "bi-hand-thumbs-down-fill", + IconColor = "red" }; } } diff --git a/src/Microservices/Services/News/NewsAggregator.News/NewsReactions/ThumbsUp.cs b/src/Microservices/Services/News/NewsAggregator.News/NewsReactions/ThumbsUp.cs index 66f9fe7..a8c5661 100644 --- a/src/Microservices/Services/News/NewsAggregator.News/NewsReactions/ThumbsUp.cs +++ b/src/Microservices/Services/News/NewsAggregator.News/NewsReactions/ThumbsUp.cs @@ -11,7 +11,8 @@ public ThumbsUp() Icon = new ReactionIcon { Id = Guid.Parse("66874c88-c3f0-4836-b340-d186b264e32c"), - IconClass = "bi-hand-thumbs-up-fill" + IconClass = "bi-hand-thumbs-up-fill", + IconColor = "lime" }; } } diff --git a/src/Microservices/Services/News/NewsAggregator.News/Repositories/INewsReactionRepository.cs b/src/Microservices/Services/News/NewsAggregator.News/Repositories/INewsReactionRepository.cs new file mode 100644 index 0000000..614322f --- /dev/null +++ b/src/Microservices/Services/News/NewsAggregator.News/Repositories/INewsReactionRepository.cs @@ -0,0 +1,15 @@ +using NewsAggregator.Domain.Repositories; +using NewsAggregator.News.DTOs; +using NewsAggregator.News.Entities; + +namespace NewsAggregator.News.Repositories +{ + public interface INewsReactionRepository : IRepository + { + Task ContainsAsync(Guid newsId, string ipAddress, + CancellationToken cancellationToken = default); + + Task> GetNewsReactionsByNewsIdAsync(Guid newsId, + CancellationToken cancellationToken = default); + } +} diff --git a/src/Microservices/Services/News/NewsAggregator.News/UseCases/Commands/ContainsNewsReactionCommand.cs b/src/Microservices/Services/News/NewsAggregator.News/UseCases/Commands/ContainsNewsReactionCommand.cs new file mode 100644 index 0000000..cd7d968 --- /dev/null +++ b/src/Microservices/Services/News/NewsAggregator.News/UseCases/Commands/ContainsNewsReactionCommand.cs @@ -0,0 +1,61 @@ +using FluentValidation; +using MediatR; +using NewsAggregator.Domain.Infrastructure.MessageBrokers; +using NewsAggregator.News.Messages; +using NewsAggregator.News.Repositories; + +namespace NewsAggregator.News.UseCases.Commands +{ + public class ContainsNewsReactionCommand : IRequest + { + public Guid NewsId { get; } + + public string IpAddress { get; } + + public ContainsNewsReactionCommand(Guid newsId, string ipAddress) + { + NewsId = newsId; + IpAddress = ipAddress; + } + + internal class Validator : AbstractValidator + { + public Validator() + { + RuleFor(command => command.NewsId).NotEmpty(); + RuleFor(command => command.IpAddress).NotEmpty(); + } + } + + internal class Handler : IRequestHandler + { + private readonly INewsReactionRepository _repository; + + public Handler(INewsReactionRepository repository) + { + _repository = repository; + } + + public async Task Handle(ContainsNewsReactionCommand request, CancellationToken cancellationToken) + { + return await _repository.ContainsAsync(request.NewsId, + request.IpAddress, cancellationToken); + } + } + + internal class NewsReactedNotificationHandler : INotificationHandler + { + private readonly IMessageBus _messageBus; + + public NewsReactedNotificationHandler(IMessageBus messageBus) + { + _messageBus = messageBus; + } + + public async Task Handle(NewsReacted notification, CancellationToken cancellationToken) + { + await _messageBus.SendAsync(notification, cancellationToken); + } + } + } +} diff --git a/src/Microservices/Services/News/NewsAggregator.News/UseCases/Commands/RegisterNewsReactionCommand.cs b/src/Microservices/Services/News/NewsAggregator.News/UseCases/Commands/RegisterNewsReactionCommand.cs new file mode 100644 index 0000000..81cc411 --- /dev/null +++ b/src/Microservices/Services/News/NewsAggregator.News/UseCases/Commands/RegisterNewsReactionCommand.cs @@ -0,0 +1,80 @@ +using FluentValidation; +using MediatR; +using NewsAggregator.Domain.Infrastructure.Databases; +using NewsAggregator.Domain.Repositories; +using NewsAggregator.News.Entities; +using System.Transactions; + +namespace NewsAggregator.News.UseCases.Commands +{ + public class RegisterNewsReactionCommand : IRequest + { + public Guid NewsId { get; } + + public Guid ReactionId { get; } + + public string IpAddress { get; } + + public DateTime ReactedAt { get; } + + public RegisterNewsReactionCommand(Guid newsId, Guid reactionId, string ipAddress, DateTime reactedAt) + { + NewsId = newsId; + ReactionId = reactionId; + IpAddress = ipAddress; + ReactedAt = reactedAt; + } + + internal class Validator : AbstractValidator + { + public Validator() + { + RuleFor(command => command.NewsId).NotEmpty(); + RuleFor(command => command.ReactionId).NotEmpty(); + RuleFor(command => command.IpAddress).NotEmpty(); + } + } + + internal class Handler : IRequestHandler + { + private readonly IUnitOfWork _unitOfWork; + private readonly IRepository _repository; + + public Handler(IUnitOfWork unitOfWork, IRepository repository) + { + _unitOfWork = unitOfWork; + _repository = repository; + } + + public async Task Handle(RegisterNewsReactionCommand request, CancellationToken cancellationToken) + { + using (var transaction = new TransactionScope(TransactionScopeOption.Required, + new TransactionOptions() { IsolationLevel = IsolationLevel.RepeatableRead }, + TransactionScopeAsyncFlowOption.Enabled)) + { + try + { + _repository.Add( + new NewsReaction + { + NewsId = request.NewsId, + ReactionId = request.ReactionId, + IpAddress = request.IpAddress, + ReactedAt = request.ReactedAt + }); + + await _unitOfWork.SaveChangesAsync(cancellationToken); + + transaction.Complete(); + + return true; + } + catch + { + return false; + } + } + } + } + } +} diff --git a/src/Microservices/Services/News/NewsAggregator.News/UseCases/Queries/GetNewsReactionsQuery.cs b/src/Microservices/Services/News/NewsAggregator.News/UseCases/Queries/GetNewsReactionsQuery.cs new file mode 100644 index 0000000..9f1e0bb --- /dev/null +++ b/src/Microservices/Services/News/NewsAggregator.News/UseCases/Queries/GetNewsReactionsQuery.cs @@ -0,0 +1,33 @@ +using MediatR; +using NewsAggregator.News.DTOs; +using NewsAggregator.News.Repositories; + +namespace NewsAggregator.News.UseCases.Queries +{ + public class GetNewsReactionsQuery : IRequest> + { + public Guid NewsId { get; } + + public GetNewsReactionsQuery(Guid newsId) + { + NewsId = newsId; + } + + internal class Handler : IRequestHandler> + { + private readonly INewsReactionRepository _repository; + + public Handler(INewsReactionRepository repository) + { + _repository = repository; + } + + public async Task> Handle(GetNewsReactionsQuery request, + CancellationToken cancellationToken) + { + return await _repository.GetNewsReactionsByNewsIdAsync(request.NewsId, + cancellationToken); + } + } + } +} diff --git a/src/Microservices/Services/News/NewsAggregator.News/Web/Middlewares/RegisterNewsSiteVisitMiddleware.cs b/src/Microservices/Services/News/NewsAggregator.News/Web/Middlewares/RegisterNewsSiteVisitMiddleware.cs index 87ea525..0cc7ccc 100644 --- a/src/Microservices/Services/News/NewsAggregator.News/Web/Middlewares/RegisterNewsSiteVisitMiddleware.cs +++ b/src/Microservices/Services/News/NewsAggregator.News/Web/Middlewares/RegisterNewsSiteVisitMiddleware.cs @@ -1,5 +1,6 @@ using Microsoft.AspNetCore.Http; using Microsoft.Extensions.DependencyInjection; +using NewsAggregator.News.Extensions; using NewsAggregator.News.Messages; using System.Net; @@ -26,10 +27,7 @@ public async Task Invoke(HttpContext context) { var mediator = scope.ServiceProvider.GetRequiredService(); - await mediator.Publish(new NewsSiteVisited( - context.Request.Headers.FirstOrDefault(header => header.Key == "X-Real-IP").Value.FirstOrDefault() - ?? context.Connection.RemoteIpAddress?.ToString() - ?? string.Empty)); + await mediator.Publish(new NewsSiteVisited(context.GetConnectionIpAddress())); } } }