Rename indicies
This commit is contained in:
parent
ad17d90c28
commit
dcfd417ecf
66 changed files with 8812 additions and 503 deletions
6135
Iceshrimp.Backend/Core/Database/Migrations/20240107184237_RenameIndicies.Designer.cs
generated
Normal file
6135
Iceshrimp.Backend/Core/Database/Migrations/20240107184237_RenameIndicies.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -5,12 +5,12 @@ using Microsoft.EntityFrameworkCore;
|
|||
namespace Iceshrimp.Backend.Core.Database.Tables;
|
||||
|
||||
[Table("abuse_user_report")]
|
||||
[Index("ReporterId", Name = "IDX_04cc96756f89d0b7f9473e8cdf")]
|
||||
[Index("Resolved", Name = "IDX_2b15aaf4a0dc5be3499af7ab6a")]
|
||||
[Index("TargetUserHost", Name = "IDX_4ebbf7f93cdc10e8d1ef2fc6cd")]
|
||||
[Index("TargetUserId", Name = "IDX_a9021cc2e1feb5f72d3db6e9f5")]
|
||||
[Index("CreatedAt", Name = "IDX_db2098070b2b5a523c58181f74")]
|
||||
[Index("ReporterHost", Name = "IDX_f8d8b93740ad12c4ce8213a199")]
|
||||
[Index("ReporterId")]
|
||||
[Index("Resolved")]
|
||||
[Index("TargetUserHost")]
|
||||
[Index("TargetUserId")]
|
||||
[Index("CreatedAt")]
|
||||
[Index("ReporterHost")]
|
||||
public class AbuseUserReport {
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
|
|
@ -5,10 +5,10 @@ using Microsoft.EntityFrameworkCore;
|
|||
namespace Iceshrimp.Backend.Core.Database.Tables;
|
||||
|
||||
[Table("access_token")]
|
||||
[Index("Hash", Name = "IDX_64c327441248bae40f7d92f34f")]
|
||||
[Index("Token", Name = "IDX_70ba8f6af34bc924fc9e12adb8")]
|
||||
[Index("UserId", Name = "IDX_9949557d0e1b2c19e5344c171e")]
|
||||
[Index("Session", Name = "IDX_bf3a053c07d9fb5d87317c56ee")]
|
||||
[Index("Hash")]
|
||||
[Index("Token")]
|
||||
[Index("UserId")]
|
||||
[Index("Session")]
|
||||
public class AccessToken {
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
|
|
@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore;
|
|||
namespace Iceshrimp.Backend.Core.Database.Tables;
|
||||
|
||||
[Table("announcement")]
|
||||
[Index("CreatedAt", Name = "IDX_118ec703e596086fc4515acb39")]
|
||||
[Index("CreatedAt")]
|
||||
public class Announcement {
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
|
|
@ -5,9 +5,9 @@ using Microsoft.EntityFrameworkCore;
|
|||
namespace Iceshrimp.Backend.Core.Database.Tables;
|
||||
|
||||
[Table("announcement_read")]
|
||||
[Index("AnnouncementId", Name = "IDX_603a7b1e7aa0533c6c88e9bfaf")]
|
||||
[Index("UserId", Name = "IDX_8288151386172b8109f7239ab2")]
|
||||
[Index("UserId", "AnnouncementId", Name = "IDX_924fa71815cfa3941d003702a0", IsUnique = true)]
|
||||
[Index("AnnouncementId")]
|
||||
[Index("UserId")]
|
||||
[Index("UserId", "AnnouncementId", IsUnique = true)]
|
||||
public class AnnouncementRead {
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
|
|
@ -6,7 +6,7 @@ using NpgsqlTypes;
|
|||
namespace Iceshrimp.Backend.Core.Database.Tables;
|
||||
|
||||
[Table("antenna")]
|
||||
[Index("UserId", Name = "IDX_6446c571a0e8d0f05f01c78909")]
|
||||
[Index("UserId")]
|
||||
public class Antenna {
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
|
|
@ -5,9 +5,9 @@ using Microsoft.EntityFrameworkCore;
|
|||
namespace Iceshrimp.Backend.Core.Database.Tables;
|
||||
|
||||
[Table("app")]
|
||||
[Index("CreatedAt", Name = "IDX_048a757923ed8b157e9895da53")]
|
||||
[Index("UserId", Name = "IDX_3f5b0899ef90527a3462d7c2cb")]
|
||||
[Index("Secret", Name = "IDX_f49922d511d666848f250663c4")]
|
||||
[Index("CreatedAt")]
|
||||
[Index("UserId")]
|
||||
[Index("Secret")]
|
||||
public class App {
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
|
|
@ -6,8 +6,8 @@ namespace Iceshrimp.Backend.Core.Database.Tables;
|
|||
|
||||
[PrimaryKey("Id", "UserId")]
|
||||
[Table("attestation_challenge")]
|
||||
[Index("Challenge", Name = "IDX_47efb914aed1f72dd39a306c7b")]
|
||||
[Index("UserId", Name = "IDX_f1a461a618fa1755692d0e0d59")]
|
||||
[Index("Challenge")]
|
||||
[Index("UserId")]
|
||||
public class AttestationChallenge {
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
|
|
@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore;
|
|||
namespace Iceshrimp.Backend.Core.Database.Tables;
|
||||
|
||||
[Table("auth_session")]
|
||||
[Index("Token", Name = "IDX_62cb09e1129f6ec024ef66e183")]
|
||||
[Index("Token")]
|
||||
public class AuthSession {
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
|
|
@ -5,10 +5,10 @@ using Microsoft.EntityFrameworkCore;
|
|||
namespace Iceshrimp.Backend.Core.Database.Tables;
|
||||
|
||||
[Table("blocking")]
|
||||
[Index("BlockerId", Name = "IDX_0627125f1a8a42c9a1929edb55")]
|
||||
[Index("BlockeeId", Name = "IDX_2cd4a2743a99671308f5417759")]
|
||||
[Index("BlockerId", "BlockeeId", Name = "IDX_98a1bc5cb30dfd159de056549f", IsUnique = true)]
|
||||
[Index("CreatedAt", Name = "IDX_b9a354f7941c1e779f3b33aea6")]
|
||||
[Index("BlockerId")]
|
||||
[Index("BlockeeId")]
|
||||
[Index("BlockerId", "BlockeeId", IsUnique = true)]
|
||||
[Index("CreatedAt")]
|
||||
public class Blocking {
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
|
|
@ -5,11 +5,11 @@ using Microsoft.EntityFrameworkCore;
|
|||
namespace Iceshrimp.Backend.Core.Database.Tables;
|
||||
|
||||
[Table("channel")]
|
||||
[Index("UsersCount", Name = "IDX_094b86cd36bb805d1aa1e8cc9a")]
|
||||
[Index("NotesCount", Name = "IDX_0f58c11241e649d2a638a8de94")]
|
||||
[Index("LastNotedAt", Name = "IDX_29ef80c6f13bcea998447fce43")]
|
||||
[Index("CreatedAt", Name = "IDX_71cb7b435b7c0d4843317e7e16")]
|
||||
[Index("UserId", Name = "IDX_823bae55bd81b3be6e05cff438")]
|
||||
[Index("UsersCount")]
|
||||
[Index("NotesCount")]
|
||||
[Index("LastNotedAt")]
|
||||
[Index("CreatedAt")]
|
||||
[Index("UserId")]
|
||||
public class Channel {
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
|
|
@ -5,10 +5,10 @@ using Microsoft.EntityFrameworkCore;
|
|||
namespace Iceshrimp.Backend.Core.Database.Tables;
|
||||
|
||||
[Table("channel_following")]
|
||||
[Index("FolloweeId", Name = "IDX_0e43068c3f92cab197c3d3cd86")]
|
||||
[Index("CreatedAt", Name = "IDX_11e71f2511589dcc8a4d3214f9")]
|
||||
[Index("FollowerId", "FolloweeId", Name = "IDX_2e230dd45a10e671d781d99f3e", IsUnique = true)]
|
||||
[Index("FollowerId", Name = "IDX_6d8084ec9496e7334a4602707e")]
|
||||
[Index("FolloweeId")]
|
||||
[Index("CreatedAt")]
|
||||
[Index("FollowerId", "FolloweeId", IsUnique = true)]
|
||||
[Index("FollowerId")]
|
||||
public class ChannelFollowing {
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
|
|
@ -5,8 +5,8 @@ using Microsoft.EntityFrameworkCore;
|
|||
namespace Iceshrimp.Backend.Core.Database.Tables;
|
||||
|
||||
[Table("channel_note_pin")]
|
||||
[Index("ChannelId", Name = "IDX_8125f950afd3093acb10d2db8a")]
|
||||
[Index("ChannelId", "NoteId", Name = "IDX_f36fed37d6d4cdcc68c803cd9c", IsUnique = true)]
|
||||
[Index("ChannelId")]
|
||||
[Index("ChannelId", "NoteId", IsUnique = true)]
|
||||
public class ChannelNotePin {
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
|
|
@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore;
|
|||
namespace Iceshrimp.Backend.Core.Database.Tables;
|
||||
|
||||
[Table("clip")]
|
||||
[Index("UserId", Name = "IDX_2b5ec6c574d6802c94c80313fb")]
|
||||
[Index("UserId")]
|
||||
public class Clip {
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
|
|
@ -5,9 +5,9 @@ using Microsoft.EntityFrameworkCore;
|
|||
namespace Iceshrimp.Backend.Core.Database.Tables;
|
||||
|
||||
[Table("clip_note")]
|
||||
[Index("NoteId", "ClipId", Name = "IDX_6fc0ec357d55a18646262fdfff", IsUnique = true)]
|
||||
[Index("NoteId", Name = "IDX_a012eaf5c87c65da1deb5fdbfa")]
|
||||
[Index("ClipId", Name = "IDX_ebe99317bbbe9968a0c6f579ad")]
|
||||
[Index("NoteId", "ClipId", IsUnique = true)]
|
||||
[Index("NoteId")]
|
||||
[Index("ClipId")]
|
||||
public class ClipNote {
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
|
|
@ -5,19 +5,19 @@ using Microsoft.EntityFrameworkCore;
|
|||
namespace Iceshrimp.Backend.Core.Database.Tables;
|
||||
|
||||
[Table("drive_file")]
|
||||
[Index("IsLink", Name = "IDX_315c779174fe8247ab324f036e")]
|
||||
[Index("Md5", Name = "IDX_37bb9a1b4585f8a3beb24c62d6")]
|
||||
[Index("UserId", "FolderId", "Id", Name = "IDX_55720b33a61a7c806a8215b825")]
|
||||
[Index("UserId", Name = "IDX_860fa6f6c7df5bb887249fba22")]
|
||||
[Index("UserHost", Name = "IDX_92779627994ac79277f070c91e")]
|
||||
[Index("Type", Name = "IDX_a40b8df8c989d7db937ea27cf6")]
|
||||
[Index("IsSensitive", Name = "IDX_a7eba67f8b3fa27271e85d2e26")]
|
||||
[Index("FolderId", Name = "IDX_bb90d1956dafc4068c28aa7560")]
|
||||
[Index("WebpublicAccessKey", Name = "IDX_c55b2b7c284d9fef98026fc88e", IsUnique = true)]
|
||||
[Index("CreatedAt", Name = "IDX_c8dfad3b72196dd1d6b5db168a")]
|
||||
[Index("AccessKey", Name = "IDX_d85a184c2540d2deba33daf642", IsUnique = true)]
|
||||
[Index("Uri", Name = "IDX_e5848eac4940934e23dbc17581")]
|
||||
[Index("ThumbnailAccessKey", Name = "IDX_e74022ce9a074b3866f70e0d27", IsUnique = true)]
|
||||
[Index("IsLink")]
|
||||
[Index("Md5")]
|
||||
[Index("UserId", "FolderId", "Id")]
|
||||
[Index("UserId")]
|
||||
[Index("UserHost")]
|
||||
[Index("Type")]
|
||||
[Index("IsSensitive")]
|
||||
[Index("FolderId")]
|
||||
[Index("WebpublicAccessKey", IsUnique = true)]
|
||||
[Index("CreatedAt")]
|
||||
[Index("AccessKey", IsUnique = true)]
|
||||
[Index("Uri")]
|
||||
[Index("ThumbnailAccessKey", IsUnique = true)]
|
||||
public class DriveFile {
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
|
|
@ -5,9 +5,9 @@ using Microsoft.EntityFrameworkCore;
|
|||
namespace Iceshrimp.Backend.Core.Database.Tables;
|
||||
|
||||
[Table("drive_folder")]
|
||||
[Index("ParentId", Name = "IDX_00ceffb0cdc238b3233294f08f")]
|
||||
[Index("CreatedAt", Name = "IDX_02878d441ceae15ce060b73daf")]
|
||||
[Index("UserId", Name = "IDX_f4fc06e49c0171c85f1c48060d")]
|
||||
[Index("ParentId")]
|
||||
[Index("CreatedAt")]
|
||||
[Index("UserId")]
|
||||
public class DriveFolder {
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
|
|
@ -5,9 +5,9 @@ using Microsoft.EntityFrameworkCore;
|
|||
namespace Iceshrimp.Backend.Core.Database.Tables;
|
||||
|
||||
[Table("emoji")]
|
||||
[Index("Name", "Host", Name = "IDX_4f4d35e1256c84ae3d1f0eab10", IsUnique = true)]
|
||||
[Index("Host", Name = "IDX_5900e907bb46516ddf2871327c")]
|
||||
[Index("Name", Name = "IDX_b37dafc86e9af007e3295c2781")]
|
||||
[Index("Name", "Host", IsUnique = true)]
|
||||
[Index("Host")]
|
||||
[Index("Name")]
|
||||
public class Emoji {
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
|
|
@ -5,9 +5,9 @@ using Microsoft.EntityFrameworkCore;
|
|||
namespace Iceshrimp.Backend.Core.Database.Tables;
|
||||
|
||||
[Table("follow_request")]
|
||||
[Index("FolloweeId", Name = "IDX_12c01c0d1a79f77d9f6c15fadd")]
|
||||
[Index("FollowerId", Name = "IDX_a7fd92dd6dc519e6fb435dd108")]
|
||||
[Index("FollowerId", "FolloweeId", Name = "IDX_d54a512b822fac7ed52800f6b4", IsUnique = true)]
|
||||
[Index("FolloweeId")]
|
||||
[Index("FollowerId")]
|
||||
[Index("FollowerId", "FolloweeId", IsUnique = true)]
|
||||
public class FollowRequest {
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
|
|
@ -5,12 +5,12 @@ using Microsoft.EntityFrameworkCore;
|
|||
namespace Iceshrimp.Backend.Core.Database.Tables;
|
||||
|
||||
[Table("following")]
|
||||
[Index("FolloweeId", Name = "IDX_24e0042143a18157b234df186c")]
|
||||
[Index("FollowerId", "FolloweeId", Name = "IDX_307be5f1d1252e0388662acb96", IsUnique = true)]
|
||||
[Index("FollowerHost", Name = "IDX_4ccd2239268ebbd1b35e318754")]
|
||||
[Index("CreatedAt", Name = "IDX_582f8fab771a9040a12961f3e7")]
|
||||
[Index("FollowerId", Name = "IDX_6516c5a6f3c015b4eed39978be")]
|
||||
[Index("FolloweeHost", Name = "IDX_fcdafee716dfe9c3b5fde90f30")]
|
||||
[Index("FolloweeId")]
|
||||
[Index("FollowerId", "FolloweeId", IsUnique = true)]
|
||||
[Index("FollowerHost")]
|
||||
[Index("CreatedAt")]
|
||||
[Index("FollowerId")]
|
||||
[Index("FolloweeHost")]
|
||||
public class Following {
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
|
|
@ -5,8 +5,8 @@ using Microsoft.EntityFrameworkCore;
|
|||
namespace Iceshrimp.Backend.Core.Database.Tables;
|
||||
|
||||
[Table("gallery_like")]
|
||||
[Index("UserId", Name = "IDX_8fd5215095473061855ceb948c")]
|
||||
[Index("UserId", "PostId", Name = "IDX_df1b5f4099e99fb0bc5eae53b6", IsUnique = true)]
|
||||
[Index("UserId")]
|
||||
[Index("UserId", "PostId", IsUnique = true)]
|
||||
public class GalleryLike {
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
|
|
@ -5,13 +5,13 @@ using Microsoft.EntityFrameworkCore;
|
|||
namespace Iceshrimp.Backend.Core.Database.Tables;
|
||||
|
||||
[Table("gallery_post")]
|
||||
[Index("Tags", Name = "IDX_05cca34b985d1b8edc1d1e28df")]
|
||||
[Index("LikedCount", Name = "IDX_1a165c68a49d08f11caffbd206")]
|
||||
[Index("FileIds", Name = "IDX_3ca50563facd913c425e7a89ee")]
|
||||
[Index("CreatedAt", Name = "IDX_8f1a239bd077c8864a20c62c2c")]
|
||||
[Index("UserId", Name = "IDX_985b836dddd8615e432d7043dd")]
|
||||
[Index("IsSensitive", Name = "IDX_f2d744d9a14d0dfb8b96cb7fc5")]
|
||||
[Index("UpdatedAt", Name = "IDX_f631d37835adb04792e361807c")]
|
||||
[Index("Tags")]
|
||||
[Index("LikedCount")]
|
||||
[Index("FileIds")]
|
||||
[Index("CreatedAt")]
|
||||
[Index("UserId")]
|
||||
[Index("IsSensitive")]
|
||||
[Index("UpdatedAt")]
|
||||
public class GalleryPost {
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
|
|
@ -5,13 +5,13 @@ using Microsoft.EntityFrameworkCore;
|
|||
namespace Iceshrimp.Backend.Core.Database.Tables;
|
||||
|
||||
[Table("hashtag")]
|
||||
[Index("AttachedRemoteUsersCount", Name = "IDX_0b03cbcd7e6a7ce068efa8ecc2")]
|
||||
[Index("AttachedLocalUsersCount", Name = "IDX_0c44bf4f680964145f2a68a341")]
|
||||
[Index("MentionedLocalUsersCount", Name = "IDX_0e206cec573f1edff4a3062923")]
|
||||
[Index("MentionedUsersCount", Name = "IDX_2710a55f826ee236ea1a62698f")]
|
||||
[Index("Name", Name = "IDX_347fec870eafea7b26c8a73bac", IsUnique = true)]
|
||||
[Index("MentionedRemoteUsersCount", Name = "IDX_4c02d38a976c3ae132228c6fce")]
|
||||
[Index("AttachedUsersCount", Name = "IDX_d57f9030cd3af7f63ffb1c267c")]
|
||||
[Index("AttachedRemoteUsersCount")]
|
||||
[Index("AttachedLocalUsersCount")]
|
||||
[Index("MentionedLocalUsersCount")]
|
||||
[Index("MentionedUsersCount")]
|
||||
[Index("Name", IsUnique = true)]
|
||||
[Index("MentionedRemoteUsersCount")]
|
||||
[Index("AttachedUsersCount")]
|
||||
public class Hashtag {
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
|
|
@ -5,9 +5,9 @@ using Microsoft.EntityFrameworkCore;
|
|||
namespace Iceshrimp.Backend.Core.Database.Tables;
|
||||
|
||||
[Table("instance")]
|
||||
[Index("CaughtAt", Name = "IDX_2cd3b2a6b4cf0b910b260afe08")]
|
||||
[Index("IsSuspended", Name = "IDX_34500da2e38ac393f7bb6b299c")]
|
||||
[Index("Host", Name = "IDX_8d5afc98982185799b160e10eb", IsUnique = true)]
|
||||
[Index("CaughtAt")]
|
||||
[Index("IsSuspended")]
|
||||
[Index("Host", IsUnique = true)]
|
||||
public class Instance {
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
|
|
@ -5,10 +5,10 @@ using Microsoft.EntityFrameworkCore;
|
|||
namespace Iceshrimp.Backend.Core.Database.Tables;
|
||||
|
||||
[Table("messaging_message")]
|
||||
[Index("GroupId", Name = "IDX_2c4be03b446884f9e9c502135b")]
|
||||
[Index("UserId", Name = "IDX_5377c307783fce2b6d352e1203")]
|
||||
[Index("RecipientId", Name = "IDX_cac14a4e3944454a5ce7daa514")]
|
||||
[Index("CreatedAt", Name = "IDX_e21cd3646e52ef9c94aaf17c2e")]
|
||||
[Index("GroupId")]
|
||||
[Index("UserId")]
|
||||
[Index("RecipientId")]
|
||||
[Index("CreatedAt")]
|
||||
public class MessagingMessage {
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
|
|
@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore;
|
|||
namespace Iceshrimp.Backend.Core.Database.Tables;
|
||||
|
||||
[Table("moderation_log")]
|
||||
[Index("UserId", Name = "IDX_a08ad074601d204e0f69da9a95")]
|
||||
[Index("UserId")]
|
||||
public class ModerationLog {
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
|
|
@ -5,11 +5,11 @@ using Microsoft.EntityFrameworkCore;
|
|||
namespace Iceshrimp.Backend.Core.Database.Tables;
|
||||
|
||||
[Table("muting")]
|
||||
[Index("MuterId", "MuteeId", Name = "IDX_1eb9d9824a630321a29fd3b290", IsUnique = true)]
|
||||
[Index("MuterId", Name = "IDX_93060675b4a79a577f31d260c6")]
|
||||
[Index("ExpiresAt", Name = "IDX_c1fd1c3dfb0627aa36c253fd14")]
|
||||
[Index("MuteeId", Name = "IDX_ec96b4fed9dae517e0dbbe0675")]
|
||||
[Index("CreatedAt", Name = "IDX_f86d57fbca33c7a4e6897490cc")]
|
||||
[Index("MuterId", "MuteeId", IsUnique = true)]
|
||||
[Index("MuterId")]
|
||||
[Index("ExpiresAt")]
|
||||
[Index("MuteeId")]
|
||||
[Index("CreatedAt")]
|
||||
public class Muting {
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
|
|
@ -6,23 +6,23 @@ using NpgsqlTypes;
|
|||
namespace Iceshrimp.Backend.Core.Database.Tables;
|
||||
|
||||
[Table("note")]
|
||||
[Index("Uri", Name = "IDX_153536c67d05e9adb24e99fc2b", IsUnique = true)]
|
||||
[Index("ReplyId", Name = "IDX_17cb3553c700a4985dff5a30ff")]
|
||||
[Index("AttachedFileTypes", Name = "IDX_25dfc71b0369b003a4cd434d0b")]
|
||||
[Index("FileIds", Name = "IDX_51c063b6a133a9cb87145450f5")]
|
||||
[Index("RenoteId", Name = "IDX_52ccc804d7c69037d558bac4c9")]
|
||||
[Index("Mentions", Name = "IDX_54ebcb6d27222913b908d56fd8")]
|
||||
[Index("UserId", Name = "IDX_5b87d9d19127bd5d92026017a7")]
|
||||
[Index("UserHost", Name = "IDX_7125a826ab192eb27e11d358a5")]
|
||||
[Index("VisibleUserIds", Name = "IDX_796a8c03959361f97dc2be1d5c")]
|
||||
[Index("Tags", Name = "IDX_88937d94d7443d9a99a76fa5c0")]
|
||||
[Index("ThreadId", Name = "IDX_d4ebdef929896d6dc4a3c5bb48")]
|
||||
[Index("CreatedAt", Name = "IDX_e7c0567f5261063592f022e9b5")]
|
||||
[Index("ChannelId", Name = "IDX_f22169eb10657bded6d875ac8f")]
|
||||
[Index("CreatedAt", "UserId", Name = "IDX_note_createdAt_userId")]
|
||||
[Index("Id", "UserHost", Name = "IDX_note_id_userHost")]
|
||||
[Index("Url", Name = "IDX_note_url")]
|
||||
[Index("UserId", "Id", Name = "IDX_note_userId_id")]
|
||||
[Index("Uri", IsUnique = true)]
|
||||
[Index("ReplyId")]
|
||||
[Index("AttachedFileTypes")]
|
||||
[Index("FileIds")]
|
||||
[Index("RenoteId")]
|
||||
[Index("Mentions")]
|
||||
[Index("UserId")]
|
||||
[Index("UserHost")]
|
||||
[Index("VisibleUserIds")]
|
||||
[Index("Tags")]
|
||||
[Index("ThreadId")]
|
||||
[Index("CreatedAt")]
|
||||
[Index("ChannelId")]
|
||||
[Index("CreatedAt", "UserId")]
|
||||
[Index("Id", "UserHost")]
|
||||
[Index("Url")]
|
||||
[Index("UserId", "Id")]
|
||||
public class Note {
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
|
|
@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore;
|
|||
namespace Iceshrimp.Backend.Core.Database.Tables;
|
||||
|
||||
[Table("note_edit")]
|
||||
[Index("NoteId", Name = "IDX_702ad5ae993a672e4fbffbcd38")]
|
||||
[Index("NoteId")]
|
||||
public class NoteEdit {
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
|
|
@ -5,8 +5,8 @@ using Microsoft.EntityFrameworkCore;
|
|||
namespace Iceshrimp.Backend.Core.Database.Tables;
|
||||
|
||||
[Table("note_favorite")]
|
||||
[Index("UserId", "NoteId", Name = "IDX_0f4fb9ad355f3effff221ef245", IsUnique = true)]
|
||||
[Index("UserId", Name = "IDX_47f4b1892f5d6ba8efb3057d81")]
|
||||
[Index("UserId", "NoteId", IsUnique = true)]
|
||||
[Index("UserId")]
|
||||
public class NoteFavorite {
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
|
|
@ -5,10 +5,10 @@ using Microsoft.EntityFrameworkCore;
|
|||
namespace Iceshrimp.Backend.Core.Database.Tables;
|
||||
|
||||
[Table("note_reaction")]
|
||||
[Index("CreatedAt", Name = "IDX_01f4581f114e0ebd2bbb876f0b")]
|
||||
[Index("UserId", Name = "IDX_13761f64257f40c5636d0ff95e")]
|
||||
[Index("NoteId", Name = "IDX_45145e4953780f3cd5656f0ea6")]
|
||||
[Index("UserId", "NoteId", Name = "IDX_ad0c221b25672daf2df320a817", IsUnique = true)]
|
||||
[Index("CreatedAt")]
|
||||
[Index("UserId")]
|
||||
[Index("NoteId")]
|
||||
[Index("UserId", "NoteId", IsUnique = true)]
|
||||
public class NoteReaction {
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
|
|
@ -5,9 +5,9 @@ using Microsoft.EntityFrameworkCore;
|
|||
namespace Iceshrimp.Backend.Core.Database.Tables;
|
||||
|
||||
[Table("note_thread_muting")]
|
||||
[Index("UserId", Name = "IDX_29c11c7deb06615076f8c95b80")]
|
||||
[Index("UserId", "ThreadId", Name = "IDX_ae7aab18a2641d3e5f25e0c4ea", IsUnique = true)]
|
||||
[Index("ThreadId", Name = "IDX_c426394644267453e76f036926")]
|
||||
[Index("UserId")]
|
||||
[Index("UserId", "ThreadId", IsUnique = true)]
|
||||
[Index("ThreadId")]
|
||||
public class NoteThreadMuting {
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
|
|
@ -5,13 +5,13 @@ using Microsoft.EntityFrameworkCore;
|
|||
namespace Iceshrimp.Backend.Core.Database.Tables;
|
||||
|
||||
[Table("note_unread")]
|
||||
[Index("IsMentioned", Name = "IDX_25b1dd384bec391b07b74b861c")]
|
||||
[Index("NoteUserId", Name = "IDX_29e8c1d579af54d4232939f994")]
|
||||
[Index("UserId", Name = "IDX_56b0166d34ddae49d8ef7610bb")]
|
||||
[Index("NoteChannelId", Name = "IDX_6a57f051d82c6d4036c141e107")]
|
||||
[Index("IsSpecified", Name = "IDX_89a29c9237b8c3b6b3cbb4cb30")]
|
||||
[Index("UserId", "NoteId", Name = "IDX_d908433a4953cc13216cd9c274", IsUnique = true)]
|
||||
[Index("NoteId", Name = "IDX_e637cba4dc4410218c4251260e")]
|
||||
[Index("IsMentioned")]
|
||||
[Index("NoteUserId")]
|
||||
[Index("UserId")]
|
||||
[Index("NoteChannelId")]
|
||||
[Index("IsSpecified")]
|
||||
[Index("UserId", "NoteId", IsUnique = true)]
|
||||
[Index("NoteId")]
|
||||
public class NoteUnread {
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
|
|
@ -5,11 +5,11 @@ using Microsoft.EntityFrameworkCore;
|
|||
namespace Iceshrimp.Backend.Core.Database.Tables;
|
||||
|
||||
[Table("note_watching")]
|
||||
[Index("NoteId", Name = "IDX_03e7028ab8388a3f5e3ce2a861")]
|
||||
[Index("CreatedAt", Name = "IDX_318cdf42a9cfc11f479bd802bb")]
|
||||
[Index("NoteUserId", Name = "IDX_44499765eec6b5489d72c4253b")]
|
||||
[Index("UserId", "NoteId", Name = "IDX_a42c93c69989ce1d09959df4cf", IsUnique = true)]
|
||||
[Index("UserId", Name = "IDX_b0134ec406e8d09a540f818288")]
|
||||
[Index("NoteId")]
|
||||
[Index("CreatedAt")]
|
||||
[Index("NoteUserId")]
|
||||
[Index("UserId", "NoteId", IsUnique = true)]
|
||||
[Index("UserId")]
|
||||
public class NoteWatching {
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
|
|
@ -6,12 +6,12 @@ using NpgsqlTypes;
|
|||
namespace Iceshrimp.Backend.Core.Database.Tables;
|
||||
|
||||
[Table("notification")]
|
||||
[Index("Type", Name = "IDX_33f33cc8ef29d805a97ff4628b")]
|
||||
[Index("IsRead", Name = "IDX_080ab397c379af09b9d2169e5b")]
|
||||
[Index("NotifierId", Name = "IDX_3b4e96eec8d36a8bbb9d02aa71")]
|
||||
[Index("NotifieeId", Name = "IDX_3c601b70a1066d2c8b517094cb")]
|
||||
[Index("CreatedAt", Name = "IDX_b11a5e627c41d4dc3170f1d370")]
|
||||
[Index("AppAccessTokenId", Name = "IDX_e22bf6bda77b6adc1fd9e75c8c")]
|
||||
[Index("Type")]
|
||||
[Index("IsRead")]
|
||||
[Index("NotifierId")]
|
||||
[Index("NotifieeId")]
|
||||
[Index("CreatedAt")]
|
||||
[Index("AppAccessTokenId")]
|
||||
public class Notification {
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
|
|
@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore;
|
|||
namespace Iceshrimp.Backend.Core.Database.Tables;
|
||||
|
||||
[Table("oauth_app")]
|
||||
[Index("ClientId", Name = "IDX_65b61f406c811241e1315a2f82", IsUnique = true)]
|
||||
[Index("ClientId", IsUnique = true)]
|
||||
public class OauthApp {
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
|
|
@ -5,8 +5,8 @@ using Microsoft.EntityFrameworkCore;
|
|||
namespace Iceshrimp.Backend.Core.Database.Tables;
|
||||
|
||||
[Table("oauth_token")]
|
||||
[Index("Token", Name = "IDX_2cbeb4b389444bcf4379ef4273")]
|
||||
[Index("Code", Name = "IDX_dc5fe174a8b59025055f0ec136")]
|
||||
[Index("Token")]
|
||||
[Index("Code")]
|
||||
public class OauthToken {
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
|
|
@ -6,12 +6,12 @@ using NpgsqlTypes;
|
|||
namespace Iceshrimp.Backend.Core.Database.Tables;
|
||||
|
||||
[Table("page")]
|
||||
[Index("UserId", "Name", Name = "IDX_2133ef8317e4bdb839c0dcbf13", IsUnique = true)]
|
||||
[Index("VisibleUserIds", Name = "IDX_90148bbc2bf0854428786bfc15")]
|
||||
[Index("UserId", Name = "IDX_ae1d917992dd0c9d9bbdad06c4")]
|
||||
[Index("UpdatedAt", Name = "IDX_af639b066dfbca78b01a920f8a")]
|
||||
[Index("Name", Name = "IDX_b82c19c08afb292de4600d99e4")]
|
||||
[Index("CreatedAt", Name = "IDX_fbb4297c927a9b85e9cefa2eb1")]
|
||||
[Index("UserId", "Name", IsUnique = true)]
|
||||
[Index("VisibleUserIds")]
|
||||
[Index("UserId")]
|
||||
[Index("UpdatedAt")]
|
||||
[Index("Name")]
|
||||
[Index("CreatedAt")]
|
||||
public class Page {
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
|
|
@ -5,8 +5,8 @@ using Microsoft.EntityFrameworkCore;
|
|||
namespace Iceshrimp.Backend.Core.Database.Tables;
|
||||
|
||||
[Table("page_like")]
|
||||
[Index("UserId", Name = "IDX_0e61efab7f88dbb79c9166dbb4")]
|
||||
[Index("UserId", "PageId", Name = "IDX_4ce6fb9c70529b4c8ac46c9bfa", IsUnique = true)]
|
||||
[Index("UserId")]
|
||||
[Index("UserId", "PageId", IsUnique = true)]
|
||||
public class PageLike {
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
|
|
@ -5,8 +5,8 @@ using Microsoft.EntityFrameworkCore;
|
|||
namespace Iceshrimp.Backend.Core.Database.Tables;
|
||||
|
||||
[Table("password_reset_request")]
|
||||
[Index("Token", Name = "IDX_0b575fa9a4cfe638a925949285", IsUnique = true)]
|
||||
[Index("UserId", Name = "IDX_4bb7fd4a34492ae0e6cc8d30ac")]
|
||||
[Index("Token", IsUnique = true)]
|
||||
[Index("UserId")]
|
||||
public class PasswordResetRequest {
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
|
|
@ -6,8 +6,8 @@ using NpgsqlTypes;
|
|||
namespace Iceshrimp.Backend.Core.Database.Tables;
|
||||
|
||||
[Table("poll")]
|
||||
[Index("UserId", Name = "IDX_0610ebcfcfb4a18441a9bcdab2")]
|
||||
[Index("UserHost", Name = "IDX_7fa20a12319c7f6dc3aed98c0a")]
|
||||
[Index("UserId")]
|
||||
[Index("UserHost")]
|
||||
public class Poll {
|
||||
[Key]
|
||||
[Column("noteId")]
|
||||
|
|
|
@ -5,10 +5,10 @@ using Microsoft.EntityFrameworkCore;
|
|||
namespace Iceshrimp.Backend.Core.Database.Tables;
|
||||
|
||||
[Table("poll_vote")]
|
||||
[Index("CreatedAt", Name = "IDX_0fb627e1c2f753262a74f0562d")]
|
||||
[Index("UserId", "NoteId", "Choice", Name = "IDX_50bd7164c5b78f1f4a42c4d21f", IsUnique = true)]
|
||||
[Index("UserId", Name = "IDX_66d2bd2ee31d14bcc23069a89f")]
|
||||
[Index("NoteId", Name = "IDX_aecfbd5ef60374918e63ee95fa")]
|
||||
[Index("CreatedAt")]
|
||||
[Index("UserId", "NoteId", "Choice", IsUnique = true)]
|
||||
[Index("UserId")]
|
||||
[Index("NoteId")]
|
||||
public class PollVote {
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
|
|
@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore;
|
|||
namespace Iceshrimp.Backend.Core.Database.Tables;
|
||||
|
||||
[Table("promo_note")]
|
||||
[Index("UserId", Name = "IDX_83f0862e9bae44af52ced7099e")]
|
||||
[Index("UserId")]
|
||||
public class PromoNote {
|
||||
[Key]
|
||||
[Column("noteId")]
|
||||
|
|
|
@ -5,8 +5,8 @@ using Microsoft.EntityFrameworkCore;
|
|||
namespace Iceshrimp.Backend.Core.Database.Tables;
|
||||
|
||||
[Table("promo_read")]
|
||||
[Index("UserId", "NoteId", Name = "IDX_2882b8a1a07c7d281a98b6db16", IsUnique = true)]
|
||||
[Index("UserId", Name = "IDX_9657d55550c3d37bfafaf7d4b0")]
|
||||
[Index("UserId", "NoteId", IsUnique = true)]
|
||||
[Index("UserId")]
|
||||
public class PromoRead {
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
|
|
@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore;
|
|||
namespace Iceshrimp.Backend.Core.Database.Tables;
|
||||
|
||||
[Table("registration_ticket")]
|
||||
[Index("Code", Name = "IDX_0ff69e8dfa9fe31bb4a4660f59", IsUnique = true)]
|
||||
[Index("Code", IsUnique = true)]
|
||||
public class RegistrationTicket {
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
|
|
@ -5,9 +5,9 @@ using Microsoft.EntityFrameworkCore;
|
|||
namespace Iceshrimp.Backend.Core.Database.Tables;
|
||||
|
||||
[Table("registry_item")]
|
||||
[Index("Domain", Name = "IDX_0a72bdfcdb97c0eca11fe7ecad")]
|
||||
[Index("Scope", Name = "IDX_22baca135bb8a3ea1a83d13df3")]
|
||||
[Index("UserId", Name = "IDX_fb9d21ba0abb83223263df6bcb")]
|
||||
[Index("Domain")]
|
||||
[Index("Scope")]
|
||||
[Index("UserId")]
|
||||
public class RegistryItem {
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
|
|
@ -6,7 +6,7 @@ using NpgsqlTypes;
|
|||
namespace Iceshrimp.Backend.Core.Database.Tables;
|
||||
|
||||
[Table("relay")]
|
||||
[Index("Inbox", Name = "IDX_0d9a1738f2cf7f3b1c3334dfab", IsUnique = true)]
|
||||
[Index("Inbox", IsUnique = true)]
|
||||
public class Relay {
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
|
|
@ -5,10 +5,10 @@ using Microsoft.EntityFrameworkCore;
|
|||
namespace Iceshrimp.Backend.Core.Database.Tables;
|
||||
|
||||
[Table("renote_muting")]
|
||||
[Index("MuterId", "MuteeId", Name = "IDX_0d801c609cec4e9eb4b6b4490c", IsUnique = true)]
|
||||
[Index("MuterId", Name = "IDX_7aa72a5fe76019bfe8e5e0e8b7")]
|
||||
[Index("MuteeId", Name = "IDX_7eac97594bcac5ffcf2068089b")]
|
||||
[Index("CreatedAt", Name = "IDX_d1259a2c2b7bb413ff449e8711")]
|
||||
[Index("MuterId", "MuteeId", IsUnique = true)]
|
||||
[Index("MuterId")]
|
||||
[Index("MuteeId")]
|
||||
[Index("CreatedAt")]
|
||||
public class RenoteMuting {
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
|
|
@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore;
|
|||
namespace Iceshrimp.Backend.Core.Database.Tables;
|
||||
|
||||
[Table("session")]
|
||||
[Index("Token", Name = "IDX_232f8e85d7633bd6ddfad42169")]
|
||||
[Index("Token")]
|
||||
public class Session {
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
|
|
@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore;
|
|||
namespace Iceshrimp.Backend.Core.Database.Tables;
|
||||
|
||||
[Table("signin")]
|
||||
[Index("UserId", Name = "IDX_2c308dbdc50d94dc625670055f")]
|
||||
[Index("UserId")]
|
||||
public class Signin {
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
|
|
@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore;
|
|||
namespace Iceshrimp.Backend.Core.Database.Tables;
|
||||
|
||||
[Table("sw_subscription")]
|
||||
[Index("UserId", Name = "IDX_97754ca6f2baff9b4abb7f853d")]
|
||||
[Index("UserId")]
|
||||
public class SwSubscription {
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
|
|
@ -5,19 +5,18 @@ using Microsoft.EntityFrameworkCore;
|
|||
namespace Iceshrimp.Backend.Core.Database.Tables;
|
||||
|
||||
[Table("user")]
|
||||
[Index("Host", Name = "IDX_3252a5df8d5bbd16b281f7799e")]
|
||||
[Index("UsernameLower", "Host", Name = "IDX_5deb01ae162d1d70b80d064c27", IsUnique = true)]
|
||||
[Index("UpdatedAt", Name = "IDX_80ca6e6ef65fb9ef34ea8c90f4")]
|
||||
[Index("UsernameLower", Name = "IDX_a27b942a0d6dcff90e3ee9b5e8")]
|
||||
[Index("Token", Name = "IDX_a854e557b1b14814750c7c7b0c", IsUnique = true)]
|
||||
[Index("Uri", Name = "IDX_be623adaa4c566baf5d29ce0c8")]
|
||||
[Index("LastActiveDate", Name = "IDX_c8cc87bd0f2f4487d17c651fbf")]
|
||||
[Index("IsExplorable", Name = "IDX_d5a1b83c7cab66f167e6888188")]
|
||||
[Index("CreatedAt", Name = "IDX_e11e649824a45d8ed01d597fd9")]
|
||||
[Index("Tags", Name = "IDX_fa99d777623947a5b05f394cae")]
|
||||
[Index("AvatarId", Name = "REL_58f5c71eaab331645112cf8cfa", IsUnique = true)]
|
||||
[Index("BannerId", Name = "REL_afc64b53f8db3707ceb34eb28e", IsUnique = true)]
|
||||
[Index("Token", Name = "UQ_a854e557b1b14814750c7c7b0c9", IsUnique = true)]
|
||||
[Index("Host")]
|
||||
[Index("UsernameLower", "Host", IsUnique = true)]
|
||||
[Index("UpdatedAt")]
|
||||
[Index("UsernameLower")]
|
||||
[Index("Uri")]
|
||||
[Index("LastActiveDate")]
|
||||
[Index("IsExplorable")]
|
||||
[Index("CreatedAt")]
|
||||
[Index("Tags")]
|
||||
[Index("AvatarId", IsUnique = true)]
|
||||
[Index("BannerId", IsUnique = true)]
|
||||
[Index("Token", IsUnique = true)]
|
||||
public class User {
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
|
|
@ -5,8 +5,8 @@ using Microsoft.EntityFrameworkCore;
|
|||
namespace Iceshrimp.Backend.Core.Database.Tables;
|
||||
|
||||
[Table("user_group")]
|
||||
[Index("CreatedAt", Name = "IDX_20e30aa35180e317e133d75316")]
|
||||
[Index("UserId", Name = "IDX_3d6b372788ab01be58853003c9")]
|
||||
[Index("CreatedAt")]
|
||||
[Index("UserId")]
|
||||
public class UserGroup {
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
|
|
@ -5,9 +5,9 @@ using Microsoft.EntityFrameworkCore;
|
|||
namespace Iceshrimp.Backend.Core.Database.Tables;
|
||||
|
||||
[Table("user_group_invitation")]
|
||||
[Index("UserGroupId", Name = "IDX_5cc8c468090e129857e9fecce5")]
|
||||
[Index("UserId", Name = "IDX_bfbc6305547539369fe73eb144")]
|
||||
[Index("UserId", "UserGroupId", Name = "IDX_e9793f65f504e5a31fbaedbf2f", IsUnique = true)]
|
||||
[Index("UserGroupId")]
|
||||
[Index("UserId")]
|
||||
[Index("UserId", "UserGroupId", IsUnique = true)]
|
||||
public class UserGroupInvitation {
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
|
|
@ -5,9 +5,9 @@ using Microsoft.EntityFrameworkCore;
|
|||
namespace Iceshrimp.Backend.Core.Database.Tables;
|
||||
|
||||
[Table("user_group_invite")]
|
||||
[Index("UserId", Name = "IDX_1039988afa3bf991185b277fe0")]
|
||||
[Index("UserId", "UserGroupId", Name = "IDX_78787741f9010886796f2320a4", IsUnique = true)]
|
||||
[Index("UserGroupId", Name = "IDX_e10924607d058004304611a436")]
|
||||
[Index("UserId")]
|
||||
[Index("UserId", "UserGroupId", IsUnique = true)]
|
||||
[Index("UserGroupId")]
|
||||
public class UserGroupInvite {
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
|
|
@ -5,9 +5,9 @@ using Microsoft.EntityFrameworkCore;
|
|||
namespace Iceshrimp.Backend.Core.Database.Tables;
|
||||
|
||||
[Table("user_group_member")]
|
||||
[Index("UserGroupId", Name = "IDX_67dc758bc0566985d1b3d39986")]
|
||||
[Index("UserId", "UserGroupId", Name = "IDX_d9ecaed8c6dc43f3592c229282", IsUnique = true)]
|
||||
[Index("UserId", Name = "IDX_f3a1b4bd0c7cabba958a0c0b23")]
|
||||
[Index("UserGroupId")]
|
||||
[Index("UserId", "UserGroupId", IsUnique = true)]
|
||||
[Index("UserId")]
|
||||
public class UserGroupMember {
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
|
|
@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore;
|
|||
namespace Iceshrimp.Backend.Core.Database.Tables;
|
||||
|
||||
[Table("user_list")]
|
||||
[Index("UserId", Name = "IDX_b7fcefbdd1c18dce86687531f9")]
|
||||
[Index("UserId")]
|
||||
public class UserList {
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
|
|
@ -5,9 +5,9 @@ using Microsoft.EntityFrameworkCore;
|
|||
namespace Iceshrimp.Backend.Core.Database.Tables;
|
||||
|
||||
[Table("user_list_member")]
|
||||
[Index("UserListId", Name = "IDX_605472305f26818cc93d1baaa7")]
|
||||
[Index("UserId", "UserListId", Name = "IDX_90f7da835e4c10aca6853621e1", IsUnique = true)]
|
||||
[Index("UserId", Name = "IDX_d844bfc6f3f523a05189076efa")]
|
||||
[Index("UserListId")]
|
||||
[Index("UserId", "UserListId", IsUnique = true)]
|
||||
[Index("UserId")]
|
||||
public class UserListMember {
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
|
|
@ -5,8 +5,8 @@ using Microsoft.EntityFrameworkCore;
|
|||
namespace Iceshrimp.Backend.Core.Database.Tables;
|
||||
|
||||
[Table("user_note_pin")]
|
||||
[Index("UserId", "NoteId", Name = "IDX_410cd649884b501c02d6e72738", IsUnique = true)]
|
||||
[Index("UserId", Name = "IDX_bfbc6f79ba4007b4ce5097f08d")]
|
||||
[Index("UserId", "NoteId", IsUnique = true)]
|
||||
[Index("UserId")]
|
||||
public class UserNotePin {
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
|
|
@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore;
|
|||
namespace Iceshrimp.Backend.Core.Database.Tables;
|
||||
|
||||
[Table("user_pending")]
|
||||
[Index("Code", Name = "IDX_4e5c4c99175638ec0761714ab0", IsUnique = true)]
|
||||
[Index("Code", IsUnique = true)]
|
||||
public class UserPending {
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
|
|
@ -6,9 +6,9 @@ using NpgsqlTypes;
|
|||
namespace Iceshrimp.Backend.Core.Database.Tables;
|
||||
|
||||
[Table("user_profile")]
|
||||
[Index("EnableWordMute", Name = "IDX_3befe6f999c86aff06eb0257b4")]
|
||||
[Index("UserHost", Name = "IDX_dce530b98e454793dac5ec2f5a")]
|
||||
[Index("PinnedPageId", Name = "UQ_6dc44f1ceb65b1e72bacef2ca27", IsUnique = true)]
|
||||
[Index("EnableWordMute")]
|
||||
[Index("UserHost")]
|
||||
[Index("PinnedPageId", IsUnique = true)]
|
||||
public class UserProfile {
|
||||
[Key]
|
||||
[Column("userId")]
|
||||
|
|
|
@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore;
|
|||
namespace Iceshrimp.Backend.Core.Database.Tables;
|
||||
|
||||
[Table("user_publickey")]
|
||||
[Index("KeyId", Name = "IDX_171e64971c780ebd23fae140bb", IsUnique = true)]
|
||||
[Index("KeyId", IsUnique = true)]
|
||||
public class UserPublickey {
|
||||
[Key]
|
||||
[Column("userId")]
|
||||
|
|
|
@ -5,8 +5,8 @@ using Microsoft.EntityFrameworkCore;
|
|||
namespace Iceshrimp.Backend.Core.Database.Tables;
|
||||
|
||||
[Table("user_security_key")]
|
||||
[Index("PublicKey", Name = "IDX_0d7718e562dcedd0aa5cf2c9f7")]
|
||||
[Index("UserId", Name = "IDX_ff9ca3b5f3ee3d0681367a9b44")]
|
||||
[Index("PublicKey")]
|
||||
[Index("UserId")]
|
||||
public class UserSecurityKey {
|
||||
/// <summary>
|
||||
/// Variable-length id given to navigator.credentials.get()
|
||||
|
|
|
@ -5,9 +5,9 @@ using Microsoft.EntityFrameworkCore;
|
|||
namespace Iceshrimp.Backend.Core.Database.Tables;
|
||||
|
||||
[Table("webhook")]
|
||||
[Index("Active", Name = "IDX_5a056076f76b2efe08216ba655")]
|
||||
[Index("On", Name = "IDX_8063a0586ed1dfbe86e982d961")]
|
||||
[Index("UserId", Name = "IDX_f272c8c8805969e6a6449c77b3")]
|
||||
[Index("Active")]
|
||||
[Index("On")]
|
||||
[Index("UserId")]
|
||||
public class Webhook {
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
|
Loading…
Add table
Reference in a new issue