150 lines
		
	
	
		
			5.7 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			150 lines
		
	
	
		
			5.7 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
| // <auto-generated />
 | |
| using System;
 | |
| using System.Collections.Generic;
 | |
| using DysonNetwork.Ring;
 | |
| using Microsoft.EntityFrameworkCore;
 | |
| using Microsoft.EntityFrameworkCore.Infrastructure;
 | |
| using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
 | |
| using NodaTime;
 | |
| using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
 | |
| 
 | |
| #nullable disable
 | |
| 
 | |
| namespace DysonNetwork.Ring.Migrations
 | |
| {
 | |
|     [DbContext(typeof(AppDatabase))]
 | |
|     partial class AppDatabaseModelSnapshot : ModelSnapshot
 | |
|     {
 | |
|         protected override void BuildModel(ModelBuilder modelBuilder)
 | |
|         {
 | |
| #pragma warning disable 612, 618
 | |
|             modelBuilder
 | |
|                 .HasAnnotation("ProductVersion", "9.0.7")
 | |
|                 .HasAnnotation("Relational:MaxIdentifierLength", 63);
 | |
| 
 | |
|             NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
 | |
| 
 | |
|             modelBuilder.Entity("DysonNetwork.Ring.Notification.Notification", b =>
 | |
|                 {
 | |
|                     b.Property<Guid>("Id")
 | |
|                         .ValueGeneratedOnAdd()
 | |
|                         .HasColumnType("uuid")
 | |
|                         .HasColumnName("id");
 | |
| 
 | |
|                     b.Property<Guid>("AccountId")
 | |
|                         .HasColumnType("uuid")
 | |
|                         .HasColumnName("account_id");
 | |
| 
 | |
|                     b.Property<string>("Content")
 | |
|                         .HasMaxLength(4096)
 | |
|                         .HasColumnType("character varying(4096)")
 | |
|                         .HasColumnName("content");
 | |
| 
 | |
|                     b.Property<Instant>("CreatedAt")
 | |
|                         .HasColumnType("timestamp with time zone")
 | |
|                         .HasColumnName("created_at");
 | |
| 
 | |
|                     b.Property<Instant?>("DeletedAt")
 | |
|                         .HasColumnType("timestamp with time zone")
 | |
|                         .HasColumnName("deleted_at");
 | |
| 
 | |
|                     b.Property<Dictionary<string, object>>("Meta")
 | |
|                         .IsRequired()
 | |
|                         .HasColumnType("jsonb")
 | |
|                         .HasColumnName("meta");
 | |
| 
 | |
|                     b.Property<int>("Priority")
 | |
|                         .HasColumnType("integer")
 | |
|                         .HasColumnName("priority");
 | |
| 
 | |
|                     b.Property<string>("Subtitle")
 | |
|                         .HasMaxLength(2048)
 | |
|                         .HasColumnType("character varying(2048)")
 | |
|                         .HasColumnName("subtitle");
 | |
| 
 | |
|                     b.Property<string>("Title")
 | |
|                         .HasMaxLength(1024)
 | |
|                         .HasColumnType("character varying(1024)")
 | |
|                         .HasColumnName("title");
 | |
| 
 | |
|                     b.Property<string>("Topic")
 | |
|                         .IsRequired()
 | |
|                         .HasMaxLength(1024)
 | |
|                         .HasColumnType("character varying(1024)")
 | |
|                         .HasColumnName("topic");
 | |
| 
 | |
|                     b.Property<Instant>("UpdatedAt")
 | |
|                         .HasColumnType("timestamp with time zone")
 | |
|                         .HasColumnName("updated_at");
 | |
| 
 | |
|                     b.Property<Instant?>("ViewedAt")
 | |
|                         .HasColumnType("timestamp with time zone")
 | |
|                         .HasColumnName("viewed_at");
 | |
| 
 | |
|                     b.HasKey("Id")
 | |
|                         .HasName("pk_notifications");
 | |
| 
 | |
|                     b.ToTable("notifications", (string)null);
 | |
|                 });
 | |
| 
 | |
|             modelBuilder.Entity("DysonNetwork.Ring.Notification.PushSubscription", b =>
 | |
|                 {
 | |
|                     b.Property<Guid>("Id")
 | |
|                         .ValueGeneratedOnAdd()
 | |
|                         .HasColumnType("uuid")
 | |
|                         .HasColumnName("id");
 | |
| 
 | |
|                     b.Property<Guid>("AccountId")
 | |
|                         .HasColumnType("uuid")
 | |
|                         .HasColumnName("account_id");
 | |
| 
 | |
|                     b.Property<int>("CountDelivered")
 | |
|                         .HasColumnType("integer")
 | |
|                         .HasColumnName("count_delivered");
 | |
| 
 | |
|                     b.Property<Instant>("CreatedAt")
 | |
|                         .HasColumnType("timestamp with time zone")
 | |
|                         .HasColumnName("created_at");
 | |
| 
 | |
|                     b.Property<Instant?>("DeletedAt")
 | |
|                         .HasColumnType("timestamp with time zone")
 | |
|                         .HasColumnName("deleted_at");
 | |
| 
 | |
|                     b.Property<string>("DeviceId")
 | |
|                         .IsRequired()
 | |
|                         .HasMaxLength(8192)
 | |
|                         .HasColumnType("character varying(8192)")
 | |
|                         .HasColumnName("device_id");
 | |
| 
 | |
|                     b.Property<string>("DeviceToken")
 | |
|                         .IsRequired()
 | |
|                         .HasMaxLength(8192)
 | |
|                         .HasColumnType("character varying(8192)")
 | |
|                         .HasColumnName("device_token");
 | |
| 
 | |
|                     b.Property<Instant?>("LastUsedAt")
 | |
|                         .HasColumnType("timestamp with time zone")
 | |
|                         .HasColumnName("last_used_at");
 | |
| 
 | |
|                     b.Property<int>("Provider")
 | |
|                         .HasColumnType("integer")
 | |
|                         .HasColumnName("provider");
 | |
| 
 | |
|                     b.Property<Instant>("UpdatedAt")
 | |
|                         .HasColumnType("timestamp with time zone")
 | |
|                         .HasColumnName("updated_at");
 | |
| 
 | |
|                     b.HasKey("Id")
 | |
|                         .HasName("pk_push_subscriptions");
 | |
| 
 | |
|                     b.HasIndex("AccountId", "DeviceId", "DeletedAt")
 | |
|                         .IsUnique()
 | |
|                         .HasDatabaseName("ix_push_subscriptions_account_id_device_id_deleted_at");
 | |
| 
 | |
|                     b.ToTable("push_subscriptions", (string)null);
 | |
|                 });
 | |
| #pragma warning restore 612, 618
 | |
|         }
 | |
|     }
 | |
| }
 |