Spaces:
Sleeping
Sleeping
Download src/ClipForge.Infrastructure/Data/Migrations/AppDbContextModelSnapshot.cs from clipeforge/app: direct link, hf CLI and curl.
- Browser
- Download file 17.2 kB
-
https://huggingface.co/spaces/clipeforge/app/resolve/main/src/ClipForge.Infrastructure/Data/Migrations/AppDbContextModelSnapshot.cs
- Command line
-
hf download hf://spaces/clipeforge/app/src/ClipForge.Infrastructure/Data/Migrations/AppDbContextModelSnapshot.cs
-
curl -L -o AppDbContextModelSnapshot.cs https://huggingface.co/spaces/clipeforge/app/resolve/main/src/ClipForge.Infrastructure/Data/Migrations/AppDbContextModelSnapshot.cs
17.2 kB
| // <auto-generated /> | |
| using System; | |
| using ClipForge.Infrastructure.Data; | |
| using Microsoft.EntityFrameworkCore; | |
| using Microsoft.EntityFrameworkCore.Infrastructure; | |
| using Microsoft.EntityFrameworkCore.Storage.ValueConversion; | |
| using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; | |
| namespace ClipForge.Infrastructure.Data.Migrations | |
| { | |
| [] | |
| partial class AppDbContextModelSnapshot : ModelSnapshot | |
| { | |
| protected override void BuildModel(ModelBuilder modelBuilder) | |
| { | |
| modelBuilder | |
| .HasAnnotation("ProductVersion", "9.0.1") | |
| .HasAnnotation("Relational:MaxIdentifierLength", 63); | |
| NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); | |
| modelBuilder.Entity("ClipForge.Core.Entities.CaptionAsset", b => | |
| { | |
| b.Property<Guid>("Id") | |
| .ValueGeneratedOnAdd() | |
| .HasColumnType("uuid"); | |
| b.Property<string>("CaptionStyle") | |
| .IsRequired() | |
| .HasMaxLength(50) | |
| .HasColumnType("character varying(50)"); | |
| b.Property<DateTime>("CreatedAt") | |
| .HasColumnType("timestamp with time zone"); | |
| b.Property<string>("FontColor") | |
| .IsRequired() | |
| .HasMaxLength(20) | |
| .HasColumnType("character varying(20)"); | |
| b.Property<string>("FontFamily") | |
| .IsRequired() | |
| .HasMaxLength(100) | |
| .HasColumnType("character varying(100)"); | |
| b.Property<int>("FontSize") | |
| .HasColumnType("integer"); | |
| b.Property<string>("SrtFilePath") | |
| .IsRequired() | |
| .HasMaxLength(1000) | |
| .HasColumnType("character varying(1000)"); | |
| b.Property<string>("StrokeColor") | |
| .IsRequired() | |
| .HasMaxLength(20) | |
| .HasColumnType("character varying(20)"); | |
| b.Property<int>("StrokeWidth") | |
| .HasColumnType("integer"); | |
| b.Property<DateTime?>("UpdatedAt") | |
| .HasColumnType("timestamp with time zone"); | |
| b.Property<Guid>("VideoAssetId") | |
| .HasColumnType("uuid"); | |
| b.HasKey("Id"); | |
| b.HasIndex("VideoAssetId") | |
| .IsUnique(); | |
| b.ToTable("CaptionAssets"); | |
| }); | |
| modelBuilder.Entity("ClipForge.Core.Entities.PublishJob", b => | |
| { | |
| b.Property<Guid>("Id") | |
| .ValueGeneratedOnAdd() | |
| .HasColumnType("uuid"); | |
| b.Property<string>("Caption") | |
| .HasMaxLength(2000) | |
| .HasColumnType("character varying(2000)"); | |
| b.Property<DateTime>("CreatedAt") | |
| .HasColumnType("timestamp with time zone"); | |
| b.Property<string>("ErrorMessage") | |
| .HasMaxLength(2000) | |
| .HasColumnType("character varying(2000)"); | |
| b.Property<string>("ExternalId") | |
| .HasMaxLength(500) | |
| .HasColumnType("character varying(500)"); | |
| b.Property<string>("Hashtags") | |
| .HasMaxLength(1000) | |
| .HasColumnType("character varying(1000)"); | |
| b.Property<string>("Platform") | |
| .IsRequired() | |
| .HasMaxLength(50) | |
| .HasColumnType("character varying(50)"); | |
| b.Property<DateTime?>("PublishedAt") | |
| .HasColumnType("timestamp with time zone"); | |
| b.Property<DateTime?>("ScheduledAt") | |
| .HasColumnType("timestamp with time zone"); | |
| b.Property<Guid?>("SocialAccountId") | |
| .HasColumnType("uuid"); | |
| b.Property<string>("Status") | |
| .IsRequired() | |
| .HasMaxLength(50) | |
| .HasColumnType("character varying(50)"); | |
| b.Property<DateTime?>("UpdatedAt") | |
| .HasColumnType("timestamp with time zone"); | |
| b.Property<Guid>("VideoAssetId") | |
| .HasColumnType("uuid"); | |
| b.HasKey("Id"); | |
| b.HasIndex("SocialAccountId"); | |
| b.HasIndex("VideoAssetId"); | |
| b.ToTable("PublishJobs"); | |
| }); | |
| modelBuilder.Entity("ClipForge.Core.Entities.SocialAccount", b => | |
| { | |
| b.Property<Guid>("Id") | |
| .ValueGeneratedOnAdd() | |
| .HasColumnType("uuid"); | |
| b.Property<string>("AccessToken") | |
| .HasMaxLength(2000) | |
| .HasColumnType("character varying(2000)"); | |
| b.Property<string>("AccountName") | |
| .IsRequired() | |
| .HasMaxLength(200) | |
| .HasColumnType("character varying(200)"); | |
| b.Property<DateTime>("CreatedAt") | |
| .HasColumnType("timestamp with time zone"); | |
| b.Property<bool>("IsActive") | |
| .HasColumnType("boolean"); | |
| b.Property<string>("Platform") | |
| .IsRequired() | |
| .HasMaxLength(50) | |
| .HasColumnType("character varying(50)"); | |
| b.Property<string>("RefreshToken") | |
| .HasMaxLength(2000) | |
| .HasColumnType("character varying(2000)"); | |
| b.Property<DateTime?>("TokenExpiresAt") | |
| .HasColumnType("timestamp with time zone"); | |
| b.Property<DateTime?>("UpdatedAt") | |
| .HasColumnType("timestamp with time zone"); | |
| b.HasKey("Id"); | |
| b.ToTable("SocialAccounts"); | |
| }); | |
| modelBuilder.Entity("ClipForge.Core.Entities.VideoAsset", b => | |
| { | |
| b.Property<Guid>("Id") | |
| .ValueGeneratedOnAdd() | |
| .HasColumnType("uuid"); | |
| b.Property<DateTime>("CreatedAt") | |
| .HasColumnType("timestamp with time zone"); | |
| b.Property<double>("DurationSeconds") | |
| .HasColumnType("double precision"); | |
| b.Property<string>("FilePath") | |
| .IsRequired() | |
| .HasMaxLength(1000) | |
| .HasColumnType("character varying(1000)"); | |
| b.Property<long>("FileSizeBytes") | |
| .HasColumnType("bigint"); | |
| b.Property<string>("Format") | |
| .IsRequired() | |
| .HasMaxLength(10) | |
| .HasColumnType("character varying(10)"); | |
| b.Property<int>("Height") | |
| .HasColumnType("integer"); | |
| b.Property<string>("Status") | |
| .IsRequired() | |
| .HasMaxLength(50) | |
| .HasColumnType("character varying(50)"); | |
| b.Property<string>("ThumbnailPath") | |
| .IsRequired() | |
| .HasMaxLength(1000) | |
| .HasColumnType("character varying(1000)"); | |
| b.Property<DateTime?>("UpdatedAt") | |
| .HasColumnType("timestamp with time zone"); | |
| b.Property<Guid>("VideoScriptId") | |
| .HasColumnType("uuid"); | |
| b.Property<int>("Width") | |
| .HasColumnType("integer"); | |
| b.HasKey("Id"); | |
| b.HasIndex("VideoScriptId") | |
| .IsUnique(); | |
| b.ToTable("VideoAssets"); | |
| }); | |
| modelBuilder.Entity("ClipForge.Core.Entities.VideoIdea", b => | |
| { | |
| b.Property<Guid>("Id") | |
| .ValueGeneratedOnAdd() | |
| .HasColumnType("uuid"); | |
| b.Property<DateTime>("CreatedAt") | |
| .HasColumnType("timestamp with time zone"); | |
| b.Property<string>("Hook") | |
| .IsRequired() | |
| .HasMaxLength(1000) | |
| .HasColumnType("character varying(1000)"); | |
| b.Property<string>("Niche") | |
| .HasMaxLength(200) | |
| .HasColumnType("character varying(200)"); | |
| b.Property<string>("Platform") | |
| .IsRequired() | |
| .HasMaxLength(50) | |
| .HasColumnType("character varying(50)"); | |
| b.Property<string>("Status") | |
| .IsRequired() | |
| .HasMaxLength(50) | |
| .HasColumnType("character varying(50)"); | |
| b.Property<string>("Tags") | |
| .HasMaxLength(1000) | |
| .HasColumnType("character varying(1000)"); | |
| b.Property<string>("TargetAudience") | |
| .IsRequired() | |
| .HasMaxLength(200) | |
| .HasColumnType("character varying(200)"); | |
| b.Property<string>("Title") | |
| .IsRequired() | |
| .HasMaxLength(500) | |
| .HasColumnType("character varying(500)"); | |
| b.Property<string>("Topic") | |
| .IsRequired() | |
| .HasMaxLength(500) | |
| .HasColumnType("character varying(500)"); | |
| b.Property<DateTime?>("UpdatedAt") | |
| .HasColumnType("timestamp with time zone"); | |
| b.HasKey("Id"); | |
| b.ToTable("VideoIdeas"); | |
| }); | |
| modelBuilder.Entity("ClipForge.Core.Entities.VideoScript", b => | |
| { | |
| b.Property<Guid>("Id") | |
| .ValueGeneratedOnAdd() | |
| .HasColumnType("uuid"); | |
| b.Property<DateTime>("CreatedAt") | |
| .HasColumnType("timestamp with time zone"); | |
| b.Property<int>("EstimatedDurationSeconds") | |
| .HasColumnType("integer"); | |
| b.Property<string>("Language") | |
| .IsRequired() | |
| .HasMaxLength(10) | |
| .HasColumnType("character varying(10)"); | |
| b.Property<string>("Scenes") | |
| .IsRequired() | |
| .HasColumnType("text"); | |
| b.Property<string>("ScriptText") | |
| .IsRequired() | |
| .HasColumnType("text"); | |
| b.Property<string>("Tone") | |
| .IsRequired() | |
| .HasMaxLength(50) | |
| .HasColumnType("character varying(50)"); | |
| b.Property<DateTime?>("UpdatedAt") | |
| .HasColumnType("timestamp with time zone"); | |
| b.Property<Guid>("VideoIdeaId") | |
| .HasColumnType("uuid"); | |
| b.HasKey("Id"); | |
| b.HasIndex("VideoIdeaId") | |
| .IsUnique(); | |
| b.ToTable("VideoScripts"); | |
| }); | |
| modelBuilder.Entity("ClipForge.Core.Entities.VoiceAsset", b => | |
| { | |
| b.Property<Guid>("Id") | |
| .ValueGeneratedOnAdd() | |
| .HasColumnType("uuid"); | |
| b.Property<DateTime>("CreatedAt") | |
| .HasColumnType("timestamp with time zone"); | |
| b.Property<double>("DurationSeconds") | |
| .HasColumnType("double precision"); | |
| b.Property<string>("FilePath") | |
| .IsRequired() | |
| .HasMaxLength(1000) | |
| .HasColumnType("character varying(1000)"); | |
| b.Property<long>("FileSizeBytes") | |
| .HasColumnType("bigint"); | |
| b.Property<DateTime?>("UpdatedAt") | |
| .HasColumnType("timestamp with time zone"); | |
| b.Property<Guid>("VideoScriptId") | |
| .HasColumnType("uuid"); | |
| b.Property<string>("VoiceId") | |
| .IsRequired() | |
| .HasMaxLength(100) | |
| .HasColumnType("character varying(100)"); | |
| b.Property<string>("VoiceProvider") | |
| .IsRequired() | |
| .HasMaxLength(50) | |
| .HasColumnType("character varying(50)"); | |
| b.HasKey("Id"); | |
| b.HasIndex("VideoScriptId") | |
| .IsUnique(); | |
| b.ToTable("VoiceAssets"); | |
| }); | |
| modelBuilder.Entity("ClipForge.Core.Entities.CaptionAsset", b => | |
| { | |
| b.HasOne("ClipForge.Core.Entities.VideoAsset", "VideoAsset") | |
| .WithOne("CaptionAsset") | |
| .HasForeignKey("ClipForge.Core.Entities.CaptionAsset", "VideoAssetId") | |
| .OnDelete(DeleteBehavior.Cascade) | |
| .IsRequired(); | |
| b.Navigation("VideoAsset"); | |
| }); | |
| modelBuilder.Entity("ClipForge.Core.Entities.PublishJob", b => | |
| { | |
| b.HasOne("ClipForge.Core.Entities.SocialAccount", "SocialAccount") | |
| .WithMany("PublishJobs") | |
| .HasForeignKey("SocialAccountId"); | |
| b.HasOne("ClipForge.Core.Entities.VideoAsset", "VideoAsset") | |
| .WithMany("PublishJobs") | |
| .HasForeignKey("VideoAssetId") | |
| .OnDelete(DeleteBehavior.Cascade) | |
| .IsRequired(); | |
| b.Navigation("SocialAccount"); | |
| b.Navigation("VideoAsset"); | |
| }); | |
| modelBuilder.Entity("ClipForge.Core.Entities.VideoAsset", b => | |
| { | |
| b.HasOne("ClipForge.Core.Entities.VideoScript", "VideoScript") | |
| .WithOne("VideoAsset") | |
| .HasForeignKey("ClipForge.Core.Entities.VideoAsset", "VideoScriptId") | |
| .OnDelete(DeleteBehavior.Cascade) | |
| .IsRequired(); | |
| b.Navigation("VideoScript"); | |
| }); | |
| modelBuilder.Entity("ClipForge.Core.Entities.VideoScript", b => | |
| { | |
| b.HasOne("ClipForge.Core.Entities.VideoIdea", "VideoIdea") | |
| .WithOne("Script") | |
| .HasForeignKey("ClipForge.Core.Entities.VideoScript", "VideoIdeaId") | |
| .OnDelete(DeleteBehavior.Cascade) | |
| .IsRequired(); | |
| b.Navigation("VideoIdea"); | |
| }); | |
| modelBuilder.Entity("ClipForge.Core.Entities.VoiceAsset", b => | |
| { | |
| b.HasOne("ClipForge.Core.Entities.VideoScript", "VideoScript") | |
| .WithOne("VoiceAsset") | |
| .HasForeignKey("ClipForge.Core.Entities.VoiceAsset", "VideoScriptId") | |
| .OnDelete(DeleteBehavior.Cascade) | |
| .IsRequired(); | |
| b.Navigation("VideoScript"); | |
| }); | |
| modelBuilder.Entity("ClipForge.Core.Entities.SocialAccount", b => | |
| { | |
| b.Navigation("PublishJobs"); | |
| }); | |
| modelBuilder.Entity("ClipForge.Core.Entities.VideoAsset", b => | |
| { | |
| b.Navigation("CaptionAsset"); | |
| b.Navigation("PublishJobs"); | |
| }); | |
| modelBuilder.Entity("ClipForge.Core.Entities.VideoIdea", b => | |
| { | |
| b.Navigation("Script"); | |
| }); | |
| modelBuilder.Entity("ClipForge.Core.Entities.VideoScript", b => | |
| { | |
| b.Navigation("VideoAsset"); | |
| b.Navigation("VoiceAsset"); | |
| }); | |
| } | |
| } | |
| } | |