From 3bc2b7bcfb91546211e8038e597e7d31b70a6352 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 da5e19ad..8db84150 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 00000000..340168fb --- /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 88cc62ff..72ec038f 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 6794c88d..8609d569 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 b0a88360..74769685 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 ca6d3ead..07c0f334 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 34a7ae08..82317525 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 ec531d75..66474b72 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 92a2452e..d7c7eedb 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 d1dc98db..ca9b8cf3 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 4a069f40..63df331d 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 7aabf6ff..2a8ad366 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 83e94768..64415405 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 581b9872..67a0492e 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 e8506857..bcd3f72e 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 74633fb2..7838df9e 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 f1cf1037..406e3e1d 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 271cb527..3906b401 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 48b7de49..fc479a2d 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 6e3176a6..be2e3864 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 0bf3133d..c6313cd2 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 a55de648..0a41c09e 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 b3bc4bdf..2a868929 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 7037ac76..b95ffbec 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 6d38d778..3e9bb864 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 54a937a4..9e7003f0 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 14127855..e852391d 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 8c5f3c38..c5491915 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 befd3961..6b5e3f04 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 d3bd03f0..e1b2c31d 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 469ff601..ad6b385d 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 4915e8dd..84fd0f31 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 2e21d227..8febf363 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 9fc80abf..72f01f29 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 20e80ca5..fe59a50b 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 4ad0063c..c608dcf4 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 5ab8a18e..a4610b17 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 0f8744c3..9418ad6a 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 076157d7..0990dab9 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 0543c0ec..1ee07df3 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 d7e510dd..a0015f87 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 d7d361b0..577a9b36 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 548dc850..a3bfdb8b 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 c0ec9cde..cf3312e6 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 5d4a8771..67c0289e 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 1e77f782..74be51c7 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 0a2ad084..480836e9 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 3f9a9fa1..8509793a 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 68286ccf..8ace9fc6 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 fdc44279..75d0a6ee 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 a47a3975..2fd78d51 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 1b35b752..a7d73b17 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 b82836c7..6f43fc9d 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 eb0bddf0..e4abec55 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 424595e8..01411cb5 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 de54b506..63296dd6 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 99efe7ad..b043b593 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 0674e955..863783b7 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 5225993a..28620229 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 692ced2c..06d41b9d 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 cb4d5585..015b74fc 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 8b950b17..82eb6516 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 80d54ddd..a7a630d4 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 79af9e48..c636834b 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 7872c0fe..cd6ae77b 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 633dcc1d..33d5668b 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 a41e35aa..48e14534 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 6a3a9c8e..c46dfcf2 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 b31dca56..f10e7133 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 55f677a9..414db108 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 ee329fa5..22a268d1 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 67d1d48c..22c8f024 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 ea22fed5..cc4ba217 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 9554703a..f14d297f 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 da93f32a..f7d5b5eb 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 0bb2c7a3..6b624f62 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 87b525dc..1f400523 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 281eab91..0a79bc2a 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 ea8f3256..339fe5d5 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 259feb8b..975246ae 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 93834865..1e93a01f 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 7b7701d0..ab7b2fa4 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 d1da00ea..0f86d0ba 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 26bf1cdf..00b716b8 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 603619b4..1f9ff799 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 8761e2b1..f761b034 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 19641ecf..a4caeea4 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 5e2a8d3e..019edb19 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 7e5fad59..a4760301 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 724b084a..5848af9d 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 e08cb6b5..79d9ade7 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 425cd557..1e15649f 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 6304e0b2..d4b82c6e 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 d0733c8c..7043932b 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 ab0bccbb..9e6a8f02 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 d59a720c..f45812a0 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 f84e5fb8..59d66978 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 caa64927..d4e7ac0b 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 b31877dc..f7c3bcd7 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 549f05d0..db0a4165 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 d044222e..73b19724 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 e8856492..0bb4d7fd 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 19c2418f..d55a362c 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 517e71c8..5db5526e 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 f7823fba..69138f21 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 d00a2599..4504301b 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 fa2655ab..0a38ac4d 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 78f820d0..6bbae5ae 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 23876ec8..7c62ccc5 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 adef48e4..7c43816b 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 4caa71ad..43c485f6 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 3c95d44d..bbc40240 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 c30fe1e0..af91908d 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 18ae5ad9..1383c4d4 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 511cab4a..6ac2070e 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 6d730071..0190cbda 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 9573390b..3d3a2429 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;