IdentityVSAPI

Форк
0
/
20230802064950_AddToDbIdentity.Designer.cs 
301 строка · 10.9 Кб
1
// <auto-generated />
2
using System;
3
using IdentityVSAPI.DAL;
4
using Microsoft.EntityFrameworkCore;
5
using Microsoft.EntityFrameworkCore.Infrastructure;
6
using Microsoft.EntityFrameworkCore.Migrations;
7
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
8
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
9

10
#nullable disable
11

12
namespace IdentityVSAPI.DAL.Migrations
13
{
14
    [DbContext(typeof(ApplicationDbContext))]
15
    [Migration("20230802064950_AddToDbIdentity")]
16
    partial class AddToDbIdentity
17
    {
18
        /// <inheritdoc />
19
        protected override void BuildTargetModel(ModelBuilder modelBuilder)
20
        {
21
#pragma warning disable 612, 618
22
            modelBuilder
23
                .HasAnnotation("ProductVersion", "7.0.9")
24
                .HasAnnotation("Relational:MaxIdentifierLength", 63);
25

26
            NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
27

28
            modelBuilder.Entity("IdentityVSAPI.Domain.Entity.ApplicationUser", b =>
29
                {
30
                    b.Property<long>("Id")
31
                        .ValueGeneratedOnAdd()
32
                        .HasColumnType("bigint");
33

34
                    NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<long>("Id"));
35

36
                    b.Property<int>("AccessFailedCount")
37
                        .HasColumnType("integer");
38

39
                    b.Property<DateTime>("BirthDate")
40
                        .HasColumnType("timestamp without time zone");
41

42
                    b.Property<string>("ConcurrencyStamp")
43
                        .IsConcurrencyToken()
44
                        .HasColumnType("text");
45

46
                    b.Property<string>("Email")
47
                        .HasMaxLength(256)
48
                        .HasColumnType("character varying(256)");
49

50
                    b.Property<bool>("EmailConfirmed")
51
                        .HasColumnType("boolean");
52

53
                    b.Property<string>("FirstName")
54
                        .IsRequired()
55
                        .HasColumnType("text");
56

57
                    b.Property<string>("LastName")
58
                        .IsRequired()
59
                        .HasColumnType("text");
60

61
                    b.Property<bool>("LockoutEnabled")
62
                        .HasColumnType("boolean");
63

64
                    b.Property<DateTimeOffset?>("LockoutEnd")
65
                        .HasColumnType("timestamp with time zone");
66

67
                    b.Property<string>("MiddleName")
68
                        .HasColumnType("text");
69

70
                    b.Property<string>("NormalizedEmail")
71
                        .HasMaxLength(256)
72
                        .HasColumnType("character varying(256)");
73

74
                    b.Property<string>("NormalizedUserName")
75
                        .HasMaxLength(256)
76
                        .HasColumnType("character varying(256)");
77

78
                    b.Property<string>("PasswordHash")
79
                        .HasColumnType("text");
80

81
                    b.Property<string>("PhoneNumber")
82
                        .HasColumnType("text");
83

84
                    b.Property<bool>("PhoneNumberConfirmed")
85
                        .HasColumnType("boolean");
86

87
                    b.Property<string>("RefreshToken")
88
                        .IsRequired()
89
                        .HasColumnType("text");
90

91
                    b.Property<DateTime>("RefreshTokenExpiryTime")
92
                        .HasColumnType("timestamp without time zone");
93

94
                    b.Property<string>("SecurityStamp")
95
                        .HasColumnType("text");
96

97
                    b.Property<bool>("TwoFactorEnabled")
98
                        .HasColumnType("boolean");
99

100
                    b.Property<string>("UserName")
101
                        .HasMaxLength(256)
102
                        .HasColumnType("character varying(256)");
103

104
                    b.HasKey("Id");
105

106
                    b.HasIndex("NormalizedEmail")
107
                        .HasDatabaseName("EmailIndex");
108

109
                    b.HasIndex("NormalizedUserName")
110
                        .IsUnique()
111
                        .HasDatabaseName("UserNameIndex");
112

113
                    b.ToTable("AspNetUsers", (string)null);
114
                });
115

116
            modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole<long>", b =>
117
                {
118
                    b.Property<long>("Id")
119
                        .ValueGeneratedOnAdd()
120
                        .HasColumnType("bigint");
121

122
                    NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<long>("Id"));
123

124
                    b.Property<string>("ConcurrencyStamp")
125
                        .IsConcurrencyToken()
126
                        .HasColumnType("text");
127

128
                    b.Property<string>("Name")
129
                        .HasMaxLength(256)
130
                        .HasColumnType("character varying(256)");
131

132
                    b.Property<string>("NormalizedName")
133
                        .HasMaxLength(256)
134
                        .HasColumnType("character varying(256)");
135

136
                    b.HasKey("Id");
137

138
                    b.HasIndex("NormalizedName")
139
                        .IsUnique()
140
                        .HasDatabaseName("RoleNameIndex");
141

142
                    b.ToTable("AspNetRoles", (string)null);
143
                });
