1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594 |
- // <auto-generated />
- using System;
- using Jellyfin.Server.Implementations;
- using Microsoft.EntityFrameworkCore;
- using Microsoft.EntityFrameworkCore.Infrastructure;
- using Microsoft.EntityFrameworkCore.Migrations;
- using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
- #nullable disable
- namespace Jellyfin.Server.Implementations.Migrations
- {
- [DbContext(typeof(JellyfinDbContext))]
- [Migration("20241112234144_FixMediaStreams2")]
- partial class FixMediaStreams2
- {
- /// <inheritdoc />
- protected override void BuildTargetModel(ModelBuilder modelBuilder)
- {
- #pragma warning disable 612, 618
- modelBuilder.HasAnnotation("ProductVersion", "8.0.10");
- modelBuilder.Entity("Jellyfin.Data.Entities.AccessSchedule", b =>
- {
- b.Property<int>("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("INTEGER");
- b.Property<int>("DayOfWeek")
- .HasColumnType("INTEGER");
- b.Property<double>("EndHour")
- .HasColumnType("REAL");
- b.Property<double>("StartHour")
- .HasColumnType("REAL");
- b.Property<Guid>("UserId")
- .HasColumnType("TEXT");
- b.HasKey("Id");
- b.HasIndex("UserId");
- b.ToTable("AccessSchedules");
- });
- modelBuilder.Entity("Jellyfin.Data.Entities.ActivityLog", b =>
- {
- b.Property<int>("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("INTEGER");
- b.Property<DateTime>("DateCreated")
- .HasColumnType("TEXT");
- b.Property<string>("ItemId")
- .HasMaxLength(256)
- .HasColumnType("TEXT");
- b.Property<int>("LogSeverity")
- .HasColumnType("INTEGER");
- b.Property<string>("Name")
- .IsRequired()
- .HasMaxLength(512)
- .HasColumnType("TEXT");
- b.Property<string>("Overview")
- .HasMaxLength(512)
- .HasColumnType("TEXT");
- b.Property<uint>("RowVersion")
- .IsConcurrencyToken()
- .HasColumnType("INTEGER");
- b.Property<string>("ShortOverview")
- .HasMaxLength(512)
- .HasColumnType("TEXT");
- b.Property<string>("Type")
- .IsRequired()
- .HasMaxLength(256)
- .HasColumnType("TEXT");
- b.Property<Guid>("UserId")
- .HasColumnType("TEXT");
- b.HasKey("Id");
- b.HasIndex("DateCreated");
- b.ToTable("ActivityLogs");
- });
- modelBuilder.Entity("Jellyfin.Data.Entities.AncestorId", b =>
- {
- b.Property<Guid>("ItemId")
- .HasColumnType("TEXT");
- b.Property<Guid>("ParentItemId")
- .HasColumnType("TEXT");
- b.HasKey("ItemId", "ParentItemId");
- b.HasIndex("ParentItemId");
- b.ToTable("AncestorIds");
- });
- modelBuilder.Entity("Jellyfin.Data.Entities.AttachmentStreamInfo", b =>
- {
- b.Property<Guid>("ItemId")
- .HasColumnType("TEXT");
- b.Property<int>("Index")
- .HasColumnType("INTEGER");
- b.Property<string>("Codec")
- .IsRequired()
- .HasColumnType("TEXT");
- b.Property<string>("CodecTag")
- .HasColumnType("TEXT");
- b.Property<string>("Comment")
- .HasColumnType("TEXT");
- b.Property<string>("Filename")
- .HasColumnType("TEXT");
- b.Property<string>("MimeType")
- .HasColumnType("TEXT");
- b.HasKey("ItemId", "Index");
- b.ToTable("AttachmentStreamInfos");
- });
- modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemEntity", b =>
- {
- b.Property<Guid>("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("TEXT");
- b.Property<string>("Album")
- .HasColumnType("TEXT");
- b.Property<string>("AlbumArtists")
- .HasColumnType("TEXT");
- b.Property<string>("Artists")
- .HasColumnType("TEXT");
- b.Property<int?>("Audio")
- .HasColumnType("INTEGER");
- b.Property<string>("ChannelId")
- .HasColumnType("TEXT");
- b.Property<string>("CleanName")
- .HasColumnType("TEXT");
- b.Property<float?>("CommunityRating")
- .HasColumnType("REAL");
- b.Property<float?>("CriticRating")
- .HasColumnType("REAL");
- b.Property<string>("CustomRating")
- .HasColumnType("TEXT");
- b.Property<string>("Data")
- .HasColumnType("TEXT");
- b.Property<DateTime?>("DateCreated")
- .HasColumnType("TEXT");
- b.Property<DateTime?>("DateLastMediaAdded")
- .HasColumnType("TEXT");
- b.Property<DateTime?>("DateLastRefreshed")
- .HasColumnType("TEXT");
- b.Property<DateTime?>("DateLastSaved")
- .HasColumnType("TEXT");
- b.Property<DateTime?>("DateModified")
- .HasColumnType("TEXT");
- b.Property<DateTime>("EndDate")
- .HasColumnType("TEXT");
- b.Property<string>("EpisodeTitle")
- .HasColumnType("TEXT");
- b.Property<string>("ExternalId")
- .HasColumnType("TEXT");
- b.Property<string>("ExternalSeriesId")
- .HasColumnType("TEXT");
- b.Property<string>("ExternalServiceId")
- .HasColumnType("TEXT");
- b.Property<string>("ExtraIds")
- .HasColumnType("TEXT");
- b.Property<int?>("ExtraType")
- .HasColumnType("INTEGER");
- b.Property<string>("ForcedSortName")
- .HasColumnType("TEXT");
- b.Property<string>("Genres")
- .HasColumnType("TEXT");
- b.Property<int?>("Height")
- .HasColumnType("INTEGER");
- b.Property<int?>("IndexNumber")
- .HasColumnType("INTEGER");
- b.Property<int?>("InheritedParentalRatingValue")
- .HasColumnType("INTEGER");
- b.Property<bool>("IsFolder")
- .HasColumnType("INTEGER");
- b.Property<bool>("IsInMixedFolder")
- .HasColumnType("INTEGER");
- b.Property<bool>("IsLocked")
- .HasColumnType("INTEGER");
- b.Property<bool>("IsMovie")
- .HasColumnType("INTEGER");
- b.Property<bool>("IsRepeat")
- .HasColumnType("INTEGER");
- b.Property<bool>("IsSeries")
- .HasColumnType("INTEGER");
- b.Property<bool>("IsVirtualItem")
- .HasColumnType("INTEGER");
- b.Property<float?>("LUFS")
- .HasColumnType("REAL");
- b.Property<string>("MediaType")
- .HasColumnType("TEXT");
- b.Property<string>("Name")
- .HasColumnType("TEXT");
- b.Property<float?>("NormalizationGain")
- .HasColumnType("REAL");
- b.Property<string>("OfficialRating")
- .HasColumnType("TEXT");
- b.Property<string>("OriginalTitle")
- .HasColumnType("TEXT");
- b.Property<string>("Overview")
- .HasColumnType("TEXT");
- b.Property<string>("OwnerId")
- .HasColumnType("TEXT");
- b.Property<Guid?>("ParentId")
- .HasColumnType("TEXT");
- b.Property<int?>("ParentIndexNumber")
- .HasColumnType("INTEGER");
- b.Property<string>("Path")
- .HasColumnType("TEXT");
- b.Property<string>("PreferredMetadataCountryCode")
- .HasColumnType("TEXT");
- b.Property<string>("PreferredMetadataLanguage")
- .HasColumnType("TEXT");
- b.Property<DateTime?>("PremiereDate")
- .HasColumnType("TEXT");
- b.Property<string>("PresentationUniqueKey")
- .HasColumnType("TEXT");
- b.Property<string>("PrimaryVersionId")
- .HasColumnType("TEXT");
- b.Property<string>("ProductionLocations")
- .HasColumnType("TEXT");
- b.Property<int?>("ProductionYear")
- .HasColumnType("INTEGER");
- b.Property<long?>("RunTimeTicks")
- .HasColumnType("INTEGER");
- b.Property<Guid?>("SeasonId")
- .HasColumnType("TEXT");
- b.Property<string>("SeasonName")
- .HasColumnType("TEXT");
- b.Property<Guid?>("SeriesId")
- .HasColumnType("TEXT");
- b.Property<string>("SeriesName")
- .HasColumnType("TEXT");
- b.Property<string>("SeriesPresentationUniqueKey")
- .HasColumnType("TEXT");
- b.Property<string>("ShowId")
- .HasColumnType("TEXT");
- b.Property<long?>("Size")
- .HasColumnType("INTEGER");
- b.Property<string>("SortName")
- .HasColumnType("TEXT");
- b.Property<DateTime>("StartDate")
- .HasColumnType("TEXT");
- b.Property<string>("Studios")
- .HasColumnType("TEXT");
- b.Property<string>("Tagline")
- .HasColumnType("TEXT");
- b.Property<string>("Tags")
- .HasColumnType("TEXT");
- b.Property<Guid?>("TopParentId")
- .HasColumnType("TEXT");
- b.Property<int?>("TotalBitrate")
- .HasColumnType("INTEGER");
- b.Property<string>("Type")
- .IsRequired()
- .HasColumnType("TEXT");
- b.Property<string>("UnratedType")
- .HasColumnType("TEXT");
- b.Property<int?>("Width")
- .HasColumnType("INTEGER");
- b.HasKey("Id");
- b.HasIndex("ParentId");
- b.HasIndex("Path");
- b.HasIndex("PresentationUniqueKey");
- b.HasIndex("TopParentId", "Id");
- b.HasIndex("Type", "TopParentId", "Id");
- b.HasIndex("Type", "TopParentId", "PresentationUniqueKey");
- b.HasIndex("Type", "TopParentId", "StartDate");
- b.HasIndex("Id", "Type", "IsFolder", "IsVirtualItem");
- b.HasIndex("MediaType", "TopParentId", "IsVirtualItem", "PresentationUniqueKey");
- b.HasIndex("Type", "SeriesPresentationUniqueKey", "IsFolder", "IsVirtualItem");
- b.HasIndex("Type", "SeriesPresentationUniqueKey", "PresentationUniqueKey", "SortName");
- b.HasIndex("IsFolder", "TopParentId", "IsVirtualItem", "PresentationUniqueKey", "DateCreated");
- b.HasIndex("Type", "TopParentId", "IsVirtualItem", "PresentationUniqueKey", "DateCreated");
- b.ToTable("BaseItems");
- });
- modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemImageInfo", b =>
- {
- b.Property<Guid>("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("TEXT");
- b.Property<byte[]>("Blurhash")
- .HasColumnType("BLOB");
- b.Property<DateTime>("DateModified")
- .HasColumnType("TEXT");
- b.Property<int>("Height")
- .HasColumnType("INTEGER");
- b.Property<int>("ImageType")
- .HasColumnType("INTEGER");
- b.Property<Guid>("ItemId")
- .HasColumnType("TEXT");
- b.Property<string>("Path")
- .IsRequired()
- .HasColumnType("TEXT");
- b.Property<int>("Width")
- .HasColumnType("INTEGER");
- b.HasKey("Id");
- b.HasIndex("ItemId");
- b.ToTable("BaseItemImageInfos");
- });
- modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemMetadataField", b =>
- {
- b.Property<int>("Id")
- .HasColumnType("INTEGER");
- b.Property<Guid>("ItemId")
- .HasColumnType("TEXT");
- b.HasKey("Id", "ItemId");
- b.HasIndex("ItemId");
- b.ToTable("BaseItemMetadataFields");
- });
- modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemProvider", b =>
- {
- b.Property<Guid>("ItemId")
- .HasColumnType("TEXT");
- b.Property<string>("ProviderId")
- .HasColumnType("TEXT");
- b.Property<string>("ProviderValue")
- .IsRequired()
- .HasColumnType("TEXT");
- b.HasKey("ItemId", "ProviderId");
- b.HasIndex("ProviderId", "ProviderValue", "ItemId");
- b.ToTable("BaseItemProviders");
- });
- modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemTrailerType", b =>
- {
- b.Property<int>("Id")
- .HasColumnType("INTEGER");
- b.Property<Guid>("ItemId")
- .HasColumnType("TEXT");
- b.HasKey("Id", "ItemId");
- b.HasIndex("ItemId");
- b.ToTable("BaseItemTrailerTypes");
- });
- modelBuilder.Entity("Jellyfin.Data.Entities.Chapter", b =>
- {
- b.Property<Guid>("ItemId")
- .HasColumnType("TEXT");
- b.Property<int>("ChapterIndex")
- .HasColumnType("INTEGER");
- b.Property<DateTime?>("ImageDateModified")
- .HasColumnType("TEXT");
- b.Property<string>("ImagePath")
- .HasColumnType("TEXT");
- b.Property<string>("Name")
- .HasColumnType("TEXT");
- b.Property<long>("StartPositionTicks")
- .HasColumnType("INTEGER");
- b.HasKey("ItemId", "ChapterIndex");
- b.ToTable("Chapters");
- });
- modelBuilder.Entity("Jellyfin.Data.Entities.CustomItemDisplayPreferences", b =>
- {
- b.Property<int>("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("INTEGER");
- b.Property<string>("Client")
- .IsRequired()
- .HasMaxLength(32)
- .HasColumnType("TEXT");
- b.Property<Guid>("ItemId")
- .HasColumnType("TEXT");
- b.Property<string>("Key")
- .IsRequired()
- .HasColumnType("TEXT");
- b.Property<Guid>("UserId")
- .HasColumnType("TEXT");
- b.Property<string>("Value")
- .HasColumnType("TEXT");
- b.HasKey("Id");
- b.HasIndex("UserId", "ItemId", "Client", "Key")
- .IsUnique();
- b.ToTable("CustomItemDisplayPreferences");
- });
- modelBuilder.Entity("Jellyfin.Data.Entities.DisplayPreferences", b =>
- {
- b.Property<int>("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("INTEGER");
- b.Property<int>("ChromecastVersion")
- .HasColumnType("INTEGER");
- b.Property<string>("Client")
- .IsRequired()
- .HasMaxLength(32)
- .HasColumnType("TEXT");
- b.Property<string>("DashboardTheme")
- .HasMaxLength(32)
- .HasColumnType("TEXT");
- b.Property<bool>("EnableNextVideoInfoOverlay")
- .HasColumnType("INTEGER");
- b.Property<int?>("IndexBy")
- .HasColumnType("INTEGER");
- b.Property<Guid>("ItemId")
- .HasColumnType("TEXT");
- b.Property<int>("ScrollDirection")
- .HasColumnType("INTEGER");
- b.Property<bool>("ShowBackdrop")
- .HasColumnType("INTEGER");
- b.Property<bool>("ShowSidebar")
- .HasColumnType("INTEGER");
- b.Property<int>("SkipBackwardLength")
- .HasColumnType("INTEGER");
- b.Property<int>("SkipForwardLength")
- .HasColumnType("INTEGER");
- b.Property<string>("TvHome")
- .HasMaxLength(32)
- .HasColumnType("TEXT");
- b.Property<Guid>("UserId")
- .HasColumnType("TEXT");
- b.HasKey("Id");
- b.HasIndex("UserId", "ItemId", "Client")
- .IsUnique();
- b.ToTable("DisplayPreferences");
- });
- modelBuilder.Entity("Jellyfin.Data.Entities.HomeSection", b =>
- {
- b.Property<int>("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("INTEGER");
- b.Property<int>("DisplayPreferencesId")
- .HasColumnType("INTEGER");
- b.Property<int>("Order")
- .HasColumnType("INTEGER");
- b.Property<int>("Type")
- .HasColumnType("INTEGER");
- b.HasKey("Id");
- b.HasIndex("DisplayPreferencesId");
- b.ToTable("HomeSection");
- });
- modelBuilder.Entity("Jellyfin.Data.Entities.ImageInfo", b =>
- {
- b.Property<int>("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("INTEGER");
- b.Property<DateTime>("LastModified")
- .HasColumnType("TEXT");
- b.Property<string>("Path")
- .IsRequired()
- .HasMaxLength(512)
- .HasColumnType("TEXT");
- b.Property<Guid?>("UserId")
- .HasColumnType("TEXT");
- b.HasKey("Id");
- b.HasIndex("UserId")
- .IsUnique();
- b.ToTable("ImageInfos");
- });
- modelBuilder.Entity("Jellyfin.Data.Entities.ItemDisplayPreferences", b =>
- {
- b.Property<int>("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("INTEGER");
- b.Property<string>("Client")
- .IsRequired()
- .HasMaxLength(32)
- .HasColumnType("TEXT");
- b.Property<int?>("IndexBy")
- .HasColumnType("INTEGER");
- b.Property<Guid>("ItemId")
- .HasColumnType("TEXT");
- b.Property<bool>("RememberIndexing")
- .HasColumnType("INTEGER");
- b.Property<bool>("RememberSorting")
- .HasColumnType("INTEGER");
- b.Property<string>("SortBy")
- .IsRequired()
- .HasMaxLength(64)
- .HasColumnType("TEXT");
- b.Property<int>("SortOrder")
- .HasColumnType("INTEGER");
- b.Property<Guid>("UserId")
- .HasColumnType("TEXT");
- b.Property<int>("ViewType")
- .HasColumnType("INTEGER");
- b.HasKey("Id");
- b.HasIndex("UserId");
- b.ToTable("ItemDisplayPreferences");
- });
- modelBuilder.Entity("Jellyfin.Data.Entities.ItemValue", b =>
- {
- b.Property<Guid>("ItemValueId")
- .ValueGeneratedOnAdd()
- .HasColumnType("TEXT");
- b.Property<string>("CleanValue")
- .IsRequired()
- .HasColumnType("TEXT");
- b.Property<int>("Type")
- .HasColumnType("INTEGER");
- b.Property<string>("Value")
- .IsRequired()
- .HasColumnType("TEXT");
- b.HasKey("ItemValueId");
- b.HasIndex("Type", "CleanValue");
- b.ToTable("ItemValues");
- });
- modelBuilder.Entity("Jellyfin.Data.Entities.ItemValueMap", b =>
- {
- b.Property<Guid>("ItemValueId")
- .HasColumnType("TEXT");
- b.Property<Guid>("ItemId")
- .HasColumnType("TEXT");
- b.HasKey("ItemValueId", "ItemId");
- b.HasIndex("ItemId");
- b.ToTable("ItemValuesMap");
- });
- modelBuilder.Entity("Jellyfin.Data.Entities.MediaSegment", b =>
- {
- b.Property<Guid>("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("TEXT");
- b.Property<long>("EndTicks")
- .HasColumnType("INTEGER");
- b.Property<Guid>("ItemId")
- .HasColumnType("TEXT");
- b.Property<string>("SegmentProviderId")
- .IsRequired()
- .HasColumnType("TEXT");
- b.Property<long>("StartTicks")
- .HasColumnType("INTEGER");
- b.Property<int>("Type")
- .HasColumnType("INTEGER");
- b.HasKey("Id");
- b.ToTable("MediaSegments");
- });
- modelBuilder.Entity("Jellyfin.Data.Entities.MediaStreamInfo", b =>
- {
- b.Property<Guid>("ItemId")
- .HasColumnType("TEXT");
- b.Property<int>("StreamIndex")
- .HasColumnType("INTEGER");
- b.Property<string>("AspectRatio")
- .HasColumnType("TEXT");
- b.Property<float?>("AverageFrameRate")
- .HasColumnType("REAL");
- b.Property<int?>("BitDepth")
- .HasColumnType("INTEGER");
- b.Property<int?>("BitRate")
- .HasColumnType("INTEGER");
- b.Property<int?>("BlPresentFlag")
- .HasColumnType("INTEGER");
- b.Property<string>("ChannelLayout")
- .HasColumnType("TEXT");
- b.Property<int?>("Channels")
- .HasColumnType("INTEGER");
- b.Property<string>("Codec")
- .HasColumnType("TEXT");
- b.Property<string>("CodecTag")
- .HasColumnType("TEXT");
- b.Property<string>("CodecTimeBase")
- .HasColumnType("TEXT");
- b.Property<string>("ColorPrimaries")
- .HasColumnType("TEXT");
- b.Property<string>("ColorSpace")
- .HasColumnType("TEXT");
- b.Property<string>("ColorTransfer")
- .HasColumnType("TEXT");
- b.Property<string>("Comment")
- .HasColumnType("TEXT");
- b.Property<int?>("DvBlSignalCompatibilityId")
- .HasColumnType("INTEGER");
- b.Property<int?>("DvLevel")
- .HasColumnType("INTEGER");
- b.Property<int?>("DvProfile")
- .HasColumnType("INTEGER");
- b.Property<int?>("DvVersionMajor")
- .HasColumnType("INTEGER");
- b.Property<int?>("DvVersionMinor")
- .HasColumnType("INTEGER");
- b.Property<int?>("ElPresentFlag")
- .HasColumnType("INTEGER");
- b.Property<int?>("Height")
- .HasColumnType("INTEGER");
- b.Property<bool?>("IsAnamorphic")
- .HasColumnType("INTEGER");
- b.Property<bool?>("IsAvc")
- .HasColumnType("INTEGER");
- b.Property<bool>("IsDefault")
- .HasColumnType("INTEGER");
- b.Property<bool>("IsExternal")
- .HasColumnType("INTEGER");
- b.Property<bool>("IsForced")
- .HasColumnType("INTEGER");
- b.Property<bool?>("IsHearingImpaired")
- .HasColumnType("INTEGER");
- b.Property<bool?>("IsInterlaced")
- .HasColumnType("INTEGER");
- b.Property<string>("KeyFrames")
- .HasColumnType("TEXT");
- b.Property<string>("Language")
- .HasColumnType("TEXT");
- b.Property<float?>("Level")
- .HasColumnType("REAL");
- b.Property<string>("NalLengthSize")
- .HasColumnType("TEXT");
- b.Property<string>("Path")
- .HasColumnType("TEXT");
- b.Property<string>("PixelFormat")
- .HasColumnType("TEXT");
- b.Property<string>("Profile")
- .HasColumnType("TEXT");
- b.Property<float?>("RealFrameRate")
- .HasColumnType("REAL");
- b.Property<int?>("RefFrames")
- .HasColumnType("INTEGER");
- b.Property<int?>("Rotation")
- .HasColumnType("INTEGER");
- b.Property<int?>("RpuPresentFlag")
- .HasColumnType("INTEGER");
- b.Property<int?>("SampleRate")
- .HasColumnType("INTEGER");
- b.Property<int>("StreamType")
- .HasColumnType("INTEGER");
- b.Property<string>("TimeBase")
- .HasColumnType("TEXT");
- b.Property<string>("Title")
- .HasColumnType("TEXT");
- b.Property<int?>("Width")
- .HasColumnType("INTEGER");
- b.HasKey("ItemId", "StreamIndex");
- b.HasIndex("StreamIndex");
- b.HasIndex("StreamType");
- b.HasIndex("StreamIndex", "StreamType");
- b.HasIndex("StreamIndex", "StreamType", "Language");
- b.ToTable("MediaStreamInfos");
- });
- modelBuilder.Entity("Jellyfin.Data.Entities.People", b =>
- {
- b.Property<Guid>("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("TEXT");
- b.Property<string>("Name")
- .IsRequired()
- .HasColumnType("TEXT");
- b.Property<string>("PersonType")
- .HasColumnType("TEXT");
- b.HasKey("Id");
- b.HasIndex("Name");
- b.ToTable("Peoples");
- });
- modelBuilder.Entity("Jellyfin.Data.Entities.PeopleBaseItemMap", b =>
- {
- b.Property<Guid>("ItemId")
- .HasColumnType("TEXT");
- b.Property<Guid>("PeopleId")
- .HasColumnType("TEXT");
- b.Property<int?>("ListOrder")
- .HasColumnType("INTEGER");
- b.Property<string>("Role")
- .HasColumnType("TEXT");
- b.Property<int?>("SortOrder")
- .HasColumnType("INTEGER");
- b.HasKey("ItemId", "PeopleId");
- b.HasIndex("PeopleId");
- b.HasIndex("ItemId", "ListOrder");
- b.HasIndex("ItemId", "SortOrder");
- b.ToTable("PeopleBaseItemMap");
- });
- modelBuilder.Entity("Jellyfin.Data.Entities.Permission", b =>
- {
- b.Property<int>("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("INTEGER");
- b.Property<int>("Kind")
- .HasColumnType("INTEGER");
- b.Property<Guid?>("Permission_Permissions_Guid")
- .HasColumnType("TEXT");
- b.Property<uint>("RowVersion")
- .IsConcurrencyToken()
- .HasColumnType("INTEGER");
- b.Property<Guid?>("UserId")
- .HasColumnType("TEXT");
- b.Property<bool>("Value")
- .HasColumnType("INTEGER");
- b.HasKey("Id");
- b.HasIndex("UserId", "Kind")
- .IsUnique()
- .HasFilter("[UserId] IS NOT NULL");
- b.ToTable("Permissions");
- });
- modelBuilder.Entity("Jellyfin.Data.Entities.Preference", b =>
- {
- b.Property<int>("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("INTEGER");
- b.Property<int>("Kind")
- .HasColumnType("INTEGER");
- b.Property<Guid?>("Preference_Preferences_Guid")
- .HasColumnType("TEXT");
- b.Property<uint>("RowVersion")
- .IsConcurrencyToken()
- .HasColumnType("INTEGER");
- b.Property<Guid?>("UserId")
- .HasColumnType("TEXT");
- b.Property<string>("Value")
- .IsRequired()
- .HasMaxLength(65535)
- .HasColumnType("TEXT");
- b.HasKey("Id");
- b.HasIndex("UserId", "Kind")
- .IsUnique()
- .HasFilter("[UserId] IS NOT NULL");
- b.ToTable("Preferences");
- });
- modelBuilder.Entity("Jellyfin.Data.Entities.Security.ApiKey", b =>
- {
- b.Property<int>("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("INTEGER");
- b.Property<string>("AccessToken")
- .IsRequired()
- .HasColumnType("TEXT");
- b.Property<DateTime>("DateCreated")
- .HasColumnType("TEXT");
- b.Property<DateTime>("DateLastActivity")
- .HasColumnType("TEXT");
- b.Property<string>("Name")
- .IsRequired()
- .HasMaxLength(64)
- .HasColumnType("TEXT");
- b.HasKey("Id");
- b.HasIndex("AccessToken")
- .IsUnique();
- b.ToTable("ApiKeys");
- });
- modelBuilder.Entity("Jellyfin.Data.Entities.Security.Device", b =>
- {
- b.Property<int>("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("INTEGER");
- b.Property<string>("AccessToken")
- .IsRequired()
- .HasColumnType("TEXT");
- b.Property<string>("AppName")
- .IsRequired()
- .HasMaxLength(64)
- .HasColumnType("TEXT");
- b.Property<string>("AppVersion")
- .IsRequired()
- .HasMaxLength(32)
- .HasColumnType("TEXT");
- b.Property<DateTime>("DateCreated")
- .HasColumnType("TEXT");
- b.Property<DateTime>("DateLastActivity")
- .HasColumnType("TEXT");
- b.Property<DateTime>("DateModified")
- .HasColumnType("TEXT");
- b.Property<string>("DeviceId")
- .IsRequired()
- .HasMaxLength(256)
- .HasColumnType("TEXT");
- b.Property<string>("DeviceName")
- .IsRequired()
- .HasMaxLength(64)
- .HasColumnType("TEXT");
- b.Property<bool>("IsActive")
- .HasColumnType("INTEGER");
- b.Property<Guid>("UserId")
- .HasColumnType("TEXT");
- b.HasKey("Id");
- b.HasIndex("DeviceId");
- b.HasIndex("AccessToken", "DateLastActivity");
- b.HasIndex("DeviceId", "DateLastActivity");
- b.HasIndex("UserId", "DeviceId");
- b.ToTable("Devices");
- });
- modelBuilder.Entity("Jellyfin.Data.Entities.Security.DeviceOptions", b =>
- {
- b.Property<int>("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("INTEGER");
- b.Property<string>("CustomName")
- .HasColumnType("TEXT");
- b.Property<string>("DeviceId")
- .IsRequired()
- .HasColumnType("TEXT");
- b.HasKey("Id");
- b.HasIndex("DeviceId")
- .IsUnique();
- b.ToTable("DeviceOptions");
- });
- modelBuilder.Entity("Jellyfin.Data.Entities.TrickplayInfo", b =>
- {
- b.Property<Guid>("ItemId")
- .HasColumnType("TEXT");
- b.Property<int>("Width")
- .HasColumnType("INTEGER");
- b.Property<int>("Bandwidth")
- .HasColumnType("INTEGER");
- b.Property<int>("Height")
- .HasColumnType("INTEGER");
- b.Property<int>("Interval")
- .HasColumnType("INTEGER");
- b.Property<int>("ThumbnailCount")
- .HasColumnType("INTEGER");
- b.Property<int>("TileHeight")
- .HasColumnType("INTEGER");
- b.Property<int>("TileWidth")
- .HasColumnType("INTEGER");
- b.HasKey("ItemId", "Width");
- b.ToTable("TrickplayInfos");
- });
- modelBuilder.Entity("Jellyfin.Data.Entities.User", b =>
- {
- b.Property<Guid>("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("TEXT");
- b.Property<string>("AudioLanguagePreference")
- .HasMaxLength(255)
- .HasColumnType("TEXT");
- b.Property<string>("AuthenticationProviderId")
- .IsRequired()
- .HasMaxLength(255)
- .HasColumnType("TEXT");
- b.Property<string>("CastReceiverId")
- .HasMaxLength(32)
- .HasColumnType("TEXT");
- b.Property<bool>("DisplayCollectionsView")
- .HasColumnType("INTEGER");
- b.Property<bool>("DisplayMissingEpisodes")
- .HasColumnType("INTEGER");
- b.Property<bool>("EnableAutoLogin")
- .HasColumnType("INTEGER");
- b.Property<bool>("EnableLocalPassword")
- .HasColumnType("INTEGER");
- b.Property<bool>("EnableNextEpisodeAutoPlay")
- .HasColumnType("INTEGER");
- b.Property<bool>("EnableUserPreferenceAccess")
- .HasColumnType("INTEGER");
- b.Property<bool>("HidePlayedInLatest")
- .HasColumnType("INTEGER");
- b.Property<long>("InternalId")
- .HasColumnType("INTEGER");
- b.Property<int>("InvalidLoginAttemptCount")
- .HasColumnType("INTEGER");
- b.Property<DateTime?>("LastActivityDate")
- .HasColumnType("TEXT");
- b.Property<DateTime?>("LastLoginDate")
- .HasColumnType("TEXT");
- b.Property<int?>("LoginAttemptsBeforeLockout")
- .HasColumnType("INTEGER");
- b.Property<int>("MaxActiveSessions")
- .HasColumnType("INTEGER");
- b.Property<int?>("MaxParentalAgeRating")
- .HasColumnType("INTEGER");
- b.Property<bool>("MustUpdatePassword")
- .HasColumnType("INTEGER");
- b.Property<string>("Password")
- .HasMaxLength(65535)
- .HasColumnType("TEXT");
- b.Property<string>("PasswordResetProviderId")
- .IsRequired()
- .HasMaxLength(255)
- .HasColumnType("TEXT");
- b.Property<bool>("PlayDefaultAudioTrack")
- .HasColumnType("INTEGER");
- b.Property<bool>("RememberAudioSelections")
- .HasColumnType("INTEGER");
- b.Property<bool>("RememberSubtitleSelections")
- .HasColumnType("INTEGER");
- b.Property<int?>("RemoteClientBitrateLimit")
- .HasColumnType("INTEGER");
- b.Property<uint>("RowVersion")
- .IsConcurrencyToken()
- .HasColumnType("INTEGER");
- b.Property<string>("SubtitleLanguagePreference")
- .HasMaxLength(255)
- .HasColumnType("TEXT");
- b.Property<int>("SubtitleMode")
- .HasColumnType("INTEGER");
- b.Property<int>("SyncPlayAccess")
- .HasColumnType("INTEGER");
- b.Property<string>("Username")
- .IsRequired()
- .HasMaxLength(255)
- .HasColumnType("TEXT")
- .UseCollation("NOCASE");
- b.HasKey("Id");
- b.HasIndex("Username")
- .IsUnique();
- b.ToTable("Users");
- });
- modelBuilder.Entity("Jellyfin.Data.Entities.UserData", b =>
- {
- b.Property<Guid>("ItemId")
- .HasColumnType("TEXT");
- b.Property<Guid>("UserId")
- .HasColumnType("TEXT");
- b.Property<string>("CustomDataKey")
- .HasColumnType("TEXT");
- b.Property<int?>("AudioStreamIndex")
- .HasColumnType("INTEGER");
- b.Property<bool>("IsFavorite")
- .HasColumnType("INTEGER");
- b.Property<DateTime?>("LastPlayedDate")
- .HasColumnType("TEXT");
- b.Property<bool?>("Likes")
- .HasColumnType("INTEGER");
- b.Property<int>("PlayCount")
- .HasColumnType("INTEGER");
- b.Property<long>("PlaybackPositionTicks")
- .HasColumnType("INTEGER");
- b.Property<bool>("Played")
- .HasColumnType("INTEGER");
- b.Property<double?>("Rating")
- .HasColumnType("REAL");
- b.Property<int?>("SubtitleStreamIndex")
- .HasColumnType("INTEGER");
- b.HasKey("ItemId", "UserId", "CustomDataKey");
- b.HasIndex("UserId");
- b.HasIndex("ItemId", "UserId", "IsFavorite");
- b.HasIndex("ItemId", "UserId", "LastPlayedDate");
- b.HasIndex("ItemId", "UserId", "PlaybackPositionTicks");
- b.HasIndex("ItemId", "UserId", "Played");
- b.ToTable("UserData");
- });
- modelBuilder.Entity("Jellyfin.Data.Entities.AccessSchedule", b =>
- {
- b.HasOne("Jellyfin.Data.Entities.User", null)
- .WithMany("AccessSchedules")
- .HasForeignKey("UserId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
- });
- modelBuilder.Entity("Jellyfin.Data.Entities.AncestorId", b =>
- {
- b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
- .WithMany("Children")
- .HasForeignKey("ItemId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
- b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "ParentItem")
- .WithMany("ParentAncestors")
- .HasForeignKey("ParentItemId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
- b.Navigation("Item");
- b.Navigation("ParentItem");
- });
- modelBuilder.Entity("Jellyfin.Data.Entities.AttachmentStreamInfo", b =>
- {
- b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
- .WithMany()
- .HasForeignKey("ItemId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
- b.Navigation("Item");
- });
- modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemImageInfo", b =>
- {
- b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
- .WithMany("Images")
- .HasForeignKey("ItemId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
- b.Navigation("Item");
- });
- modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemMetadataField", b =>
- {
- b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
- .WithMany("LockedFields")
- .HasForeignKey("ItemId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
- b.Navigation("Item");
- });
- modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemProvider", b =>
- {
- b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
- .WithMany("Provider")
- .HasForeignKey("ItemId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
- b.Navigation("Item");
- });
- modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemTrailerType", b =>
- {
- b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
- .WithMany("TrailerTypes")
- .HasForeignKey("ItemId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
- b.Navigation("Item");
- });
- modelBuilder.Entity("Jellyfin.Data.Entities.Chapter", b =>
- {
- b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
- .WithMany("Chapters")
- .HasForeignKey("ItemId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
- b.Navigation("Item");
- });
- modelBuilder.Entity("Jellyfin.Data.Entities.DisplayPreferences", b =>
- {
- b.HasOne("Jellyfin.Data.Entities.User", null)
- .WithMany("DisplayPreferences")
- .HasForeignKey("UserId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
- });
- modelBuilder.Entity("Jellyfin.Data.Entities.HomeSection", b =>
- {
- b.HasOne("Jellyfin.Data.Entities.DisplayPreferences", null)
- .WithMany("HomeSections")
- .HasForeignKey("DisplayPreferencesId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
- });
- modelBuilder.Entity("Jellyfin.Data.Entities.ImageInfo", b =>
- {
- b.HasOne("Jellyfin.Data.Entities.User", null)
- .WithOne("ProfileImage")
- .HasForeignKey("Jellyfin.Data.Entities.ImageInfo", "UserId")
- .OnDelete(DeleteBehavior.Cascade);
- });
- modelBuilder.Entity("Jellyfin.Data.Entities.ItemDisplayPreferences", b =>
- {
- b.HasOne("Jellyfin.Data.Entities.User", null)
- .WithMany("ItemDisplayPreferences")
- .HasForeignKey("UserId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
- });
- modelBuilder.Entity("Jellyfin.Data.Entities.ItemValueMap", b =>
- {
- b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
- .WithMany("ItemValues")
- .HasForeignKey("ItemId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
- b.HasOne("Jellyfin.Data.Entities.ItemValue", "ItemValue")
- .WithMany("BaseItemsMap")
- .HasForeignKey("ItemValueId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
- b.Navigation("Item");
- b.Navigation("ItemValue");
- });
- modelBuilder.Entity("Jellyfin.Data.Entities.MediaStreamInfo", b =>
- {
- b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
- .WithMany("MediaStreams")
- .HasForeignKey("ItemId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
- b.Navigation("Item");
- });
- modelBuilder.Entity("Jellyfin.Data.Entities.PeopleBaseItemMap", b =>
- {
- b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
- .WithMany("Peoples")
- .HasForeignKey("ItemId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
- b.HasOne("Jellyfin.Data.Entities.People", "People")
- .WithMany("BaseItems")
- .HasForeignKey("PeopleId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
- b.Navigation("Item");
- b.Navigation("People");
- });
- modelBuilder.Entity("Jellyfin.Data.Entities.Permission", b =>
- {
- b.HasOne("Jellyfin.Data.Entities.User", null)
- .WithMany("Permissions")
- .HasForeignKey("UserId")
- .OnDelete(DeleteBehavior.Cascade);
- });
- modelBuilder.Entity("Jellyfin.Data.Entities.Preference", b =>
- {
- b.HasOne("Jellyfin.Data.Entities.User", null)
- .WithMany("Preferences")
- .HasForeignKey("UserId")
- .OnDelete(DeleteBehavior.Cascade);
- });
- modelBuilder.Entity("Jellyfin.Data.Entities.Security.Device", b =>
- {
- b.HasOne("Jellyfin.Data.Entities.User", "User")
- .WithMany()
- .HasForeignKey("UserId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
- b.Navigation("User");
- });
- modelBuilder.Entity("Jellyfin.Data.Entities.UserData", b =>
- {
- b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
- .WithMany("UserData")
- .HasForeignKey("ItemId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
- b.HasOne("Jellyfin.Data.Entities.User", "User")
- .WithMany()
- .HasForeignKey("UserId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
- b.Navigation("Item");
- b.Navigation("User");
- });
- modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemEntity", b =>
- {
- b.Navigation("Chapters");
- b.Navigation("Children");
- b.Navigation("Images");
- b.Navigation("ItemValues");
- b.Navigation("LockedFields");
- b.Navigation("MediaStreams");
- b.Navigation("ParentAncestors");
- b.Navigation("Peoples");
- b.Navigation("Provider");
- b.Navigation("TrailerTypes");
- b.Navigation("UserData");
- });
- modelBuilder.Entity("Jellyfin.Data.Entities.DisplayPreferences", b =>
- {
- b.Navigation("HomeSections");
- });
- modelBuilder.Entity("Jellyfin.Data.Entities.ItemValue", b =>
- {
- b.Navigation("BaseItemsMap");
- });
- modelBuilder.Entity("Jellyfin.Data.Entities.People", b =>
- {
- b.Navigation("BaseItems");
- });
- modelBuilder.Entity("Jellyfin.Data.Entities.User", b =>
- {
- b.Navigation("AccessSchedules");
- b.Navigation("DisplayPreferences");
- b.Navigation("ItemDisplayPreferences");
- b.Navigation("Permissions");
- b.Navigation("Preferences");
- b.Navigation("ProfileImage");
- });
- #pragma warning restore 612, 618
- }
- }
- }
|