From 0bb23cb8dbf3cc49467824673f445d6a0625c454 Mon Sep 17 00:00:00 2001 From: naskya Date: Sat, 20 Jan 2024 04:26:13 +0900 Subject: [PATCH] refactor (backend): drop timezone info from database Co-authored-by: sup39 --- neko/revert.sql | 77 +++ .../1705691683091-drop-time-zone.js | 459 ++++++++++++++++++ .../src/model/entity/abuse_user_report.rs | 2 +- .../src/model/entity/access_token.rs | 4 +- .../native-utils/src/model/entity/ad.rs | 4 +- .../src/model/entity/announcement.rs | 4 +- .../src/model/entity/announcement_read.rs | 2 +- .../native-utils/src/model/entity/antenna.rs | 2 +- .../native-utils/src/model/entity/app.rs | 2 +- .../src/model/entity/attestation_challenge.rs | 2 +- .../src/model/entity/auth_session.rs | 2 +- .../native-utils/src/model/entity/blocking.rs | 2 +- .../native-utils/src/model/entity/channel.rs | 4 +- .../src/model/entity/channel_following.rs | 2 +- .../src/model/entity/channel_note_pining.rs | 2 +- .../native-utils/src/model/entity/clip.rs | 2 +- .../src/model/entity/drive_file.rs | 2 +- .../src/model/entity/drive_folder.rs | 2 +- .../native-utils/src/model/entity/emoji.rs | 2 +- .../src/model/entity/follow_request.rs | 2 +- .../src/model/entity/following.rs | 2 +- .../src/model/entity/gallery_like.rs | 2 +- .../src/model/entity/gallery_post.rs | 4 +- .../native-utils/src/model/entity/instance.rs | 10 +- .../src/model/entity/messaging_message.rs | 2 +- .../src/model/entity/moderation_log.rs | 2 +- .../native-utils/src/model/entity/muting.rs | 4 +- .../native-utils/src/model/entity/note.rs | 4 +- .../src/model/entity/note_edit.rs | 2 +- .../src/model/entity/note_favorite.rs | 2 +- .../src/model/entity/note_reaction.rs | 2 +- .../src/model/entity/note_thread_muting.rs | 2 +- .../src/model/entity/note_watching.rs | 2 +- .../src/model/entity/notification.rs | 2 +- .../native-utils/src/model/entity/page.rs | 4 +- .../src/model/entity/page_like.rs | 2 +- .../model/entity/password_reset_request.rs | 2 +- .../native-utils/src/model/entity/poll.rs | 2 +- .../src/model/entity/poll_vote.rs | 2 +- .../src/model/entity/promo_note.rs | 2 +- .../src/model/entity/promo_read.rs | 2 +- .../src/model/entity/registration_ticket.rs | 2 +- .../src/model/entity/registry_item.rs | 4 +- .../src/model/entity/renote_muting.rs | 2 +- .../src/model/entity/reply_muting.rs | 2 +- .../native-utils/src/model/entity/signin.rs | 2 +- .../src/model/entity/sw_subscription.rs | 2 +- .../src/model/entity/used_username.rs | 2 +- .../native-utils/src/model/entity/user.rs | 8 +- .../src/model/entity/user_group.rs | 2 +- .../src/model/entity/user_group_invitation.rs | 2 +- .../src/model/entity/user_group_invite.rs | 2 +- .../src/model/entity/user_group_joining.rs | 2 +- .../native-utils/src/model/entity/user_ip.rs | 2 +- .../src/model/entity/user_list.rs | 2 +- .../src/model/entity/user_list_joining.rs | 2 +- .../src/model/entity/user_note_pining.rs | 2 +- .../src/model/entity/user_pending.rs | 2 +- .../src/model/entity/user_security_key.rs | 2 +- .../native-utils/src/model/entity/webhook.rs | 4 +- .../src/models/entities/abuse-user-report.ts | 2 +- .../src/models/entities/access-token.ts | 4 +- packages/backend/src/models/entities/ad.ts | 4 +- .../src/models/entities/announcement-read.ts | 2 +- .../src/models/entities/announcement.ts | 4 +- .../backend/src/models/entities/antenna.ts | 2 +- packages/backend/src/models/entities/app.ts | 2 +- .../models/entities/attestation-challenge.ts | 2 +- .../src/models/entities/auth-session.ts | 2 +- .../backend/src/models/entities/blocking.ts | 2 +- .../src/models/entities/channel-following.ts | 2 +- .../models/entities/channel-note-pining.ts | 2 +- .../backend/src/models/entities/channel.ts | 4 +- packages/backend/src/models/entities/clip.ts | 2 +- .../backend/src/models/entities/drive-file.ts | 2 +- .../src/models/entities/drive-folder.ts | 2 +- packages/backend/src/models/entities/emoji.ts | 2 +- .../src/models/entities/follow-request.ts | 2 +- .../backend/src/models/entities/following.ts | 2 +- .../src/models/entities/gallery-like.ts | 2 +- .../src/models/entities/gallery-post.ts | 4 +- .../backend/src/models/entities/instance.ts | 10 +- .../src/models/entities/messaging-message.ts | 2 +- .../src/models/entities/moderation-log.ts | 2 +- .../backend/src/models/entities/muting.ts | 4 +- .../backend/src/models/entities/note-edit.ts | 2 +- .../src/models/entities/note-favorite.ts | 2 +- .../src/models/entities/note-reaction.ts | 2 +- .../src/models/entities/note-thread-muting.ts | 2 +- .../src/models/entities/note-watching.ts | 2 +- packages/backend/src/models/entities/note.ts | 4 +- .../src/models/entities/notification.ts | 2 +- .../backend/src/models/entities/page-like.ts | 2 +- packages/backend/src/models/entities/page.ts | 4 +- .../models/entities/password-reset-request.ts | 2 +- .../backend/src/models/entities/poll-vote.ts | 2 +- packages/backend/src/models/entities/poll.ts | 2 +- .../backend/src/models/entities/promo-note.ts | 2 +- .../backend/src/models/entities/promo-read.ts | 2 +- .../models/entities/registration-tickets.ts | 2 +- .../src/models/entities/registry-item.ts | 4 +- .../src/models/entities/renote-muting.ts | 2 +- .../src/models/entities/reply-muting.ts | 2 +- .../backend/src/models/entities/signin.ts | 2 +- .../src/models/entities/sw-subscription.ts | 2 +- .../src/models/entities/used-username.ts | 2 +- .../models/entities/user-group-invitation.ts | 2 +- .../src/models/entities/user-group-joining.ts | 2 +- .../backend/src/models/entities/user-group.ts | 2 +- .../backend/src/models/entities/user-ip.ts | 2 +- .../src/models/entities/user-list-joining.ts | 2 +- .../backend/src/models/entities/user-list.ts | 2 +- .../src/models/entities/user-note-pining.ts | 2 +- .../src/models/entities/user-pending.ts | 2 +- .../src/models/entities/user-security-key.ts | 2 +- packages/backend/src/models/entities/user.ts | 8 +- .../backend/src/models/entities/webhook.ts | 4 +- 117 files changed, 685 insertions(+), 149 deletions(-) create mode 100644 packages/backend/migration-neko/1705691683091-drop-time-zone.js diff --git a/neko/revert.sql b/neko/revert.sql index da5e19ada..8db84150a 100644 --- a/neko/revert.sql +++ b/neko/revert.sql @@ -1,3 +1,80 @@ +-- drop-time-zone +ALTER TABLE "webhook" ALTER "latestSentAt" TYPE timestamp with time zone; +ALTER TABLE "webhook" ALTER "createdAt" TYPE timestamp with time zone; +ALTER TABLE "user_security_key" ALTER "lastUsed" TYPE timestamp with time zone; +ALTER TABLE "user_pending" ALTER "createdAt" TYPE timestamp with time zone; +ALTER TABLE "user_note_pining" ALTER "createdAt" TYPE timestamp with time zone; +ALTER TABLE "user_list_joining" ALTER "createdAt" TYPE timestamp with time zone; +ALTER TABLE "user_list" ALTER "createdAt" TYPE timestamp with time zone; +ALTER TABLE "user_ip" ALTER "createdAt" TYPE timestamp with time zone; +ALTER TABLE "user_group_joining" ALTER "createdAt" TYPE timestamp with time zone; +ALTER TABLE "user_group_invite" ALTER "createdAt" TYPE timestamp with time zone; +ALTER TABLE "user_group_invitation" ALTER "createdAt" TYPE timestamp with time zone; +ALTER TABLE "user_group" ALTER "createdAt" TYPE timestamp with time zone; +ALTER TABLE "user" ALTER "updatedAt" TYPE timestamp with time zone; +ALTER TABLE "user" ALTER "lastFetchedAt" TYPE timestamp with time zone; +ALTER TABLE "user" ALTER "lastActiveDate" TYPE timestamp with time zone; +ALTER TABLE "user" ALTER "createdAt" TYPE timestamp with time zone; +ALTER TABLE "used_username" ALTER "createdAt" TYPE timestamp with time zone; +ALTER TABLE "sw_subscription" ALTER "createdAt" TYPE timestamp with time zone; +ALTER TABLE "signin" ALTER "createdAt" TYPE timestamp with time zone; +ALTER TABLE "reply_muting" ALTER "createdAt" TYPE timestamp with time zone; +ALTER TABLE "renote_muting" ALTER "createdAt" TYPE timestamp with time zone; +ALTER TABLE "registry_item" ALTER "updatedAt" TYPE timestamp with time zone; +ALTER TABLE "registry_item" ALTER "createdAt" TYPE timestamp with time zone; +ALTER TABLE "registration_ticket" ALTER "createdAt" TYPE timestamp with time zone; +ALTER TABLE "promo_read" ALTER "createdAt" TYPE timestamp with time zone; +ALTER TABLE "promo_note" ALTER "expiresAt" TYPE timestamp with time zone; +ALTER TABLE "poll_vote" ALTER "createdAt" TYPE timestamp with time zone; +ALTER TABLE "poll" ALTER "expiresAt" TYPE timestamp with time zone; +ALTER TABLE "password_reset_request" ALTER "createdAt" TYPE timestamp with time zone; +ALTER TABLE "page_like" ALTER "createdAt" TYPE timestamp with time zone; +ALTER TABLE "page" ALTER "updatedAt" TYPE timestamp with time zone; +ALTER TABLE "page" ALTER "createdAt" TYPE timestamp with time zone; +ALTER TABLE "notification" ALTER "createdAt" TYPE timestamp with time zone; +ALTER TABLE "note_watching" ALTER "createdAt" TYPE timestamp with time zone; +ALTER TABLE "note_thread_muting" ALTER "createdAt" TYPE timestamp with time zone; +ALTER TABLE "note_reaction" ALTER "createdAt" TYPE timestamp with time zone; +ALTER TABLE "note_favorite" ALTER "createdAt" TYPE timestamp with time zone; +ALTER TABLE "note_edit" ALTER "updatedAt" TYPE timestamp with time zone; +ALTER TABLE "note" ALTER "updatedAt" TYPE timestamp with time zone; +ALTER TABLE "note" ALTER "createdAt" TYPE timestamp with time zone; +ALTER TABLE "muting" ALTER "expiresAt" TYPE timestamp with time zone; +ALTER TABLE "muting" ALTER "createdAt" TYPE timestamp with time zone; +ALTER TABLE "moderation_log" ALTER "createdAt" TYPE timestamp with time zone; +ALTER TABLE "messaging_message" ALTER "createdAt" TYPE timestamp with time zone; +ALTER TABLE "instance" ALTER "latestRequestSentAt" TYPE timestamp with time zone; +ALTER TABLE "instance" ALTER "latestRequestReceivedAt" TYPE timestamp with time zone; +ALTER TABLE "instance" ALTER "lastCommunicatedAt" TYPE timestamp with time zone; +ALTER TABLE "instance" ALTER "infoUpdatedAt" TYPE timestamp with time zone; +ALTER TABLE "instance" ALTER "caughtAt" TYPE timestamp with time zone; +ALTER TABLE "gallery_post" ALTER "updatedAt" TYPE timestamp with time zone; +ALTER TABLE "gallery_post" ALTER "createdAt" TYPE timestamp with time zone; +ALTER TABLE "gallery_like" ALTER "createdAt" TYPE timestamp with time zone; +ALTER TABLE "follow_request" ALTER "createdAt" TYPE timestamp with time zone; +ALTER TABLE "following" ALTER "createdAt" TYPE timestamp with time zone; +ALTER TABLE "emoji" ALTER "updatedAt" TYPE timestamp with time zone; +ALTER TABLE "drive_folder" ALTER "createdAt" TYPE timestamp with time zone; +ALTER TABLE "drive_file" ALTER "createdAt" TYPE timestamp with time zone; +ALTER TABLE "clip" ALTER "createdAt" TYPE timestamp with time zone; +ALTER TABLE "channel_note_pining" ALTER "createdAt" TYPE timestamp with time zone; +ALTER TABLE "channel_following" ALTER "createdAt" TYPE timestamp with time zone; +ALTER TABLE "channel" ALTER "lastNotedAt" TYPE timestamp with time zone; +ALTER TABLE "channel" ALTER "createdAt" TYPE timestamp with time zone; +ALTER TABLE "blocking" ALTER "createdAt" TYPE timestamp with time zone; +ALTER TABLE "auth_session" ALTER "createdAt" TYPE timestamp with time zone; +ALTER TABLE "attestation_challenge" ALTER "createdAt" TYPE timestamp with time zone; +ALTER TABLE "app" ALTER "createdAt" TYPE timestamp with time zone; +ALTER TABLE "antenna" ALTER "createdAt" TYPE timestamp with time zone; +ALTER TABLE "announcement_read" ALTER "createdAt" TYPE timestamp with time zone; +ALTER TABLE "announcement" ALTER "updatedAt" TYPE timestamp with time zone; +ALTER TABLE "announcement" ALTER "createdAt" TYPE timestamp with time zone; +ALTER TABLE "ad" ALTER "expiresAt" TYPE timestamp with time zone; +ALTER TABLE "ad" ALTER "createdAt" TYPE timestamp with time zone; +ALTER TABLE "access_token" ALTER "lastUsedAt" TYPE timestamp with time zone; +ALTER TABLE "access_token" ALTER "createdAt" TYPE timestamp with time zone; +ALTER TABLE "abuse_user_report" ALTER "createdAt" TYPE timestamp with time zone; + -- reply-muting DROP TABLE "reply_muting"; diff --git a/packages/backend/migration-neko/1705691683091-drop-time-zone.js b/packages/backend/migration-neko/1705691683091-drop-time-zone.js new file mode 100644 index 000000000..340168fb2 --- /dev/null +++ b/packages/backend/migration-neko/1705691683091-drop-time-zone.js @@ -0,0 +1,459 @@ +export class DropTimeZone1705691683091 { + name = "DropTimeZone1705691683091"; + + async up(queryRunner) { + await queryRunner.query( + `ALTER TABLE "abuse_user_report" ALTER "createdAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "access_token" ALTER "createdAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "access_token" ALTER "lastUsedAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "ad" ALTER "createdAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "ad" ALTER "expiresAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "announcement" ALTER "createdAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "announcement" ALTER "updatedAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "announcement_read" ALTER "createdAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "antenna" ALTER "createdAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "app" ALTER "createdAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "attestation_challenge" ALTER "createdAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "auth_session" ALTER "createdAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "blocking" ALTER "createdAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "channel" ALTER "createdAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "channel" ALTER "lastNotedAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "channel_following" ALTER "createdAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "channel_note_pining" ALTER "createdAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "clip" ALTER "createdAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "drive_file" ALTER "createdAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "drive_folder" ALTER "createdAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "emoji" ALTER "updatedAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "following" ALTER "createdAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "follow_request" ALTER "createdAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "gallery_like" ALTER "createdAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "gallery_post" ALTER "createdAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "gallery_post" ALTER "updatedAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "instance" ALTER "caughtAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "instance" ALTER "infoUpdatedAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "instance" ALTER "lastCommunicatedAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "instance" ALTER "latestRequestReceivedAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "instance" ALTER "latestRequestSentAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "messaging_message" ALTER "createdAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "moderation_log" ALTER "createdAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "muting" ALTER "createdAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "muting" ALTER "expiresAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "note" ALTER "createdAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "note" ALTER "updatedAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "note_edit" ALTER "updatedAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "note_favorite" ALTER "createdAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "note_reaction" ALTER "createdAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "note_thread_muting" ALTER "createdAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "note_watching" ALTER "createdAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "notification" ALTER "createdAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "page" ALTER "createdAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "page" ALTER "updatedAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "page_like" ALTER "createdAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "password_reset_request" ALTER "createdAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "poll" ALTER "expiresAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "poll_vote" ALTER "createdAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "promo_note" ALTER "expiresAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "promo_read" ALTER "createdAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "registration_ticket" ALTER "createdAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "registry_item" ALTER "createdAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "registry_item" ALTER "updatedAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "renote_muting" ALTER "createdAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "reply_muting" ALTER "createdAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "signin" ALTER "createdAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "sw_subscription" ALTER "createdAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "used_username" ALTER "createdAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "user" ALTER "createdAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "user" ALTER "lastActiveDate" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "user" ALTER "lastFetchedAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "user" ALTER "updatedAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "user_group" ALTER "createdAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "user_group_invitation" ALTER "createdAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "user_group_invite" ALTER "createdAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "user_group_joining" ALTER "createdAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "user_ip" ALTER "createdAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "user_list" ALTER "createdAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "user_list_joining" ALTER "createdAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "user_note_pining" ALTER "createdAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "user_pending" ALTER "createdAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "user_security_key" ALTER "lastUsed" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "webhook" ALTER "createdAt" TYPE timestamp without time zone`, + ); + await queryRunner.query( + `ALTER TABLE "webhook" ALTER "latestSentAt" TYPE timestamp without time zone`, + ); + } + + async down(queryRunner) { + await queryRunner.query( + `ALTER TABLE "webhook" ALTER "latestSentAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "webhook" ALTER "createdAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "user_security_key" ALTER "lastUsed" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "user_pending" ALTER "createdAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "user_note_pining" ALTER "createdAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "user_list_joining" ALTER "createdAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "user_list" ALTER "createdAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "user_ip" ALTER "createdAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "user_group_joining" ALTER "createdAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "user_group_invite" ALTER "createdAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "user_group_invitation" ALTER "createdAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "user_group" ALTER "createdAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "user" ALTER "updatedAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "user" ALTER "lastFetchedAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "user" ALTER "lastActiveDate" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "user" ALTER "createdAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "used_username" ALTER "createdAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "sw_subscription" ALTER "createdAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "signin" ALTER "createdAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "reply_muting" ALTER "createdAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "renote_muting" ALTER "createdAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "registry_item" ALTER "updatedAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "registry_item" ALTER "createdAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "registration_ticket" ALTER "createdAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "promo_read" ALTER "createdAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "promo_note" ALTER "expiresAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "poll_vote" ALTER "createdAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "poll" ALTER "expiresAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "password_reset_request" ALTER "createdAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "page_like" ALTER "createdAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "page" ALTER "updatedAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "page" ALTER "createdAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "notification" ALTER "createdAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "note_watching" ALTER "createdAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "note_thread_muting" ALTER "createdAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "note_reaction" ALTER "createdAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "note_favorite" ALTER "createdAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "note_edit" ALTER "updatedAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "note" ALTER "updatedAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "note" ALTER "createdAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "muting" ALTER "expiresAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "muting" ALTER "createdAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "moderation_log" ALTER "createdAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "messaging_message" ALTER "createdAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "instance" ALTER "latestRequestSentAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "instance" ALTER "latestRequestReceivedAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "instance" ALTER "lastCommunicatedAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "instance" ALTER "infoUpdatedAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "instance" ALTER "caughtAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "gallery_post" ALTER "updatedAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "gallery_post" ALTER "createdAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "gallery_like" ALTER "createdAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "follow_request" ALTER "createdAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "following" ALTER "createdAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "emoji" ALTER "updatedAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "drive_folder" ALTER "createdAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "drive_file" ALTER "createdAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "clip" ALTER "createdAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "channel_note_pining" ALTER "createdAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "channel_following" ALTER "createdAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "channel" ALTER "lastNotedAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "channel" ALTER "createdAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "blocking" ALTER "createdAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "auth_session" ALTER "createdAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "attestation_challenge" ALTER "createdAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "app" ALTER "createdAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "antenna" ALTER "createdAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "announcement_read" ALTER "createdAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "announcement" ALTER "updatedAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "announcement" ALTER "createdAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "ad" ALTER "expiresAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "ad" ALTER "createdAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "access_token" ALTER "lastUsedAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "access_token" ALTER "createdAt" TYPE timestamp with time zone`, + ); + await queryRunner.query( + `ALTER TABLE "abuse_user_report" ALTER "createdAt" TYPE timestamp with time zone`, + ); + } +} diff --git a/packages/backend/native-utils/src/model/entity/abuse_user_report.rs b/packages/backend/native-utils/src/model/entity/abuse_user_report.rs index 88cc62ff0..72ec038f9 100644 --- a/packages/backend/native-utils/src/model/entity/abuse_user_report.rs +++ b/packages/backend/native-utils/src/model/entity/abuse_user_report.rs @@ -8,7 +8,7 @@ pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub id: String, #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, + pub created_at: DateTime, #[sea_orm(column_name = "targetUserId")] pub target_user_id: String, #[sea_orm(column_name = "reporterId")] diff --git a/packages/backend/native-utils/src/model/entity/access_token.rs b/packages/backend/native-utils/src/model/entity/access_token.rs index 6794c88da..8609d569d 100644 --- a/packages/backend/native-utils/src/model/entity/access_token.rs +++ b/packages/backend/native-utils/src/model/entity/access_token.rs @@ -8,7 +8,7 @@ pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub id: String, #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, + pub created_at: DateTime, pub token: String, pub hash: String, #[sea_orm(column_name = "userId")] @@ -16,7 +16,7 @@ pub struct Model { #[sea_orm(column_name = "appId")] pub app_id: Option, #[sea_orm(column_name = "lastUsedAt")] - pub last_used_at: Option, + pub last_used_at: Option, pub session: Option, pub name: Option, pub description: Option, diff --git a/packages/backend/native-utils/src/model/entity/ad.rs b/packages/backend/native-utils/src/model/entity/ad.rs index b0a88360d..747696851 100644 --- a/packages/backend/native-utils/src/model/entity/ad.rs +++ b/packages/backend/native-utils/src/model/entity/ad.rs @@ -8,9 +8,9 @@ pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub id: String, #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, + pub created_at: DateTime, #[sea_orm(column_name = "expiresAt")] - pub expires_at: DateTimeWithTimeZone, + pub expires_at: DateTime, pub place: String, pub priority: String, pub url: String, diff --git a/packages/backend/native-utils/src/model/entity/announcement.rs b/packages/backend/native-utils/src/model/entity/announcement.rs index ca6d3ead3..07c0f3341 100644 --- a/packages/backend/native-utils/src/model/entity/announcement.rs +++ b/packages/backend/native-utils/src/model/entity/announcement.rs @@ -8,13 +8,13 @@ pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub id: String, #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, + pub created_at: DateTime, pub text: String, pub title: String, #[sea_orm(column_name = "imageUrl")] pub image_url: Option, #[sea_orm(column_name = "updatedAt")] - pub updated_at: Option, + pub updated_at: Option, #[sea_orm(column_name = "showPopup")] pub show_popup: bool, #[sea_orm(column_name = "isGoodNews")] diff --git a/packages/backend/native-utils/src/model/entity/announcement_read.rs b/packages/backend/native-utils/src/model/entity/announcement_read.rs index 34a7ae086..823175259 100644 --- a/packages/backend/native-utils/src/model/entity/announcement_read.rs +++ b/packages/backend/native-utils/src/model/entity/announcement_read.rs @@ -12,7 +12,7 @@ pub struct Model { #[sea_orm(column_name = "announcementId")] pub announcement_id: String, #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, + pub created_at: DateTime, } #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] diff --git a/packages/backend/native-utils/src/model/entity/antenna.rs b/packages/backend/native-utils/src/model/entity/antenna.rs index ec531d75a..66474b725 100644 --- a/packages/backend/native-utils/src/model/entity/antenna.rs +++ b/packages/backend/native-utils/src/model/entity/antenna.rs @@ -9,7 +9,7 @@ pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub id: String, #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, + pub created_at: DateTime, #[sea_orm(column_name = "userId")] pub user_id: String, pub name: String, diff --git a/packages/backend/native-utils/src/model/entity/app.rs b/packages/backend/native-utils/src/model/entity/app.rs index 92a2452e8..d7c7eedbd 100644 --- a/packages/backend/native-utils/src/model/entity/app.rs +++ b/packages/backend/native-utils/src/model/entity/app.rs @@ -8,7 +8,7 @@ pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub id: String, #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, + pub created_at: DateTime, #[sea_orm(column_name = "userId")] pub user_id: Option, pub secret: String, diff --git a/packages/backend/native-utils/src/model/entity/attestation_challenge.rs b/packages/backend/native-utils/src/model/entity/attestation_challenge.rs index d1dc98dbb..ca9b8cf3c 100644 --- a/packages/backend/native-utils/src/model/entity/attestation_challenge.rs +++ b/packages/backend/native-utils/src/model/entity/attestation_challenge.rs @@ -11,7 +11,7 @@ pub struct Model { pub user_id: String, pub challenge: String, #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, + pub created_at: DateTime, #[sea_orm(column_name = "registrationChallenge")] pub registration_challenge: bool, } diff --git a/packages/backend/native-utils/src/model/entity/auth_session.rs b/packages/backend/native-utils/src/model/entity/auth_session.rs index 4a069f406..63df331d3 100644 --- a/packages/backend/native-utils/src/model/entity/auth_session.rs +++ b/packages/backend/native-utils/src/model/entity/auth_session.rs @@ -8,7 +8,7 @@ pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub id: String, #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, + pub created_at: DateTime, pub token: String, #[sea_orm(column_name = "userId")] pub user_id: Option, diff --git a/packages/backend/native-utils/src/model/entity/blocking.rs b/packages/backend/native-utils/src/model/entity/blocking.rs index 7aabf6ffa..2a8ad3668 100644 --- a/packages/backend/native-utils/src/model/entity/blocking.rs +++ b/packages/backend/native-utils/src/model/entity/blocking.rs @@ -8,7 +8,7 @@ pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub id: String, #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, + pub created_at: DateTime, #[sea_orm(column_name = "blockeeId")] pub blockee_id: String, #[sea_orm(column_name = "blockerId")] diff --git a/packages/backend/native-utils/src/model/entity/channel.rs b/packages/backend/native-utils/src/model/entity/channel.rs index 83e94768f..64415405e 100644 --- a/packages/backend/native-utils/src/model/entity/channel.rs +++ b/packages/backend/native-utils/src/model/entity/channel.rs @@ -8,9 +8,9 @@ pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub id: String, #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, + pub created_at: DateTime, #[sea_orm(column_name = "lastNotedAt")] - pub last_noted_at: Option, + pub last_noted_at: Option, #[sea_orm(column_name = "userId")] pub user_id: Option, pub name: String, diff --git a/packages/backend/native-utils/src/model/entity/channel_following.rs b/packages/backend/native-utils/src/model/entity/channel_following.rs index 581b98724..67a0492e7 100644 --- a/packages/backend/native-utils/src/model/entity/channel_following.rs +++ b/packages/backend/native-utils/src/model/entity/channel_following.rs @@ -8,7 +8,7 @@ pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub id: String, #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, + pub created_at: DateTime, #[sea_orm(column_name = "followeeId")] pub followee_id: String, #[sea_orm(column_name = "followerId")] diff --git a/packages/backend/native-utils/src/model/entity/channel_note_pining.rs b/packages/backend/native-utils/src/model/entity/channel_note_pining.rs index e85068575..bcd3f72ef 100644 --- a/packages/backend/native-utils/src/model/entity/channel_note_pining.rs +++ b/packages/backend/native-utils/src/model/entity/channel_note_pining.rs @@ -8,7 +8,7 @@ pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub id: String, #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, + pub created_at: DateTime, #[sea_orm(column_name = "channelId")] pub channel_id: String, #[sea_orm(column_name = "noteId")] diff --git a/packages/backend/native-utils/src/model/entity/clip.rs b/packages/backend/native-utils/src/model/entity/clip.rs index 74633fb2d..7838df9e3 100644 --- a/packages/backend/native-utils/src/model/entity/clip.rs +++ b/packages/backend/native-utils/src/model/entity/clip.rs @@ -8,7 +8,7 @@ pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub id: String, #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, + pub created_at: DateTime, #[sea_orm(column_name = "userId")] pub user_id: String, pub name: String, diff --git a/packages/backend/native-utils/src/model/entity/drive_file.rs b/packages/backend/native-utils/src/model/entity/drive_file.rs index f1cf10376..406e3e1de 100644 --- a/packages/backend/native-utils/src/model/entity/drive_file.rs +++ b/packages/backend/native-utils/src/model/entity/drive_file.rs @@ -8,7 +8,7 @@ pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub id: String, #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, + pub created_at: DateTime, #[sea_orm(column_name = "userId")] pub user_id: Option, #[sea_orm(column_name = "userHost")] diff --git a/packages/backend/native-utils/src/model/entity/drive_folder.rs b/packages/backend/native-utils/src/model/entity/drive_folder.rs index 271cb527d..3906b4015 100644 --- a/packages/backend/native-utils/src/model/entity/drive_folder.rs +++ b/packages/backend/native-utils/src/model/entity/drive_folder.rs @@ -8,7 +8,7 @@ pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub id: String, #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, + pub created_at: DateTime, pub name: String, #[sea_orm(column_name = "userId")] pub user_id: Option, diff --git a/packages/backend/native-utils/src/model/entity/emoji.rs b/packages/backend/native-utils/src/model/entity/emoji.rs index 48b7de494..fc479a2d7 100644 --- a/packages/backend/native-utils/src/model/entity/emoji.rs +++ b/packages/backend/native-utils/src/model/entity/emoji.rs @@ -8,7 +8,7 @@ pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub id: String, #[sea_orm(column_name = "updatedAt")] - pub updated_at: Option, + pub updated_at: Option, pub name: String, pub host: Option, #[sea_orm(column_name = "originalUrl")] diff --git a/packages/backend/native-utils/src/model/entity/follow_request.rs b/packages/backend/native-utils/src/model/entity/follow_request.rs index 6e3176a63..be2e38649 100644 --- a/packages/backend/native-utils/src/model/entity/follow_request.rs +++ b/packages/backend/native-utils/src/model/entity/follow_request.rs @@ -8,7 +8,7 @@ pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub id: String, #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, + pub created_at: DateTime, #[sea_orm(column_name = "followeeId")] pub followee_id: String, #[sea_orm(column_name = "followerId")] diff --git a/packages/backend/native-utils/src/model/entity/following.rs b/packages/backend/native-utils/src/model/entity/following.rs index 0bf3133de..c6313cd28 100644 --- a/packages/backend/native-utils/src/model/entity/following.rs +++ b/packages/backend/native-utils/src/model/entity/following.rs @@ -8,7 +8,7 @@ pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub id: String, #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, + pub created_at: DateTime, #[sea_orm(column_name = "followeeId")] pub followee_id: String, #[sea_orm(column_name = "followerId")] diff --git a/packages/backend/native-utils/src/model/entity/gallery_like.rs b/packages/backend/native-utils/src/model/entity/gallery_like.rs index a55de6482..0a41c09ee 100644 --- a/packages/backend/native-utils/src/model/entity/gallery_like.rs +++ b/packages/backend/native-utils/src/model/entity/gallery_like.rs @@ -8,7 +8,7 @@ pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub id: String, #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, + pub created_at: DateTime, #[sea_orm(column_name = "userId")] pub user_id: String, #[sea_orm(column_name = "postId")] diff --git a/packages/backend/native-utils/src/model/entity/gallery_post.rs b/packages/backend/native-utils/src/model/entity/gallery_post.rs index b3bc4bdf5..2a8689295 100644 --- a/packages/backend/native-utils/src/model/entity/gallery_post.rs +++ b/packages/backend/native-utils/src/model/entity/gallery_post.rs @@ -8,9 +8,9 @@ pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub id: String, #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, + pub created_at: DateTime, #[sea_orm(column_name = "updatedAt")] - pub updated_at: DateTimeWithTimeZone, + pub updated_at: DateTime, pub title: String, pub description: Option, #[sea_orm(column_name = "userId")] diff --git a/packages/backend/native-utils/src/model/entity/instance.rs b/packages/backend/native-utils/src/model/entity/instance.rs index 7037ac76b..b95ffbece 100644 --- a/packages/backend/native-utils/src/model/entity/instance.rs +++ b/packages/backend/native-utils/src/model/entity/instance.rs @@ -8,7 +8,7 @@ pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub id: String, #[sea_orm(column_name = "caughtAt")] - pub caught_at: DateTimeWithTimeZone, + pub caught_at: DateTime, pub host: String, #[sea_orm(column_name = "usersCount")] pub users_count: i32, @@ -19,13 +19,13 @@ pub struct Model { #[sea_orm(column_name = "followersCount")] pub followers_count: i32, #[sea_orm(column_name = "latestRequestSentAt")] - pub latest_request_sent_at: Option, + pub latest_request_sent_at: Option, #[sea_orm(column_name = "latestStatus")] pub latest_status: Option, #[sea_orm(column_name = "latestRequestReceivedAt")] - pub latest_request_received_at: Option, + pub latest_request_received_at: Option, #[sea_orm(column_name = "lastCommunicatedAt")] - pub last_communicated_at: DateTimeWithTimeZone, + pub last_communicated_at: DateTime, #[sea_orm(column_name = "isNotResponding")] pub is_not_responding: bool, #[sea_orm(column_name = "softwareName")] @@ -41,7 +41,7 @@ pub struct Model { #[sea_orm(column_name = "maintainerEmail")] pub maintainer_email: Option, #[sea_orm(column_name = "infoUpdatedAt")] - pub info_updated_at: Option, + pub info_updated_at: Option, #[sea_orm(column_name = "isSuspended")] pub is_suspended: bool, #[sea_orm(column_name = "iconUrl")] diff --git a/packages/backend/native-utils/src/model/entity/messaging_message.rs b/packages/backend/native-utils/src/model/entity/messaging_message.rs index 6d38d778b..3e9bb8647 100644 --- a/packages/backend/native-utils/src/model/entity/messaging_message.rs +++ b/packages/backend/native-utils/src/model/entity/messaging_message.rs @@ -8,7 +8,7 @@ pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub id: String, #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, + pub created_at: DateTime, #[sea_orm(column_name = "userId")] pub user_id: String, #[sea_orm(column_name = "recipientId")] diff --git a/packages/backend/native-utils/src/model/entity/moderation_log.rs b/packages/backend/native-utils/src/model/entity/moderation_log.rs index 54a937a4b..9e7003f0d 100644 --- a/packages/backend/native-utils/src/model/entity/moderation_log.rs +++ b/packages/backend/native-utils/src/model/entity/moderation_log.rs @@ -8,7 +8,7 @@ pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub id: String, #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, + pub created_at: DateTime, #[sea_orm(column_name = "userId")] pub user_id: String, pub r#type: String, diff --git a/packages/backend/native-utils/src/model/entity/muting.rs b/packages/backend/native-utils/src/model/entity/muting.rs index 14127855d..e852391dc 100644 --- a/packages/backend/native-utils/src/model/entity/muting.rs +++ b/packages/backend/native-utils/src/model/entity/muting.rs @@ -8,13 +8,13 @@ pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub id: String, #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, + pub created_at: DateTime, #[sea_orm(column_name = "muteeId")] pub mutee_id: String, #[sea_orm(column_name = "muterId")] pub muter_id: String, #[sea_orm(column_name = "expiresAt")] - pub expires_at: Option, + pub expires_at: Option, } #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] diff --git a/packages/backend/native-utils/src/model/entity/note.rs b/packages/backend/native-utils/src/model/entity/note.rs index 8c5f3c380..c5491915c 100644 --- a/packages/backend/native-utils/src/model/entity/note.rs +++ b/packages/backend/native-utils/src/model/entity/note.rs @@ -9,7 +9,7 @@ pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub id: String, #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, + pub created_at: DateTime, #[sea_orm(column_name = "replyId")] pub reply_id: Option, #[sea_orm(column_name = "renoteId")] @@ -60,7 +60,7 @@ pub struct Model { #[sea_orm(column_name = "threadId")] pub thread_id: Option, #[sea_orm(column_name = "updatedAt")] - pub updated_at: Option, + pub updated_at: Option, pub lang: Option, } diff --git a/packages/backend/native-utils/src/model/entity/note_edit.rs b/packages/backend/native-utils/src/model/entity/note_edit.rs index befd39616..6b5e3f04c 100644 --- a/packages/backend/native-utils/src/model/entity/note_edit.rs +++ b/packages/backend/native-utils/src/model/entity/note_edit.rs @@ -15,7 +15,7 @@ pub struct Model { #[sea_orm(column_name = "fileIds")] pub file_ids: Vec, #[sea_orm(column_name = "updatedAt")] - pub updated_at: DateTimeWithTimeZone, + pub updated_at: DateTime, } #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] diff --git a/packages/backend/native-utils/src/model/entity/note_favorite.rs b/packages/backend/native-utils/src/model/entity/note_favorite.rs index d3bd03f08..e1b2c31dd 100644 --- a/packages/backend/native-utils/src/model/entity/note_favorite.rs +++ b/packages/backend/native-utils/src/model/entity/note_favorite.rs @@ -8,7 +8,7 @@ pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub id: String, #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, + pub created_at: DateTime, #[sea_orm(column_name = "userId")] pub user_id: String, #[sea_orm(column_name = "noteId")] diff --git a/packages/backend/native-utils/src/model/entity/note_reaction.rs b/packages/backend/native-utils/src/model/entity/note_reaction.rs index 469ff6018..ad6b385db 100644 --- a/packages/backend/native-utils/src/model/entity/note_reaction.rs +++ b/packages/backend/native-utils/src/model/entity/note_reaction.rs @@ -8,7 +8,7 @@ pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub id: String, #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, + pub created_at: DateTime, #[sea_orm(column_name = "userId")] pub user_id: String, #[sea_orm(column_name = "noteId")] diff --git a/packages/backend/native-utils/src/model/entity/note_thread_muting.rs b/packages/backend/native-utils/src/model/entity/note_thread_muting.rs index 4915e8dd0..84fd0f311 100644 --- a/packages/backend/native-utils/src/model/entity/note_thread_muting.rs +++ b/packages/backend/native-utils/src/model/entity/note_thread_muting.rs @@ -8,7 +8,7 @@ pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub id: String, #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, + pub created_at: DateTime, #[sea_orm(column_name = "userId")] pub user_id: String, #[sea_orm(column_name = "threadId")] diff --git a/packages/backend/native-utils/src/model/entity/note_watching.rs b/packages/backend/native-utils/src/model/entity/note_watching.rs index 2e21d2277..8febf3630 100644 --- a/packages/backend/native-utils/src/model/entity/note_watching.rs +++ b/packages/backend/native-utils/src/model/entity/note_watching.rs @@ -8,7 +8,7 @@ pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub id: String, #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, + pub created_at: DateTime, #[sea_orm(column_name = "userId")] pub user_id: String, #[sea_orm(column_name = "noteId")] diff --git a/packages/backend/native-utils/src/model/entity/notification.rs b/packages/backend/native-utils/src/model/entity/notification.rs index 9fc80abf7..72f01f295 100644 --- a/packages/backend/native-utils/src/model/entity/notification.rs +++ b/packages/backend/native-utils/src/model/entity/notification.rs @@ -9,7 +9,7 @@ pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub id: String, #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, + pub created_at: DateTime, #[sea_orm(column_name = "notifieeId")] pub notifiee_id: String, #[sea_orm(column_name = "notifierId")] diff --git a/packages/backend/native-utils/src/model/entity/page.rs b/packages/backend/native-utils/src/model/entity/page.rs index 20e80ca5a..fe59a50b7 100644 --- a/packages/backend/native-utils/src/model/entity/page.rs +++ b/packages/backend/native-utils/src/model/entity/page.rs @@ -9,9 +9,9 @@ pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub id: String, #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, + pub created_at: DateTime, #[sea_orm(column_name = "updatedAt")] - pub updated_at: DateTimeWithTimeZone, + pub updated_at: DateTime, pub title: String, pub name: String, pub summary: Option, diff --git a/packages/backend/native-utils/src/model/entity/page_like.rs b/packages/backend/native-utils/src/model/entity/page_like.rs index 4ad0063c5..c608dcf48 100644 --- a/packages/backend/native-utils/src/model/entity/page_like.rs +++ b/packages/backend/native-utils/src/model/entity/page_like.rs @@ -8,7 +8,7 @@ pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub id: String, #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, + pub created_at: DateTime, #[sea_orm(column_name = "userId")] pub user_id: String, #[sea_orm(column_name = "pageId")] diff --git a/packages/backend/native-utils/src/model/entity/password_reset_request.rs b/packages/backend/native-utils/src/model/entity/password_reset_request.rs index 5ab8a18e2..a4610b177 100644 --- a/packages/backend/native-utils/src/model/entity/password_reset_request.rs +++ b/packages/backend/native-utils/src/model/entity/password_reset_request.rs @@ -8,7 +8,7 @@ pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub id: String, #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, + pub created_at: DateTime, pub token: String, #[sea_orm(column_name = "userId")] pub user_id: String, diff --git a/packages/backend/native-utils/src/model/entity/poll.rs b/packages/backend/native-utils/src/model/entity/poll.rs index 0f8744c36..9418ad6a5 100644 --- a/packages/backend/native-utils/src/model/entity/poll.rs +++ b/packages/backend/native-utils/src/model/entity/poll.rs @@ -9,7 +9,7 @@ pub struct Model { #[sea_orm(column_name = "noteId", primary_key, auto_increment = false, unique)] pub note_id: String, #[sea_orm(column_name = "expiresAt")] - pub expires_at: Option, + pub expires_at: Option, pub multiple: bool, pub choices: Vec, pub votes: Vec, diff --git a/packages/backend/native-utils/src/model/entity/poll_vote.rs b/packages/backend/native-utils/src/model/entity/poll_vote.rs index 076157d7b..0990dab9b 100644 --- a/packages/backend/native-utils/src/model/entity/poll_vote.rs +++ b/packages/backend/native-utils/src/model/entity/poll_vote.rs @@ -8,7 +8,7 @@ pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub id: String, #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, + pub created_at: DateTime, #[sea_orm(column_name = "userId")] pub user_id: String, #[sea_orm(column_name = "noteId")] diff --git a/packages/backend/native-utils/src/model/entity/promo_note.rs b/packages/backend/native-utils/src/model/entity/promo_note.rs index 0543c0ec4..1ee07df32 100644 --- a/packages/backend/native-utils/src/model/entity/promo_note.rs +++ b/packages/backend/native-utils/src/model/entity/promo_note.rs @@ -8,7 +8,7 @@ pub struct Model { #[sea_orm(column_name = "noteId", primary_key, auto_increment = false, unique)] pub note_id: String, #[sea_orm(column_name = "expiresAt")] - pub expires_at: DateTimeWithTimeZone, + pub expires_at: DateTime, #[sea_orm(column_name = "userId")] pub user_id: String, } diff --git a/packages/backend/native-utils/src/model/entity/promo_read.rs b/packages/backend/native-utils/src/model/entity/promo_read.rs index d7e510dd7..a0015f878 100644 --- a/packages/backend/native-utils/src/model/entity/promo_read.rs +++ b/packages/backend/native-utils/src/model/entity/promo_read.rs @@ -8,7 +8,7 @@ pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub id: String, #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, + pub created_at: DateTime, #[sea_orm(column_name = "userId")] pub user_id: String, #[sea_orm(column_name = "noteId")] diff --git a/packages/backend/native-utils/src/model/entity/registration_ticket.rs b/packages/backend/native-utils/src/model/entity/registration_ticket.rs index d7d361b01..577a9b36c 100644 --- a/packages/backend/native-utils/src/model/entity/registration_ticket.rs +++ b/packages/backend/native-utils/src/model/entity/registration_ticket.rs @@ -8,7 +8,7 @@ pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub id: String, #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, + pub created_at: DateTime, pub code: String, } diff --git a/packages/backend/native-utils/src/model/entity/registry_item.rs b/packages/backend/native-utils/src/model/entity/registry_item.rs index 548dc8507..a3bfdb8b1 100644 --- a/packages/backend/native-utils/src/model/entity/registry_item.rs +++ b/packages/backend/native-utils/src/model/entity/registry_item.rs @@ -8,9 +8,9 @@ pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub id: String, #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, + pub created_at: DateTime, #[sea_orm(column_name = "updatedAt")] - pub updated_at: DateTimeWithTimeZone, + pub updated_at: DateTime, #[sea_orm(column_name = "userId")] pub user_id: String, pub key: String, diff --git a/packages/backend/native-utils/src/model/entity/renote_muting.rs b/packages/backend/native-utils/src/model/entity/renote_muting.rs index c0ec9cdea..cf3312e68 100644 --- a/packages/backend/native-utils/src/model/entity/renote_muting.rs +++ b/packages/backend/native-utils/src/model/entity/renote_muting.rs @@ -8,7 +8,7 @@ pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub id: String, #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, + pub created_at: DateTime, #[sea_orm(column_name = "muteeId")] pub mutee_id: String, #[sea_orm(column_name = "muterId")] diff --git a/packages/backend/native-utils/src/model/entity/reply_muting.rs b/packages/backend/native-utils/src/model/entity/reply_muting.rs index 5d4a87712..67c0289ea 100644 --- a/packages/backend/native-utils/src/model/entity/reply_muting.rs +++ b/packages/backend/native-utils/src/model/entity/reply_muting.rs @@ -8,7 +8,7 @@ pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub id: String, #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, + pub created_at: DateTime, #[sea_orm(column_name = "muteeId")] pub mutee_id: String, #[sea_orm(column_name = "muterId")] diff --git a/packages/backend/native-utils/src/model/entity/signin.rs b/packages/backend/native-utils/src/model/entity/signin.rs index 1e77f7822..74be51c73 100644 --- a/packages/backend/native-utils/src/model/entity/signin.rs +++ b/packages/backend/native-utils/src/model/entity/signin.rs @@ -8,7 +8,7 @@ pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub id: String, #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, + pub created_at: DateTime, #[sea_orm(column_name = "userId")] pub user_id: String, pub ip: String, diff --git a/packages/backend/native-utils/src/model/entity/sw_subscription.rs b/packages/backend/native-utils/src/model/entity/sw_subscription.rs index 0a2ad0849..480836e93 100644 --- a/packages/backend/native-utils/src/model/entity/sw_subscription.rs +++ b/packages/backend/native-utils/src/model/entity/sw_subscription.rs @@ -8,7 +8,7 @@ pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub id: String, #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, + pub created_at: DateTime, #[sea_orm(column_name = "userId")] pub user_id: String, pub endpoint: String, diff --git a/packages/backend/native-utils/src/model/entity/used_username.rs b/packages/backend/native-utils/src/model/entity/used_username.rs index 3f9a9fa1b..8509793ae 100644 --- a/packages/backend/native-utils/src/model/entity/used_username.rs +++ b/packages/backend/native-utils/src/model/entity/used_username.rs @@ -8,7 +8,7 @@ pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub username: String, #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, + pub created_at: DateTime, } #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] diff --git a/packages/backend/native-utils/src/model/entity/user.rs b/packages/backend/native-utils/src/model/entity/user.rs index 68286ccf9..8ace9fc60 100644 --- a/packages/backend/native-utils/src/model/entity/user.rs +++ b/packages/backend/native-utils/src/model/entity/user.rs @@ -9,11 +9,11 @@ pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub id: String, #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, + pub created_at: DateTime, #[sea_orm(column_name = "updatedAt")] - pub updated_at: Option, + pub updated_at: Option, #[sea_orm(column_name = "lastFetchedAt")] - pub last_fetched_at: Option, + pub last_fetched_at: Option, pub username: String, #[sea_orm(column_name = "usernameLower")] pub username_lower: String, @@ -57,7 +57,7 @@ pub struct Model { #[sea_orm(column_name = "followersUri")] pub followers_uri: Option, #[sea_orm(column_name = "lastActiveDate")] - pub last_active_date: Option, + pub last_active_date: Option, #[sea_orm(column_name = "hideOnlineStatus")] pub hide_online_status: bool, #[sea_orm(column_name = "isDeleted")] diff --git a/packages/backend/native-utils/src/model/entity/user_group.rs b/packages/backend/native-utils/src/model/entity/user_group.rs index fdc44279b..75d0a6eeb 100644 --- a/packages/backend/native-utils/src/model/entity/user_group.rs +++ b/packages/backend/native-utils/src/model/entity/user_group.rs @@ -8,7 +8,7 @@ pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub id: String, #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, + pub created_at: DateTime, pub name: String, #[sea_orm(column_name = "userId")] pub user_id: String, diff --git a/packages/backend/native-utils/src/model/entity/user_group_invitation.rs b/packages/backend/native-utils/src/model/entity/user_group_invitation.rs index a47a39750..2fd78d51d 100644 --- a/packages/backend/native-utils/src/model/entity/user_group_invitation.rs +++ b/packages/backend/native-utils/src/model/entity/user_group_invitation.rs @@ -8,7 +8,7 @@ pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub id: String, #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, + pub created_at: DateTime, #[sea_orm(column_name = "userId")] pub user_id: String, #[sea_orm(column_name = "userGroupId")] diff --git a/packages/backend/native-utils/src/model/entity/user_group_invite.rs b/packages/backend/native-utils/src/model/entity/user_group_invite.rs index 1b35b7526..a7d73b179 100644 --- a/packages/backend/native-utils/src/model/entity/user_group_invite.rs +++ b/packages/backend/native-utils/src/model/entity/user_group_invite.rs @@ -8,7 +8,7 @@ pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub id: String, #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, + pub created_at: DateTime, #[sea_orm(column_name = "userId")] pub user_id: String, #[sea_orm(column_name = "userGroupId")] diff --git a/packages/backend/native-utils/src/model/entity/user_group_joining.rs b/packages/backend/native-utils/src/model/entity/user_group_joining.rs index b82836c76..6f43fc9d5 100644 --- a/packages/backend/native-utils/src/model/entity/user_group_joining.rs +++ b/packages/backend/native-utils/src/model/entity/user_group_joining.rs @@ -8,7 +8,7 @@ pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub id: String, #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, + pub created_at: DateTime, #[sea_orm(column_name = "userId")] pub user_id: String, #[sea_orm(column_name = "userGroupId")] diff --git a/packages/backend/native-utils/src/model/entity/user_ip.rs b/packages/backend/native-utils/src/model/entity/user_ip.rs index eb0bddf0a..e4abec555 100644 --- a/packages/backend/native-utils/src/model/entity/user_ip.rs +++ b/packages/backend/native-utils/src/model/entity/user_ip.rs @@ -8,7 +8,7 @@ pub struct Model { #[sea_orm(primary_key)] pub id: i32, #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, + pub created_at: DateTime, #[sea_orm(column_name = "userId")] pub user_id: String, pub ip: String, diff --git a/packages/backend/native-utils/src/model/entity/user_list.rs b/packages/backend/native-utils/src/model/entity/user_list.rs index 424595e8a..01411cb59 100644 --- a/packages/backend/native-utils/src/model/entity/user_list.rs +++ b/packages/backend/native-utils/src/model/entity/user_list.rs @@ -8,7 +8,7 @@ pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub id: String, #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, + pub created_at: DateTime, #[sea_orm(column_name = "userId")] pub user_id: String, pub name: String, diff --git a/packages/backend/native-utils/src/model/entity/user_list_joining.rs b/packages/backend/native-utils/src/model/entity/user_list_joining.rs index de54b5066..63296dd6d 100644 --- a/packages/backend/native-utils/src/model/entity/user_list_joining.rs +++ b/packages/backend/native-utils/src/model/entity/user_list_joining.rs @@ -8,7 +8,7 @@ pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub id: String, #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, + pub created_at: DateTime, #[sea_orm(column_name = "userId")] pub user_id: String, #[sea_orm(column_name = "userListId")] diff --git a/packages/backend/native-utils/src/model/entity/user_note_pining.rs b/packages/backend/native-utils/src/model/entity/user_note_pining.rs index 99efe7ad7..b043b5934 100644 --- a/packages/backend/native-utils/src/model/entity/user_note_pining.rs +++ b/packages/backend/native-utils/src/model/entity/user_note_pining.rs @@ -8,7 +8,7 @@ pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub id: String, #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, + pub created_at: DateTime, #[sea_orm(column_name = "userId")] pub user_id: String, #[sea_orm(column_name = "noteId")] diff --git a/packages/backend/native-utils/src/model/entity/user_pending.rs b/packages/backend/native-utils/src/model/entity/user_pending.rs index 0674e955f..863783b76 100644 --- a/packages/backend/native-utils/src/model/entity/user_pending.rs +++ b/packages/backend/native-utils/src/model/entity/user_pending.rs @@ -8,7 +8,7 @@ pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub id: String, #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, + pub created_at: DateTime, pub code: String, pub username: String, pub email: String, diff --git a/packages/backend/native-utils/src/model/entity/user_security_key.rs b/packages/backend/native-utils/src/model/entity/user_security_key.rs index 5225993ac..28620229c 100644 --- a/packages/backend/native-utils/src/model/entity/user_security_key.rs +++ b/packages/backend/native-utils/src/model/entity/user_security_key.rs @@ -12,7 +12,7 @@ pub struct Model { #[sea_orm(column_name = "publicKey")] pub public_key: String, #[sea_orm(column_name = "lastUsed")] - pub last_used: DateTimeWithTimeZone, + pub last_used: DateTime, pub name: String, } diff --git a/packages/backend/native-utils/src/model/entity/webhook.rs b/packages/backend/native-utils/src/model/entity/webhook.rs index 692ced2ce..06d41b9d9 100644 --- a/packages/backend/native-utils/src/model/entity/webhook.rs +++ b/packages/backend/native-utils/src/model/entity/webhook.rs @@ -8,7 +8,7 @@ pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub id: String, #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, + pub created_at: DateTime, #[sea_orm(column_name = "userId")] pub user_id: String, pub name: String, @@ -17,7 +17,7 @@ pub struct Model { pub secret: String, pub active: bool, #[sea_orm(column_name = "latestSentAt")] - pub latest_sent_at: Option, + pub latest_sent_at: Option, #[sea_orm(column_name = "latestStatus")] pub latest_status: Option, } diff --git a/packages/backend/src/models/entities/abuse-user-report.ts b/packages/backend/src/models/entities/abuse-user-report.ts index cb4d55851..015b74fc6 100644 --- a/packages/backend/src/models/entities/abuse-user-report.ts +++ b/packages/backend/src/models/entities/abuse-user-report.ts @@ -15,7 +15,7 @@ export class AbuseUserReport { public id: string; @Index() - @Column("timestamp with time zone", { + @Column("timestamp without time zone", { comment: "The created date of the AbuseUserReport.", }) public createdAt: Date; diff --git a/packages/backend/src/models/entities/access-token.ts b/packages/backend/src/models/entities/access-token.ts index 8b950b171..82eb6516b 100644 --- a/packages/backend/src/models/entities/access-token.ts +++ b/packages/backend/src/models/entities/access-token.ts @@ -15,12 +15,12 @@ export class AccessToken { @PrimaryColumn(id()) public id: string; - @Column("timestamp with time zone", { + @Column("timestamp without time zone", { comment: "The created date of the AccessToken.", }) public createdAt: Date; - @Column("timestamp with time zone", { + @Column("timestamp without time zone", { nullable: true, }) public lastUsedAt: Date | null; diff --git a/packages/backend/src/models/entities/ad.ts b/packages/backend/src/models/entities/ad.ts index 80d54ddd5..a7a630d42 100644 --- a/packages/backend/src/models/entities/ad.ts +++ b/packages/backend/src/models/entities/ad.ts @@ -7,13 +7,13 @@ export class Ad { public id: string; @Index() - @Column("timestamp with time zone", { + @Column("timestamp without time zone", { comment: "The created date of the Ad.", }) public createdAt: Date; @Index() - @Column("timestamp with time zone", { + @Column("timestamp without time zone", { comment: "The expired date of the Ad.", }) public expiresAt: Date; diff --git a/packages/backend/src/models/entities/announcement-read.ts b/packages/backend/src/models/entities/announcement-read.ts index 79af9e48e..c636834bc 100644 --- a/packages/backend/src/models/entities/announcement-read.ts +++ b/packages/backend/src/models/entities/announcement-read.ts @@ -16,7 +16,7 @@ export class AnnouncementRead { @PrimaryColumn(id()) public id: string; - @Column("timestamp with time zone", { + @Column("timestamp without time zone", { comment: "The created date of the AnnouncementRead.", }) public createdAt: Date; diff --git a/packages/backend/src/models/entities/announcement.ts b/packages/backend/src/models/entities/announcement.ts index 7872c0fe1..cd6ae77bc 100644 --- a/packages/backend/src/models/entities/announcement.ts +++ b/packages/backend/src/models/entities/announcement.ts @@ -7,12 +7,12 @@ export class Announcement { public id: string; @Index() - @Column("timestamp with time zone", { + @Column("timestamp without time zone", { comment: "The created date of the Announcement.", }) public createdAt: Date; - @Column("timestamp with time zone", { + @Column("timestamp without time zone", { comment: "The updated date of the Announcement.", nullable: true, }) diff --git a/packages/backend/src/models/entities/antenna.ts b/packages/backend/src/models/entities/antenna.ts index 633dcc1d2..33d5668b8 100644 --- a/packages/backend/src/models/entities/antenna.ts +++ b/packages/backend/src/models/entities/antenna.ts @@ -16,7 +16,7 @@ export class Antenna { @PrimaryColumn(id()) public id: string; - @Column("timestamp with time zone", { + @Column("timestamp without time zone", { comment: "The created date of the Antenna.", }) public createdAt: Date; diff --git a/packages/backend/src/models/entities/app.ts b/packages/backend/src/models/entities/app.ts index a41e35aa9..48e145343 100644 --- a/packages/backend/src/models/entities/app.ts +++ b/packages/backend/src/models/entities/app.ts @@ -8,7 +8,7 @@ export class App { public id: string; @Index() - @Column("timestamp with time zone", { + @Column("timestamp without time zone", { comment: "The created date of the App.", }) public createdAt: Date; diff --git a/packages/backend/src/models/entities/attestation-challenge.ts b/packages/backend/src/models/entities/attestation-challenge.ts index 6a3a9c8ed..c46dfcf22 100644 --- a/packages/backend/src/models/entities/attestation-challenge.ts +++ b/packages/backend/src/models/entities/attestation-challenge.ts @@ -31,7 +31,7 @@ export class AttestationChallenge { }) public challenge: string; - @Column("timestamp with time zone", { + @Column("timestamp without time zone", { comment: "The date challenge was created for expiry purposes.", }) public createdAt: Date; diff --git a/packages/backend/src/models/entities/auth-session.ts b/packages/backend/src/models/entities/auth-session.ts index b31dca56c..f10e7133d 100644 --- a/packages/backend/src/models/entities/auth-session.ts +++ b/packages/backend/src/models/entities/auth-session.ts @@ -15,7 +15,7 @@ export class AuthSession { @PrimaryColumn(id()) public id: string; - @Column("timestamp with time zone", { + @Column("timestamp without time zone", { comment: "The created date of the AuthSession.", }) public createdAt: Date; diff --git a/packages/backend/src/models/entities/blocking.ts b/packages/backend/src/models/entities/blocking.ts index 55f677a98..414db1083 100644 --- a/packages/backend/src/models/entities/blocking.ts +++ b/packages/backend/src/models/entities/blocking.ts @@ -16,7 +16,7 @@ export class Blocking { public id: string; @Index() - @Column("timestamp with time zone", { + @Column("timestamp without time zone", { comment: "The created date of the Blocking.", }) public createdAt: Date; diff --git a/packages/backend/src/models/entities/channel-following.ts b/packages/backend/src/models/entities/channel-following.ts index ee329fa50..22a268d13 100644 --- a/packages/backend/src/models/entities/channel-following.ts +++ b/packages/backend/src/models/entities/channel-following.ts @@ -17,7 +17,7 @@ export class ChannelFollowing { public id: string; @Index() - @Column("timestamp with time zone", { + @Column("timestamp without time zone", { comment: "The created date of the ChannelFollowing.", }) public createdAt: Date; diff --git a/packages/backend/src/models/entities/channel-note-pining.ts b/packages/backend/src/models/entities/channel-note-pining.ts index 67d1d48cc..22c8f0241 100644 --- a/packages/backend/src/models/entities/channel-note-pining.ts +++ b/packages/backend/src/models/entities/channel-note-pining.ts @@ -16,7 +16,7 @@ export class ChannelNotePining { @PrimaryColumn(id()) public id: string; - @Column("timestamp with time zone", { + @Column("timestamp without time zone", { comment: "The created date of the ChannelNotePining.", }) public createdAt: Date; diff --git a/packages/backend/src/models/entities/channel.ts b/packages/backend/src/models/entities/channel.ts index ea22fed50..cc4ba2177 100644 --- a/packages/backend/src/models/entities/channel.ts +++ b/packages/backend/src/models/entities/channel.ts @@ -16,13 +16,13 @@ export class Channel { public id: string; @Index() - @Column("timestamp with time zone", { + @Column("timestamp without time zone", { comment: "The created date of the Channel.", }) public createdAt: Date; @Index() - @Column("timestamp with time zone", { + @Column("timestamp without time zone", { nullable: true, }) public lastNotedAt: Date | null; diff --git a/packages/backend/src/models/entities/clip.ts b/packages/backend/src/models/entities/clip.ts index 9554703a4..f14d297f0 100644 --- a/packages/backend/src/models/entities/clip.ts +++ b/packages/backend/src/models/entities/clip.ts @@ -14,7 +14,7 @@ export class Clip { @PrimaryColumn(id()) public id: string; - @Column("timestamp with time zone", { + @Column("timestamp without time zone", { comment: "The created date of the Clip.", }) public createdAt: Date; diff --git a/packages/backend/src/models/entities/drive-file.ts b/packages/backend/src/models/entities/drive-file.ts index da93f32a8..f7d5b5eb5 100644 --- a/packages/backend/src/models/entities/drive-file.ts +++ b/packages/backend/src/models/entities/drive-file.ts @@ -18,7 +18,7 @@ export class DriveFile { public id: string; @Index() - @Column("timestamp with time zone", { + @Column("timestamp without time zone", { comment: "The created date of the DriveFile.", }) public createdAt: Date; diff --git a/packages/backend/src/models/entities/drive-folder.ts b/packages/backend/src/models/entities/drive-folder.ts index 0bb2c7a3d..6b624f622 100644 --- a/packages/backend/src/models/entities/drive-folder.ts +++ b/packages/backend/src/models/entities/drive-folder.ts @@ -15,7 +15,7 @@ export class DriveFolder { public id: string; @Index() - @Column("timestamp with time zone", { + @Column("timestamp without time zone", { comment: "The created date of the DriveFolder.", }) public createdAt: Date; diff --git a/packages/backend/src/models/entities/emoji.ts b/packages/backend/src/models/entities/emoji.ts index 87b525dc5..1f4005238 100644 --- a/packages/backend/src/models/entities/emoji.ts +++ b/packages/backend/src/models/entities/emoji.ts @@ -7,7 +7,7 @@ export class Emoji { @PrimaryColumn(id()) public id: string; - @Column("timestamp with time zone", { + @Column("timestamp without time zone", { nullable: true, }) public updatedAt: Date | null; diff --git a/packages/backend/src/models/entities/follow-request.ts b/packages/backend/src/models/entities/follow-request.ts index 281eab917..0a79bc2a5 100644 --- a/packages/backend/src/models/entities/follow-request.ts +++ b/packages/backend/src/models/entities/follow-request.ts @@ -15,7 +15,7 @@ export class FollowRequest { @PrimaryColumn(id()) public id: string; - @Column("timestamp with time zone", { + @Column("timestamp without time zone", { comment: "The created date of the FollowRequest.", }) public createdAt: Date; diff --git a/packages/backend/src/models/entities/following.ts b/packages/backend/src/models/entities/following.ts index ea8f32565..339fe5d5f 100644 --- a/packages/backend/src/models/entities/following.ts +++ b/packages/backend/src/models/entities/following.ts @@ -16,7 +16,7 @@ export class Following { public id: string; @Index() - @Column("timestamp with time zone", { + @Column("timestamp without time zone", { comment: "The created date of the Following.", }) public createdAt: Date; diff --git a/packages/backend/src/models/entities/gallery-like.ts b/packages/backend/src/models/entities/gallery-like.ts index 259feb8bb..975246ae9 100644 --- a/packages/backend/src/models/entities/gallery-like.ts +++ b/packages/backend/src/models/entities/gallery-like.ts @@ -16,7 +16,7 @@ export class GalleryLike { @PrimaryColumn(id()) public id: string; - @Column("timestamp with time zone") + @Column("timestamp without time zone") public createdAt: Date; @Index() diff --git a/packages/backend/src/models/entities/gallery-post.ts b/packages/backend/src/models/entities/gallery-post.ts index 938348659..1e93a01f0 100644 --- a/packages/backend/src/models/entities/gallery-post.ts +++ b/packages/backend/src/models/entities/gallery-post.ts @@ -16,13 +16,13 @@ export class GalleryPost { public id: string; @Index() - @Column("timestamp with time zone", { + @Column("timestamp without time zone", { comment: "The created date of the GalleryPost.", }) public createdAt: Date; @Index() - @Column("timestamp with time zone", { + @Column("timestamp without time zone", { comment: "The updated date of the GalleryPost.", }) public updatedAt: Date; diff --git a/packages/backend/src/models/entities/instance.ts b/packages/backend/src/models/entities/instance.ts index 7b7701d07..ab7b2fa45 100644 --- a/packages/backend/src/models/entities/instance.ts +++ b/packages/backend/src/models/entities/instance.ts @@ -10,7 +10,7 @@ export class Instance { * このインスタンスを捕捉した日時 */ @Index() - @Column("timestamp with time zone", { + @Column("timestamp without time zone", { comment: "The caught date of the Instance.", }) public caughtAt: Date; @@ -62,7 +62,7 @@ export class Instance { /** * 直近のリクエスト送信日時 */ - @Column("timestamp with time zone", { + @Column("timestamp without time zone", { nullable: true, }) public latestRequestSentAt: Date | null; @@ -78,7 +78,7 @@ export class Instance { /** * 直近のリクエスト受信日時 */ - @Column("timestamp with time zone", { + @Column("timestamp without time zone", { nullable: true, }) public latestRequestReceivedAt: Date | null; @@ -86,7 +86,7 @@ export class Instance { /** * このインスタンスと最後にやり取りした日時 */ - @Column("timestamp with time zone") + @Column("timestamp without time zone") public lastCommunicatedAt: Date; /** @@ -166,7 +166,7 @@ export class Instance { }) public themeColor: string | null; - @Column("timestamp with time zone", { + @Column("timestamp without time zone", { nullable: true, }) public infoUpdatedAt: Date | null; diff --git a/packages/backend/src/models/entities/messaging-message.ts b/packages/backend/src/models/entities/messaging-message.ts index d1da00eae..0f86d0ba0 100644 --- a/packages/backend/src/models/entities/messaging-message.ts +++ b/packages/backend/src/models/entities/messaging-message.ts @@ -17,7 +17,7 @@ export class MessagingMessage { public id: string; @Index() - @Column("timestamp with time zone", { + @Column("timestamp without time zone", { comment: "The created date of the MessagingMessage.", }) public createdAt: Date; diff --git a/packages/backend/src/models/entities/moderation-log.ts b/packages/backend/src/models/entities/moderation-log.ts index 26bf1cdfa..00b716b89 100644 --- a/packages/backend/src/models/entities/moderation-log.ts +++ b/packages/backend/src/models/entities/moderation-log.ts @@ -14,7 +14,7 @@ export class ModerationLog { @PrimaryColumn(id()) public id: string; - @Column("timestamp with time zone", { + @Column("timestamp without time zone", { comment: "The created date of the ModerationLog.", }) public createdAt: Date; diff --git a/packages/backend/src/models/entities/muting.ts b/packages/backend/src/models/entities/muting.ts index 603619b46..1f9ff7999 100644 --- a/packages/backend/src/models/entities/muting.ts +++ b/packages/backend/src/models/entities/muting.ts @@ -16,13 +16,13 @@ export class Muting { public id: string; @Index() - @Column("timestamp with time zone", { + @Column("timestamp without time zone", { comment: "The created date of the Muting.", }) public createdAt: Date; @Index() - @Column("timestamp with time zone", { + @Column("timestamp without time zone", { nullable: true, }) public expiresAt: Date | null; diff --git a/packages/backend/src/models/entities/note-edit.ts b/packages/backend/src/models/entities/note-edit.ts index 8761e2b15..f761b034b 100644 --- a/packages/backend/src/models/entities/note-edit.ts +++ b/packages/backend/src/models/entities/note-edit.ts @@ -46,7 +46,7 @@ export class NoteEdit { }) public fileIds: DriveFile["id"][]; - @Column("timestamp with time zone", { + @Column("timestamp without time zone", { comment: "The updated date of the Note.", }) public updatedAt: Date; diff --git a/packages/backend/src/models/entities/note-favorite.ts b/packages/backend/src/models/entities/note-favorite.ts index 19641ecf4..a4caeea4a 100644 --- a/packages/backend/src/models/entities/note-favorite.ts +++ b/packages/backend/src/models/entities/note-favorite.ts @@ -16,7 +16,7 @@ export class NoteFavorite { @PrimaryColumn(id()) public id: string; - @Column("timestamp with time zone", { + @Column("timestamp without time zone", { comment: "The created date of the NoteFavorite.", }) public createdAt: Date; diff --git a/packages/backend/src/models/entities/note-reaction.ts b/packages/backend/src/models/entities/note-reaction.ts index 5e2a8d3e8..019edb19c 100644 --- a/packages/backend/src/models/entities/note-reaction.ts +++ b/packages/backend/src/models/entities/note-reaction.ts @@ -17,7 +17,7 @@ export class NoteReaction { public id: string; @Index() - @Column("timestamp with time zone", { + @Column("timestamp without time zone", { comment: "The created date of the NoteReaction.", }) public createdAt: Date; diff --git a/packages/backend/src/models/entities/note-thread-muting.ts b/packages/backend/src/models/entities/note-thread-muting.ts index 7e5fad59a..a4760301b 100644 --- a/packages/backend/src/models/entities/note-thread-muting.ts +++ b/packages/backend/src/models/entities/note-thread-muting.ts @@ -15,7 +15,7 @@ export class NoteThreadMuting { @PrimaryColumn(id()) public id: string; - @Column("timestamp with time zone", {}) + @Column("timestamp without time zone", {}) public createdAt: Date; @Index() diff --git a/packages/backend/src/models/entities/note-watching.ts b/packages/backend/src/models/entities/note-watching.ts index 724b084af..5848af9d0 100644 --- a/packages/backend/src/models/entities/note-watching.ts +++ b/packages/backend/src/models/entities/note-watching.ts @@ -17,7 +17,7 @@ export class NoteWatching { public id: string; @Index() - @Column("timestamp with time zone", { + @Column("timestamp without time zone", { comment: "The created date of the NoteWatching.", }) public createdAt: Date; diff --git a/packages/backend/src/models/entities/note.ts b/packages/backend/src/models/entities/note.ts index e08cb6b58..79d9ade78 100644 --- a/packages/backend/src/models/entities/note.ts +++ b/packages/backend/src/models/entities/note.ts @@ -21,7 +21,7 @@ export class Note { public id: string; @Index() - @Column("timestamp with time zone", { + @Column("timestamp without time zone", { comment: "The created date of the Note.", }) public createdAt: Date; @@ -258,7 +258,7 @@ export class Note { }) public renoteUserHost: string | null; - @Column("timestamp with time zone", { + @Column("timestamp without time zone", { nullable: true, comment: "The updated date of the Note.", }) diff --git a/packages/backend/src/models/entities/notification.ts b/packages/backend/src/models/entities/notification.ts index 425cd5570..1e15649fd 100644 --- a/packages/backend/src/models/entities/notification.ts +++ b/packages/backend/src/models/entities/notification.ts @@ -20,7 +20,7 @@ export class Notification { public id: string; @Index() - @Column("timestamp with time zone", { + @Column("timestamp without time zone", { comment: "The created date of the Notification.", }) public createdAt: Date; diff --git a/packages/backend/src/models/entities/page-like.ts b/packages/backend/src/models/entities/page-like.ts index 6304e0b24..d4b82c6e1 100644 --- a/packages/backend/src/models/entities/page-like.ts +++ b/packages/backend/src/models/entities/page-like.ts @@ -16,7 +16,7 @@ export class PageLike { @PrimaryColumn(id()) public id: string; - @Column("timestamp with time zone") + @Column("timestamp without time zone") public createdAt: Date; @Index() diff --git a/packages/backend/src/models/entities/page.ts b/packages/backend/src/models/entities/page.ts index d0733c8ce..7043932b8 100644 --- a/packages/backend/src/models/entities/page.ts +++ b/packages/backend/src/models/entities/page.ts @@ -17,13 +17,13 @@ export class Page { public id: string; @Index() - @Column("timestamp with time zone", { + @Column("timestamp without time zone", { comment: "The created date of the Page.", }) public createdAt: Date; @Index() - @Column("timestamp with time zone", { + @Column("timestamp without time zone", { comment: "The updated date of the Page.", }) public updatedAt: Date; diff --git a/packages/backend/src/models/entities/password-reset-request.ts b/packages/backend/src/models/entities/password-reset-request.ts index ab0bccbbe..9e6a8f02c 100644 --- a/packages/backend/src/models/entities/password-reset-request.ts +++ b/packages/backend/src/models/entities/password-reset-request.ts @@ -14,7 +14,7 @@ export class PasswordResetRequest { @PrimaryColumn(id()) public id: string; - @Column("timestamp with time zone") + @Column("timestamp without time zone") public createdAt: Date; @Index({ unique: true }) diff --git a/packages/backend/src/models/entities/poll-vote.ts b/packages/backend/src/models/entities/poll-vote.ts index d59a720c3..f45812a00 100644 --- a/packages/backend/src/models/entities/poll-vote.ts +++ b/packages/backend/src/models/entities/poll-vote.ts @@ -17,7 +17,7 @@ export class PollVote { public id: string; @Index() - @Column("timestamp with time zone", { + @Column("timestamp without time zone", { comment: "The created date of the PollVote.", }) public createdAt: Date; diff --git a/packages/backend/src/models/entities/poll.ts b/packages/backend/src/models/entities/poll.ts index f84e5fb8f..59d669782 100644 --- a/packages/backend/src/models/entities/poll.ts +++ b/packages/backend/src/models/entities/poll.ts @@ -22,7 +22,7 @@ export class Poll { @JoinColumn() public note: Note | null; - @Column("timestamp with time zone", { + @Column("timestamp without time zone", { nullable: true, }) public expiresAt: Date | null; diff --git a/packages/backend/src/models/entities/promo-note.ts b/packages/backend/src/models/entities/promo-note.ts index caa64927e..d4e7ac0b8 100644 --- a/packages/backend/src/models/entities/promo-note.ts +++ b/packages/backend/src/models/entities/promo-note.ts @@ -21,7 +21,7 @@ export class PromoNote { @JoinColumn() public note: Note | null; - @Column("timestamp with time zone") + @Column("timestamp without time zone") public expiresAt: Date; //#region Denormalized fields diff --git a/packages/backend/src/models/entities/promo-read.ts b/packages/backend/src/models/entities/promo-read.ts index b31877dc3..f7c3bcd73 100644 --- a/packages/backend/src/models/entities/promo-read.ts +++ b/packages/backend/src/models/entities/promo-read.ts @@ -16,7 +16,7 @@ export class PromoRead { @PrimaryColumn(id()) public id: string; - @Column("timestamp with time zone", { + @Column("timestamp without time zone", { comment: "The created date of the PromoRead.", }) public createdAt: Date; diff --git a/packages/backend/src/models/entities/registration-tickets.ts b/packages/backend/src/models/entities/registration-tickets.ts index 549f05d07..db0a41655 100644 --- a/packages/backend/src/models/entities/registration-tickets.ts +++ b/packages/backend/src/models/entities/registration-tickets.ts @@ -6,7 +6,7 @@ export class RegistrationTicket { @PrimaryColumn(id()) public id: string; - @Column("timestamp with time zone") + @Column("timestamp without time zone") public createdAt: Date; @Index({ unique: true }) diff --git a/packages/backend/src/models/entities/registry-item.ts b/packages/backend/src/models/entities/registry-item.ts index d044222e6..73b197241 100644 --- a/packages/backend/src/models/entities/registry-item.ts +++ b/packages/backend/src/models/entities/registry-item.ts @@ -15,12 +15,12 @@ export class RegistryItem { @PrimaryColumn(id()) public id: string; - @Column("timestamp with time zone", { + @Column("timestamp without time zone", { comment: "The created date of the RegistryItem.", }) public createdAt: Date; - @Column("timestamp with time zone", { + @Column("timestamp without time zone", { comment: "The updated date of the RegistryItem.", }) public updatedAt: Date; diff --git a/packages/backend/src/models/entities/renote-muting.ts b/packages/backend/src/models/entities/renote-muting.ts index e8856492f..0bb4d7fd1 100644 --- a/packages/backend/src/models/entities/renote-muting.ts +++ b/packages/backend/src/models/entities/renote-muting.ts @@ -16,7 +16,7 @@ export class RenoteMuting { public id: string; @Index() - @Column("timestamp with time zone", { + @Column("timestamp without time zone", { comment: "The created date of the Muting.", }) public createdAt: Date; diff --git a/packages/backend/src/models/entities/reply-muting.ts b/packages/backend/src/models/entities/reply-muting.ts index 19c2418fa..d55a362c2 100644 --- a/packages/backend/src/models/entities/reply-muting.ts +++ b/packages/backend/src/models/entities/reply-muting.ts @@ -16,7 +16,7 @@ export class ReplyMuting { public id: string; @Index() - @Column("timestamp with time zone", { + @Column("timestamp without time zone", { comment: "The created date of the Muting.", }) public createdAt: Date; diff --git a/packages/backend/src/models/entities/signin.ts b/packages/backend/src/models/entities/signin.ts index 517e71c8f..5db5526e0 100644 --- a/packages/backend/src/models/entities/signin.ts +++ b/packages/backend/src/models/entities/signin.ts @@ -14,7 +14,7 @@ export class Signin { @PrimaryColumn(id()) public id: string; - @Column("timestamp with time zone", { + @Column("timestamp without time zone", { comment: "The created date of the Signin.", }) public createdAt: Date; diff --git a/packages/backend/src/models/entities/sw-subscription.ts b/packages/backend/src/models/entities/sw-subscription.ts index f7823fbaa..69138f21f 100644 --- a/packages/backend/src/models/entities/sw-subscription.ts +++ b/packages/backend/src/models/entities/sw-subscription.ts @@ -14,7 +14,7 @@ export class SwSubscription { @PrimaryColumn(id()) public id: string; - @Column("timestamp with time zone") + @Column("timestamp without time zone") public createdAt: Date; @Index() diff --git a/packages/backend/src/models/entities/used-username.ts b/packages/backend/src/models/entities/used-username.ts index d00a25991..4504301b1 100644 --- a/packages/backend/src/models/entities/used-username.ts +++ b/packages/backend/src/models/entities/used-username.ts @@ -7,7 +7,7 @@ export class UsedUsername { }) public username: string; - @Column("timestamp with time zone") + @Column("timestamp without time zone") public createdAt: Date; constructor(data: Partial) { diff --git a/packages/backend/src/models/entities/user-group-invitation.ts b/packages/backend/src/models/entities/user-group-invitation.ts index fa2655ab6..0a38ac4df 100644 --- a/packages/backend/src/models/entities/user-group-invitation.ts +++ b/packages/backend/src/models/entities/user-group-invitation.ts @@ -16,7 +16,7 @@ export class UserGroupInvitation { @PrimaryColumn(id()) public id: string; - @Column("timestamp with time zone", { + @Column("timestamp without time zone", { comment: "The created date of the UserGroupInvitation.", }) public createdAt: Date; diff --git a/packages/backend/src/models/entities/user-group-joining.ts b/packages/backend/src/models/entities/user-group-joining.ts index 78f820d0e..6bbae5ae3 100644 --- a/packages/backend/src/models/entities/user-group-joining.ts +++ b/packages/backend/src/models/entities/user-group-joining.ts @@ -16,7 +16,7 @@ export class UserGroupJoining { @PrimaryColumn(id()) public id: string; - @Column("timestamp with time zone", { + @Column("timestamp without time zone", { comment: "The created date of the UserGroupJoining.", }) public createdAt: Date; diff --git a/packages/backend/src/models/entities/user-group.ts b/packages/backend/src/models/entities/user-group.ts index 23876ec8b..7c62ccc59 100644 --- a/packages/backend/src/models/entities/user-group.ts +++ b/packages/backend/src/models/entities/user-group.ts @@ -15,7 +15,7 @@ export class UserGroup { public id: string; @Index() - @Column("timestamp with time zone", { + @Column("timestamp without time zone", { comment: "The created date of the UserGroup.", }) public createdAt: Date; diff --git a/packages/backend/src/models/entities/user-ip.ts b/packages/backend/src/models/entities/user-ip.ts index adef48e4c..7c43816b6 100644 --- a/packages/backend/src/models/entities/user-ip.ts +++ b/packages/backend/src/models/entities/user-ip.ts @@ -8,7 +8,7 @@ export class UserIp { @PrimaryGeneratedColumn() public id: string; - @Column("timestamp with time zone", {}) + @Column("timestamp without time zone", {}) public createdAt: Date; @Index() diff --git a/packages/backend/src/models/entities/user-list-joining.ts b/packages/backend/src/models/entities/user-list-joining.ts index 4caa71ad3..43c485f6f 100644 --- a/packages/backend/src/models/entities/user-list-joining.ts +++ b/packages/backend/src/models/entities/user-list-joining.ts @@ -16,7 +16,7 @@ export class UserListJoining { @PrimaryColumn(id()) public id: string; - @Column("timestamp with time zone", { + @Column("timestamp without time zone", { comment: "The created date of the UserListJoining.", }) public createdAt: Date; diff --git a/packages/backend/src/models/entities/user-list.ts b/packages/backend/src/models/entities/user-list.ts index 3c95d44d6..bbc40240f 100644 --- a/packages/backend/src/models/entities/user-list.ts +++ b/packages/backend/src/models/entities/user-list.ts @@ -14,7 +14,7 @@ export class UserList { @PrimaryColumn(id()) public id: string; - @Column("timestamp with time zone", { + @Column("timestamp without time zone", { comment: "The created date of the UserList.", }) public createdAt: Date; diff --git a/packages/backend/src/models/entities/user-note-pining.ts b/packages/backend/src/models/entities/user-note-pining.ts index c30fe1e02..af91908df 100644 --- a/packages/backend/src/models/entities/user-note-pining.ts +++ b/packages/backend/src/models/entities/user-note-pining.ts @@ -16,7 +16,7 @@ export class UserNotePining { @PrimaryColumn(id()) public id: string; - @Column("timestamp with time zone", { + @Column("timestamp without time zone", { comment: "The created date of the UserNotePinings.", }) public createdAt: Date; diff --git a/packages/backend/src/models/entities/user-pending.ts b/packages/backend/src/models/entities/user-pending.ts index 18ae5ad99..1383c4d4d 100644 --- a/packages/backend/src/models/entities/user-pending.ts +++ b/packages/backend/src/models/entities/user-pending.ts @@ -6,7 +6,7 @@ export class UserPending { @PrimaryColumn(id()) public id: string; - @Column("timestamp with time zone") + @Column("timestamp without time zone") public createdAt: Date; @Index({ unique: true }) diff --git a/packages/backend/src/models/entities/user-security-key.ts b/packages/backend/src/models/entities/user-security-key.ts index 511cab4ae..6ac2070ee 100644 --- a/packages/backend/src/models/entities/user-security-key.ts +++ b/packages/backend/src/models/entities/user-security-key.ts @@ -33,7 +33,7 @@ export class UserSecurityKey { }) public publicKey: string; - @Column("timestamp with time zone", { + @Column("timestamp without time zone", { comment: "The date of the last time the UserSecurityKey was successfully validated.", }) diff --git a/packages/backend/src/models/entities/user.ts b/packages/backend/src/models/entities/user.ts index 6d7300713..0190cbda1 100644 --- a/packages/backend/src/models/entities/user.ts +++ b/packages/backend/src/models/entities/user.ts @@ -22,25 +22,25 @@ export class User { public id: string; @Index() - @Column("timestamp with time zone", { + @Column("timestamp without time zone", { comment: "The created date of the User.", }) public createdAt: Date; @Index() - @Column("timestamp with time zone", { + @Column("timestamp without time zone", { nullable: true, comment: "The updated date of the User.", }) public updatedAt: Date | null; - @Column("timestamp with time zone", { + @Column("timestamp without time zone", { nullable: true, }) public lastFetchedAt: Date | null; @Index() - @Column("timestamp with time zone", { + @Column("timestamp without time zone", { nullable: true, }) public lastActiveDate: Date | null; diff --git a/packages/backend/src/models/entities/webhook.ts b/packages/backend/src/models/entities/webhook.ts index 9573390b3..3d3a24290 100644 --- a/packages/backend/src/models/entities/webhook.ts +++ b/packages/backend/src/models/entities/webhook.ts @@ -25,7 +25,7 @@ export class Webhook { @PrimaryColumn(id()) public id: string; - @Column("timestamp with time zone", { + @Column("timestamp without time zone", { comment: "The created date of the Antenna.", }) public createdAt: Date; @@ -76,7 +76,7 @@ export class Webhook { /** * 直近のリクエスト送信日時 */ - @Column("timestamp with time zone", { + @Column("timestamp without time zone", { nullable: true, }) public latestSentAt: Date | null;