144

145
            modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<long>", b =>
146
                {
147
                    b.Property<int>("Id")
148
                        .ValueGeneratedOnAdd()
149
                        .HasColumnType("integer");
150

151
                    NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
152

153
                    b.Property<string>("ClaimType")
154
                        .HasColumnType("text");
155

156
                    b.Property<string>("ClaimValue")
157
                        .HasColumnType("text");
158

159
                    b.Property<long>("RoleId")
160
                        .HasColumnType("bigint");
161

162
                    b.HasKey("Id");
163

164
                    b.HasIndex("RoleId");
165

166
                    b.ToTable("AspNetRoleClaims", (string)null);
167
                });
168

169
            modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<long>", b =>
170
                {
171
                    b.Property<int>("Id")
172
                        .ValueGeneratedOnAdd()
173
                        .HasColumnType("integer");
174

175
                    NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
176

177
                    b.Property<string>("ClaimType")
178
                        .HasColumnType("text");
179

180
                    b.Property<string>("ClaimValue")
181
                        .HasColumnType("text");
182

183
                    b.Property<long>("UserId")
184
                        .HasColumnType("bigint");
185

186
                    b.HasKey("Id");
187

188
                    b.HasIndex("UserId");
189

190
                    b.ToTable("AspNetUserClaims", (string)null);
191
                });
192

193
            modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<long>", b =>
194
                {
195
                    b.Property<string>("LoginProvider")
196
                        .HasColumnType("text");
197

198
                    b.Property<string>("ProviderKey")
199
                        .HasColumnType("text");
200

201
                    b.Property<string>("ProviderDisplayName")
202
                        .HasColumnType("text");
203

204
                    b.Property<long>("UserId")
205
                        .HasColumnType("bigint");
206

207
                    b.HasKey("LoginProvider", "ProviderKey");
208

209
                    b.HasIndex("UserId");
210

211
                    b.ToTable("AspNetUserLogins", (string)null);
212
                });
213

214
            modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<long>", b =>
215
                {
216
                    b.Property<long>("UserId")
217
                        .HasColumnType("bigint");
218

219
                    b.Property<long>("RoleId")
220
                        .HasColumnType("bigint");
221

222
                    b.HasKey("UserId", "RoleId");
223

224
                    b.HasIndex("RoleId");
225

226
                    b.ToTable("AspNetUserRoles", (string)null);
227
                });
228

229
            modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<long>", b =>
230
                {
231
                    b.Property<long>("UserId")
232
                        .HasColumnType("bigint");
233

234
                    b.Property<string>("LoginProvider")
235
                        .HasColumnType("text");
236

237
                    b.Property<string>("Name")
238
                        .HasColumnType("text");
239

240
                    b.Property<string>("Value")
241
                        .HasColumnType("text");
242

243
                    b.HasKey("UserId", "LoginProvider", "Name");
244

245
                    b.ToTable("AspNetUserTokens", (string)null);
246
                });
247

248
            modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<long>", b =>
249
                {
250
                    b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole<long>", null)
251
                        .WithMany()
252
                        .HasForeignKey("RoleId")
253
                        .OnDelete(DeleteBehavior.Cascade)
254
                        .IsRequired();
255
                });
256

257
            modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<long>", b =>
258
                {
259
                    b.HasOne("IdentityVSAPI.Domain.Entity.ApplicationUser", null)
260
                        .WithMany()
261
                        .HasForeignKey("UserId")
262
                        .OnDelete(DeleteBehavior.Cascade)
263
                        .IsRequired();
264
                });
265

266
            modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<long>", b =>
267
                {
268
                    b.HasOne("IdentityVSAPI.Domain.Entity.ApplicationUser", null)
269
                        .WithMany()
270
                        .HasForeignKey("UserId")
271
                        .OnDelete(DeleteBehavior.Cascade)
272
                        .IsRequired();
273
                });
274

275
            modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<long>", b =>
276
                {
277
                    b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole<long>", null)
278
                        .WithMany()
279
                        .HasForeignKey("RoleId")
280
                        .OnDelete(DeleteBehavior.Cascade)
281
                        .IsRequired();
282

283
                    b.HasOne("IdentityVSAPI.Domain.Entity.ApplicationUser", null)
284
                        .WithMany()
285
                        .HasForeignKey("UserId")
286
                        .OnDelete(DeleteBehavior.Cascade)
287
                        .IsRequired();
288
                });
289

290
            modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<long>", b =>
291
                {
292
                    b.HasOne("IdentityVSAPI.Domain.Entity.ApplicationUser", null)
293
                        .WithMany()
294
                        .HasForeignKey("UserId")
295
                        .OnDelete(DeleteBehavior.Cascade)
296
                        .IsRequired();
297
                });
298
#pragma warning restore 612, 618
299
        }
300
    }
301
}
302

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.