refactor (backend): drop timezone info from database

Co-authored-by: sup39 <dev@sup39.dev>
This commit is contained in:
naskya 2024-01-20 04:26:13 +09:00
parent ea020e9f7c
commit 3bc2b7bcfb
Signed by: naskya
GPG key ID: 712D413B3A9FED5C
117 changed files with 685 additions and 149 deletions

View file

@ -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 -- reply-muting
DROP TABLE "reply_muting"; DROP TABLE "reply_muting";

View file

@ -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`,
);
}
}

View file

@ -8,7 +8,7 @@ pub struct Model {
#[sea_orm(primary_key, auto_increment = false)] #[sea_orm(primary_key, auto_increment = false)]
pub id: String, pub id: String,
#[sea_orm(column_name = "createdAt")] #[sea_orm(column_name = "createdAt")]
pub created_at: DateTimeWithTimeZone, pub created_at: DateTime,
#[sea_orm(column_name = "targetUserId")] #[sea_orm(column_name = "targetUserId")]
pub target_user_id: String, pub target_user_id: String,
#[sea_orm(column_name = "reporterId")] #[sea_orm(column_name = "reporterId")]

View file

@ -8,7 +8,7 @@ pub struct Model {
#[sea_orm(primary_key, auto_increment = false)] #[sea_orm(primary_key, auto_increment = false)]
pub id: String, pub id: String,
#[sea_orm(column_name = "createdAt")] #[sea_orm(column_name = "createdAt")]
pub created_at: DateTimeWithTimeZone, pub created_at: DateTime,
pub token: String, pub token: String,
pub hash: String, pub hash: String,
#[sea_orm(column_name = "userId")] #[sea_orm(column_name = "userId")]
@ -16,7 +16,7 @@ pub struct Model {
#[sea_orm(column_name = "appId")] #[sea_orm(column_name = "appId")]
pub app_id: Option<String>, pub app_id: Option<String>,
#[sea_orm(column_name = "lastUsedAt")] #[sea_orm(column_name = "lastUsedAt")]
pub last_used_at: Option<DateTimeWithTimeZone>, pub last_used_at: Option<DateTime>,
pub session: Option<String>, pub session: Option<String>,
pub name: Option<String>, pub name: Option<String>,
pub description: Option<String>, pub description: Option<String>,

View file

@ -8,9 +8,9 @@ pub struct Model {
#[sea_orm(primary_key, auto_increment = false)] #[sea_orm(primary_key, auto_increment = false)]
pub id: String, pub id: String,
#[sea_orm(column_name = "createdAt")] #[sea_orm(column_name = "createdAt")]
pub created_at: DateTimeWithTimeZone, pub created_at: DateTime,
#[sea_orm(column_name = "expiresAt")] #[sea_orm(column_name = "expiresAt")]
pub expires_at: DateTimeWithTimeZone, pub expires_at: DateTime,
pub place: String, pub place: String,
pub priority: String, pub priority: String,
pub url: String, pub url: String,

View file

@ -8,13 +8,13 @@ pub struct Model {
#[sea_orm(primary_key, auto_increment = false)] #[sea_orm(primary_key, auto_increment = false)]
pub id: String, pub id: String,
#[sea_orm(column_name = "createdAt")] #[sea_orm(column_name = "createdAt")]
pub created_at: DateTimeWithTimeZone, pub created_at: DateTime,
pub text: String, pub text: String,
pub title: String, pub title: String,
#[sea_orm(column_name = "imageUrl")] #[sea_orm(column_name = "imageUrl")]
pub image_url: Option<String>, pub image_url: Option<String>,
#[sea_orm(column_name = "updatedAt")] #[sea_orm(column_name = "updatedAt")]
pub updated_at: Option<DateTimeWithTimeZone>, pub updated_at: Option<DateTime>,
#[sea_orm(column_name = "showPopup")] #[sea_orm(column_name = "showPopup")]
pub show_popup: bool, pub show_popup: bool,
#[sea_orm(column_name = "isGoodNews")] #[sea_orm(column_name = "isGoodNews")]

View file

@ -12,7 +12,7 @@ pub struct Model {
#[sea_orm(column_name = "announcementId")] #[sea_orm(column_name = "announcementId")]
pub announcement_id: String, pub announcement_id: String,
#[sea_orm(column_name = "createdAt")] #[sea_orm(column_name = "createdAt")]
pub created_at: DateTimeWithTimeZone, pub created_at: DateTime,
} }
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]

View file

@ -9,7 +9,7 @@ pub struct Model {
#[sea_orm(primary_key, auto_increment = false)] #[sea_orm(primary_key, auto_increment = false)]
pub id: String, pub id: String,
#[sea_orm(column_name = "createdAt")] #[sea_orm(column_name = "createdAt")]
pub created_at: DateTimeWithTimeZone, pub created_at: DateTime,
#[sea_orm(column_name = "userId")] #[sea_orm(column_name = "userId")]
pub user_id: String, pub user_id: String,
pub name: String, pub name: String,

View file

@ -8,7 +8,7 @@ pub struct Model {
#[sea_orm(primary_key, auto_increment = false)] #[sea_orm(primary_key, auto_increment = false)]
pub id: String, pub id: String,
#[sea_orm(column_name = "createdAt")] #[sea_orm(column_name = "createdAt")]
pub created_at: DateTimeWithTimeZone, pub created_at: DateTime,
#[sea_orm(column_name = "userId")] #[sea_orm(column_name = "userId")]
pub user_id: Option<String>, pub user_id: Option<String>,
pub secret: String, pub secret: String,

View file

@ -11,7 +11,7 @@ pub struct Model {
pub user_id: String, pub user_id: String,
pub challenge: String, pub challenge: String,
#[sea_orm(column_name = "createdAt")] #[sea_orm(column_name = "createdAt")]
pub created_at: DateTimeWithTimeZone, pub created_at: DateTime,
#[sea_orm(column_name = "registrationChallenge")] #[sea_orm(column_name = "registrationChallenge")]
pub registration_challenge: bool, pub registration_challenge: bool,
} }

View file

@ -8,7 +8,7 @@ pub struct Model {
#[sea_orm(primary_key, auto_increment = false)] #[sea_orm(primary_key, auto_increment = false)]
pub id: String, pub id: String,
#[sea_orm(column_name = "createdAt")] #[sea_orm(column_name = "createdAt")]
pub created_at: DateTimeWithTimeZone, pub created_at: DateTime,
pub token: String, pub token: String,
#[sea_orm(column_name = "userId")] #[sea_orm(column_name = "userId")]
pub user_id: Option<String>, pub user_id: Option<String>,

View file

@ -8,7 +8,7 @@ pub struct Model {
#[sea_orm(primary_key, auto_increment = false)] #[sea_orm(primary_key, auto_increment = false)]
pub id: String, pub id: String,
#[sea_orm(column_name = "createdAt")] #[sea_orm(column_name = "createdAt")]
pub created_at: DateTimeWithTimeZone, pub created_at: DateTime,
#[sea_orm(column_name = "blockeeId")] #[sea_orm(column_name = "blockeeId")]
pub blockee_id: String, pub blockee_id: String,
#[sea_orm(column_name = "blockerId")] #[sea_orm(column_name = "blockerId")]

View file

@ -8,9 +8,9 @@ pub struct Model {
#[sea_orm(primary_key, auto_increment = false)] #[sea_orm(primary_key, auto_increment = false)]
pub id: String, pub id: String,
#[sea_orm(column_name = "createdAt")] #[sea_orm(column_name = "createdAt")]
pub created_at: DateTimeWithTimeZone, pub created_at: DateTime,
#[sea_orm(column_name = "lastNotedAt")] #[sea_orm(column_name = "lastNotedAt")]
pub last_noted_at: Option<DateTimeWithTimeZone>, pub last_noted_at: Option<DateTime>,
#[sea_orm(column_name = "userId")] #[sea_orm(column_name = "userId")]
pub user_id: Option<String>, pub user_id: Option<String>,
pub name: String, pub name: String,

View file

@ -8,7 +8,7 @@ pub struct Model {
#[sea_orm(primary_key, auto_increment = false)] #[sea_orm(primary_key, auto_increment = false)]
pub id: String, pub id: String,
#[sea_orm(column_name = "createdAt")] #[sea_orm(column_name = "createdAt")]
pub created_at: DateTimeWithTimeZone, pub created_at: DateTime,
#[sea_orm(column_name = "followeeId")] #[sea_orm(column_name = "followeeId")]
pub followee_id: String, pub followee_id: String,
#[sea_orm(column_name = "followerId")] #[sea_orm(column_name = "followerId")]

View file

@ -8,7 +8,7 @@ pub struct Model {
#[sea_orm(primary_key, auto_increment = false)] #[sea_orm(primary_key, auto_increment = false)]
pub id: String, pub id: String,
#[sea_orm(column_name = "createdAt")] #[sea_orm(column_name = "createdAt")]
pub created_at: DateTimeWithTimeZone, pub created_at: DateTime,
#[sea_orm(column_name = "channelId")] #[sea_orm(column_name = "channelId")]
pub channel_id: String, pub channel_id: String,
#[sea_orm(column_name = "noteId")] #[sea_orm(column_name = "noteId")]

View file

@ -8,7 +8,7 @@ pub struct Model {
#[sea_orm(primary_key, auto_increment = false)] #[sea_orm(primary_key, auto_increment = false)]
pub id: String, pub id: String,
#[sea_orm(column_name = "createdAt")] #[sea_orm(column_name = "createdAt")]
pub created_at: DateTimeWithTimeZone, pub created_at: DateTime,
#[sea_orm(column_name = "userId")] #[sea_orm(column_name = "userId")]
pub user_id: String, pub user_id: String,
pub name: String, pub name: String,

View file

@ -8,7 +8,7 @@ pub struct Model {
#[sea_orm(primary_key, auto_increment = false)] #[sea_orm(primary_key, auto_increment = false)]
pub id: String, pub id: String,
#[sea_orm(column_name = "createdAt")] #[sea_orm(column_name = "createdAt")]
pub created_at: DateTimeWithTimeZone, pub created_at: DateTime,
#[sea_orm(column_name = "userId")] #[sea_orm(column_name = "userId")]
pub user_id: Option<String>, pub user_id: Option<String>,
#[sea_orm(column_name = "userHost")] #[sea_orm(column_name = "userHost")]

View file

@ -8,7 +8,7 @@ pub struct Model {
#[sea_orm(primary_key, auto_increment = false)] #[sea_orm(primary_key, auto_increment = false)]
pub id: String, pub id: String,
#[sea_orm(column_name = "createdAt")] #[sea_orm(column_name = "createdAt")]
pub created_at: DateTimeWithTimeZone, pub created_at: DateTime,
pub name: String, pub name: String,
#[sea_orm(column_name = "userId")] #[sea_orm(column_name = "userId")]
pub user_id: Option<String>, pub user_id: Option<String>,

View file

@ -8,7 +8,7 @@ pub struct Model {
#[sea_orm(primary_key, auto_increment = false)] #[sea_orm(primary_key, auto_increment = false)]
pub id: String, pub id: String,
#[sea_orm(column_name = "updatedAt")] #[sea_orm(column_name = "updatedAt")]
pub updated_at: Option<DateTimeWithTimeZone>, pub updated_at: Option<DateTime>,
pub name: String, pub name: String,
pub host: Option<String>, pub host: Option<String>,
#[sea_orm(column_name = "originalUrl")] #[sea_orm(column_name = "originalUrl")]

View file

@ -8,7 +8,7 @@ pub struct Model {
#[sea_orm(primary_key, auto_increment = false)] #[sea_orm(primary_key, auto_increment = false)]
pub id: String, pub id: String,
#[sea_orm(column_name = "createdAt")] #[sea_orm(column_name = "createdAt")]
pub created_at: DateTimeWithTimeZone, pub created_at: DateTime,
#[sea_orm(column_name = "followeeId")] #[sea_orm(column_name = "followeeId")]
pub followee_id: String, pub followee_id: String,
#[sea_orm(column_name = "followerId")] #[sea_orm(column_name = "followerId")]

View file

@ -8,7 +8,7 @@ pub struct Model {
#[sea_orm(primary_key, auto_increment = false)] #[sea_orm(primary_key, auto_increment = false)]
pub id: String, pub id: String,
#[sea_orm(column_name = "createdAt")] #[sea_orm(column_name = "createdAt")]
pub created_at: DateTimeWithTimeZone, pub created_at: DateTime,
#[sea_orm(column_name = "followeeId")] #[sea_orm(column_name = "followeeId")]
pub followee_id: String, pub followee_id: String,
#[sea_orm(column_name = "followerId")] #[sea_orm(column_name = "followerId")]

View file

@ -8,7 +8,7 @@ pub struct Model {
#[sea_orm(primary_key, auto_increment = false)] #[sea_orm(primary_key, auto_increment = false)]
pub id: String, pub id: String,
#[sea_orm(column_name = "createdAt")] #[sea_orm(column_name = "createdAt")]
pub created_at: DateTimeWithTimeZone, pub created_at: DateTime,
#[sea_orm(column_name = "userId")] #[sea_orm(column_name = "userId")]
pub user_id: String, pub user_id: String,
#[sea_orm(column_name = "postId")] #[sea_orm(column_name = "postId")]

View file

@ -8,9 +8,9 @@ pub struct Model {
#[sea_orm(primary_key, auto_increment = false)] #[sea_orm(primary_key, auto_increment = false)]
pub id: String, pub id: String,
#[sea_orm(column_name = "createdAt")] #[sea_orm(column_name = "createdAt")]
pub created_at: DateTimeWithTimeZone, pub created_at: DateTime,
#[sea_orm(column_name = "updatedAt")] #[sea_orm(column_name = "updatedAt")]
pub updated_at: DateTimeWithTimeZone, pub updated_at: DateTime,
pub title: String, pub title: String,
pub description: Option<String>, pub description: Option<String>,
#[sea_orm(column_name = "userId")] #[sea_orm(column_name = "userId")]

View file

@ -8,7 +8,7 @@ pub struct Model {
#[sea_orm(primary_key, auto_increment = false)] #[sea_orm(primary_key, auto_increment = false)]
pub id: String, pub id: String,
#[sea_orm(column_name = "caughtAt")] #[sea_orm(column_name = "caughtAt")]
pub caught_at: DateTimeWithTimeZone, pub caught_at: DateTime,
pub host: String, pub host: String,
#[sea_orm(column_name = "usersCount")] #[sea_orm(column_name = "usersCount")]
pub users_count: i32, pub users_count: i32,
@ -19,13 +19,13 @@ pub struct Model {
#[sea_orm(column_name = "followersCount")] #[sea_orm(column_name = "followersCount")]
pub followers_count: i32, pub followers_count: i32,
#[sea_orm(column_name = "latestRequestSentAt")] #[sea_orm(column_name = "latestRequestSentAt")]
pub latest_request_sent_at: Option<DateTimeWithTimeZone>, pub latest_request_sent_at: Option<DateTime>,
#[sea_orm(column_name = "latestStatus")] #[sea_orm(column_name = "latestStatus")]
pub latest_status: Option<i32>, pub latest_status: Option<i32>,
#[sea_orm(column_name = "latestRequestReceivedAt")] #[sea_orm(column_name = "latestRequestReceivedAt")]
pub latest_request_received_at: Option<DateTimeWithTimeZone>, pub latest_request_received_at: Option<DateTime>,
#[sea_orm(column_name = "lastCommunicatedAt")] #[sea_orm(column_name = "lastCommunicatedAt")]
pub last_communicated_at: DateTimeWithTimeZone, pub last_communicated_at: DateTime,
#[sea_orm(column_name = "isNotResponding")] #[sea_orm(column_name = "isNotResponding")]
pub is_not_responding: bool, pub is_not_responding: bool,
#[sea_orm(column_name = "softwareName")] #[sea_orm(column_name = "softwareName")]
@ -41,7 +41,7 @@ pub struct Model {
#[sea_orm(column_name = "maintainerEmail")] #[sea_orm(column_name = "maintainerEmail")]
pub maintainer_email: Option<String>, pub maintainer_email: Option<String>,
#[sea_orm(column_name = "infoUpdatedAt")] #[sea_orm(column_name = "infoUpdatedAt")]
pub info_updated_at: Option<DateTimeWithTimeZone>, pub info_updated_at: Option<DateTime>,
#[sea_orm(column_name = "isSuspended")] #[sea_orm(column_name = "isSuspended")]
pub is_suspended: bool, pub is_suspended: bool,
#[sea_orm(column_name = "iconUrl")] #[sea_orm(column_name = "iconUrl")]

View file

@ -8,7 +8,7 @@ pub struct Model {
#[sea_orm(primary_key, auto_increment = false)] #[sea_orm(primary_key, auto_increment = false)]
pub id: String, pub id: String,
#[sea_orm(column_name = "createdAt")] #[sea_orm(column_name = "createdAt")]
pub created_at: DateTimeWithTimeZone, pub created_at: DateTime,
#[sea_orm(column_name = "userId")] #[sea_orm(column_name = "userId")]
pub user_id: String, pub user_id: String,
#[sea_orm(column_name = "recipientId")] #[sea_orm(column_name = "recipientId")]

View file

@ -8,7 +8,7 @@ pub struct Model {
#[sea_orm(primary_key, auto_increment = false)] #[sea_orm(primary_key, auto_increment = false)]
pub id: String, pub id: String,
#[sea_orm(column_name = "createdAt")] #[sea_orm(column_name = "createdAt")]
pub created_at: DateTimeWithTimeZone, pub created_at: DateTime,
#[sea_orm(column_name = "userId")] #[sea_orm(column_name = "userId")]
pub user_id: String, pub user_id: String,
pub r#type: String, pub r#type: String,

View file

@ -8,13 +8,13 @@ pub struct Model {
#[sea_orm(primary_key, auto_increment = false)] #[sea_orm(primary_key, auto_increment = false)]
pub id: String, pub id: String,
#[sea_orm(column_name = "createdAt")] #[sea_orm(column_name = "createdAt")]
pub created_at: DateTimeWithTimeZone, pub created_at: DateTime,
#[sea_orm(column_name = "muteeId")] #[sea_orm(column_name = "muteeId")]
pub mutee_id: String, pub mutee_id: String,
#[sea_orm(column_name = "muterId")] #[sea_orm(column_name = "muterId")]
pub muter_id: String, pub muter_id: String,
#[sea_orm(column_name = "expiresAt")] #[sea_orm(column_name = "expiresAt")]
pub expires_at: Option<DateTimeWithTimeZone>, pub expires_at: Option<DateTime>,
} }
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]

View file

@ -9,7 +9,7 @@ pub struct Model {
#[sea_orm(primary_key, auto_increment = false)] #[sea_orm(primary_key, auto_increment = false)]
pub id: String, pub id: String,
#[sea_orm(column_name = "createdAt")] #[sea_orm(column_name = "createdAt")]
pub created_at: DateTimeWithTimeZone, pub created_at: DateTime,
#[sea_orm(column_name = "replyId")] #[sea_orm(column_name = "replyId")]
pub reply_id: Option<String>, pub reply_id: Option<String>,
#[sea_orm(column_name = "renoteId")] #[sea_orm(column_name = "renoteId")]
@ -60,7 +60,7 @@ pub struct Model {
#[sea_orm(column_name = "threadId")] #[sea_orm(column_name = "threadId")]
pub thread_id: Option<String>, pub thread_id: Option<String>,
#[sea_orm(column_name = "updatedAt")] #[sea_orm(column_name = "updatedAt")]
pub updated_at: Option<DateTimeWithTimeZone>, pub updated_at: Option<DateTime>,
pub lang: Option<String>, pub lang: Option<String>,
} }

View file

@ -15,7 +15,7 @@ pub struct Model {
#[sea_orm(column_name = "fileIds")] #[sea_orm(column_name = "fileIds")]
pub file_ids: Vec<String>, pub file_ids: Vec<String>,
#[sea_orm(column_name = "updatedAt")] #[sea_orm(column_name = "updatedAt")]
pub updated_at: DateTimeWithTimeZone, pub updated_at: DateTime,
} }
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]

View file

@ -8,7 +8,7 @@ pub struct Model {
#[sea_orm(primary_key, auto_increment = false)] #[sea_orm(primary_key, auto_increment = false)]
pub id: String, pub id: String,
#[sea_orm(column_name = "createdAt")] #[sea_orm(column_name = "createdAt")]
pub created_at: DateTimeWithTimeZone, pub created_at: DateTime,
#[sea_orm(column_name = "userId")] #[sea_orm(column_name = "userId")]
pub user_id: String, pub user_id: String,
#[sea_orm(column_name = "noteId")] #[sea_orm(column_name = "noteId")]

View file

@ -8,7 +8,7 @@ pub struct Model {
#[sea_orm(primary_key, auto_increment = false)] #[sea_orm(primary_key, auto_increment = false)]
pub id: String, pub id: String,
#[sea_orm(column_name = "createdAt")] #[sea_orm(column_name = "createdAt")]
pub created_at: DateTimeWithTimeZone, pub created_at: DateTime,
#[sea_orm(column_name = "userId")] #[sea_orm(column_name = "userId")]
pub user_id: String, pub user_id: String,
#[sea_orm(column_name = "noteId")] #[sea_orm(column_name = "noteId")]

View file

@ -8,7 +8,7 @@ pub struct Model {
#[sea_orm(primary_key, auto_increment = false)] #[sea_orm(primary_key, auto_increment = false)]
pub id: String, pub id: String,
#[sea_orm(column_name = "createdAt")] #[sea_orm(column_name = "createdAt")]
pub created_at: DateTimeWithTimeZone, pub created_at: DateTime,
#[sea_orm(column_name = "userId")] #[sea_orm(column_name = "userId")]
pub user_id: String, pub user_id: String,
#[sea_orm(column_name = "threadId")] #[sea_orm(column_name = "threadId")]

View file

@ -8,7 +8,7 @@ pub struct Model {
#[sea_orm(primary_key, auto_increment = false)] #[sea_orm(primary_key, auto_increment = false)]
pub id: String, pub id: String,
#[sea_orm(column_name = "createdAt")] #[sea_orm(column_name = "createdAt")]
pub created_at: DateTimeWithTimeZone, pub created_at: DateTime,
#[sea_orm(column_name = "userId")] #[sea_orm(column_name = "userId")]
pub user_id: String, pub user_id: String,
#[sea_orm(column_name = "noteId")] #[sea_orm(column_name = "noteId")]

View file

@ -9,7 +9,7 @@ pub struct Model {
#[sea_orm(primary_key, auto_increment = false)] #[sea_orm(primary_key, auto_increment = false)]
pub id: String, pub id: String,
#[sea_orm(column_name = "createdAt")] #[sea_orm(column_name = "createdAt")]
pub created_at: DateTimeWithTimeZone, pub created_at: DateTime,
#[sea_orm(column_name = "notifieeId")] #[sea_orm(column_name = "notifieeId")]
pub notifiee_id: String, pub notifiee_id: String,
#[sea_orm(column_name = "notifierId")] #[sea_orm(column_name = "notifierId")]

View file

@ -9,9 +9,9 @@ pub struct Model {
#[sea_orm(primary_key, auto_increment = false)] #[sea_orm(primary_key, auto_increment = false)]
pub id: String, pub id: String,
#[sea_orm(column_name = "createdAt")] #[sea_orm(column_name = "createdAt")]
pub created_at: DateTimeWithTimeZone, pub created_at: DateTime,
#[sea_orm(column_name = "updatedAt")] #[sea_orm(column_name = "updatedAt")]
pub updated_at: DateTimeWithTimeZone, pub updated_at: DateTime,
pub title: String, pub title: String,
pub name: String, pub name: String,
pub summary: Option<String>, pub summary: Option<String>,

View file

@ -8,7 +8,7 @@ pub struct Model {
#[sea_orm(primary_key, auto_increment = false)] #[sea_orm(primary_key, auto_increment = false)]
pub id: String, pub id: String,
#[sea_orm(column_name = "createdAt")] #[sea_orm(column_name = "createdAt")]
pub created_at: DateTimeWithTimeZone, pub created_at: DateTime,
#[sea_orm(column_name = "userId")] #[sea_orm(column_name = "userId")]
pub user_id: String, pub user_id: String,
#[sea_orm(column_name = "pageId")] #[sea_orm(column_name = "pageId")]

View file

@ -8,7 +8,7 @@ pub struct Model {
#[sea_orm(primary_key, auto_increment = false)] #[sea_orm(primary_key, auto_increment = false)]
pub id: String, pub id: String,
#[sea_orm(column_name = "createdAt")] #[sea_orm(column_name = "createdAt")]
pub created_at: DateTimeWithTimeZone, pub created_at: DateTime,
pub token: String, pub token: String,
#[sea_orm(column_name = "userId")] #[sea_orm(column_name = "userId")]
pub user_id: String, pub user_id: String,

View file

@ -9,7 +9,7 @@ pub struct Model {
#[sea_orm(column_name = "noteId", primary_key, auto_increment = false, unique)] #[sea_orm(column_name = "noteId", primary_key, auto_increment = false, unique)]
pub note_id: String, pub note_id: String,
#[sea_orm(column_name = "expiresAt")] #[sea_orm(column_name = "expiresAt")]
pub expires_at: Option<DateTimeWithTimeZone>, pub expires_at: Option<DateTime>,
pub multiple: bool, pub multiple: bool,
pub choices: Vec<String>, pub choices: Vec<String>,
pub votes: Vec<i32>, pub votes: Vec<i32>,

View file

@ -8,7 +8,7 @@ pub struct Model {
#[sea_orm(primary_key, auto_increment = false)] #[sea_orm(primary_key, auto_increment = false)]
pub id: String, pub id: String,
#[sea_orm(column_name = "createdAt")] #[sea_orm(column_name = "createdAt")]
pub created_at: DateTimeWithTimeZone, pub created_at: DateTime,
#[sea_orm(column_name = "userId")] #[sea_orm(column_name = "userId")]
pub user_id: String, pub user_id: String,
#[sea_orm(column_name = "noteId")] #[sea_orm(column_name = "noteId")]

View file

@ -8,7 +8,7 @@ pub struct Model {
#[sea_orm(column_name = "noteId", primary_key, auto_increment = false, unique)] #[sea_orm(column_name = "noteId", primary_key, auto_increment = false, unique)]
pub note_id: String, pub note_id: String,
#[sea_orm(column_name = "expiresAt")] #[sea_orm(column_name = "expiresAt")]
pub expires_at: DateTimeWithTimeZone, pub expires_at: DateTime,
#[sea_orm(column_name = "userId")] #[sea_orm(column_name = "userId")]
pub user_id: String, pub user_id: String,
} }

View file

@ -8,7 +8,7 @@ pub struct Model {
#[sea_orm(primary_key, auto_increment = false)] #[sea_orm(primary_key, auto_increment = false)]
pub id: String, pub id: String,
#[sea_orm(column_name = "createdAt")] #[sea_orm(column_name = "createdAt")]
pub created_at: DateTimeWithTimeZone, pub created_at: DateTime,
#[sea_orm(column_name = "userId")] #[sea_orm(column_name = "userId")]
pub user_id: String, pub user_id: String,
#[sea_orm(column_name = "noteId")] #[sea_orm(column_name = "noteId")]

View file

@ -8,7 +8,7 @@ pub struct Model {
#[sea_orm(primary_key, auto_increment = false)] #[sea_orm(primary_key, auto_increment = false)]
pub id: String, pub id: String,
#[sea_orm(column_name = "createdAt")] #[sea_orm(column_name = "createdAt")]
pub created_at: DateTimeWithTimeZone, pub created_at: DateTime,
pub code: String, pub code: String,
} }

View file

@ -8,9 +8,9 @@ pub struct Model {
#[sea_orm(primary_key, auto_increment = false)] #[sea_orm(primary_key, auto_increment = false)]
pub id: String, pub id: String,
#[sea_orm(column_name = "createdAt")] #[sea_orm(column_name = "createdAt")]
pub created_at: DateTimeWithTimeZone, pub created_at: DateTime,
#[sea_orm(column_name = "updatedAt")] #[sea_orm(column_name = "updatedAt")]
pub updated_at: DateTimeWithTimeZone, pub updated_at: DateTime,
#[sea_orm(column_name = "userId")] #[sea_orm(column_name = "userId")]
pub user_id: String, pub user_id: String,
pub key: String, pub key: String,

View file

@ -8,7 +8,7 @@ pub struct Model {
#[sea_orm(primary_key, auto_increment = false)] #[sea_orm(primary_key, auto_increment = false)]
pub id: String, pub id: String,
#[sea_orm(column_name = "createdAt")] #[sea_orm(column_name = "createdAt")]
pub created_at: DateTimeWithTimeZone, pub created_at: DateTime,
#[sea_orm(column_name = "muteeId")] #[sea_orm(column_name = "muteeId")]
pub mutee_id: String, pub mutee_id: String,
#[sea_orm(column_name = "muterId")] #[sea_orm(column_name = "muterId")]

View file

@ -8,7 +8,7 @@ pub struct Model {
#[sea_orm(primary_key, auto_increment = false)] #[sea_orm(primary_key, auto_increment = false)]
pub id: String, pub id: String,
#[sea_orm(column_name = "createdAt")] #[sea_orm(column_name = "createdAt")]
pub created_at: DateTimeWithTimeZone, pub created_at: DateTime,
#[sea_orm(column_name = "muteeId")] #[sea_orm(column_name = "muteeId")]
pub mutee_id: String, pub mutee_id: String,
#[sea_orm(column_name = "muterId")] #[sea_orm(column_name = "muterId")]

View file

@ -8,7 +8,7 @@ pub struct Model {
#[sea_orm(primary_key, auto_increment = false)] #[sea_orm(primary_key, auto_increment = false)]
pub id: String, pub id: String,
#[sea_orm(column_name = "createdAt")] #[sea_orm(column_name = "createdAt")]
pub created_at: DateTimeWithTimeZone, pub created_at: DateTime,
#[sea_orm(column_name = "userId")] #[sea_orm(column_name = "userId")]
pub user_id: String, pub user_id: String,
pub ip: String, pub ip: String,

View file

@ -8,7 +8,7 @@ pub struct Model {
#[sea_orm(primary_key, auto_increment = false)] #[sea_orm(primary_key, auto_increment = false)]
pub id: String, pub id: String,
#[sea_orm(column_name = "createdAt")] #[sea_orm(column_name = "createdAt")]
pub created_at: DateTimeWithTimeZone, pub created_at: DateTime,
#[sea_orm(column_name = "userId")] #[sea_orm(column_name = "userId")]
pub user_id: String, pub user_id: String,
pub endpoint: String, pub endpoint: String,

View file

@ -8,7 +8,7 @@ pub struct Model {
#[sea_orm(primary_key, auto_increment = false)] #[sea_orm(primary_key, auto_increment = false)]
pub username: String, pub username: String,
#[sea_orm(column_name = "createdAt")] #[sea_orm(column_name = "createdAt")]
pub created_at: DateTimeWithTimeZone, pub created_at: DateTime,
} }
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]

View file

@ -9,11 +9,11 @@ pub struct Model {
#[sea_orm(primary_key, auto_increment = false)] #[sea_orm(primary_key, auto_increment = false)]
pub id: String, pub id: String,
#[sea_orm(column_name = "createdAt")] #[sea_orm(column_name = "createdAt")]
pub created_at: DateTimeWithTimeZone, pub created_at: DateTime,
#[sea_orm(column_name = "updatedAt")] #[sea_orm(column_name = "updatedAt")]
pub updated_at: Option<DateTimeWithTimeZone>, pub updated_at: Option<DateTime>,
#[sea_orm(column_name = "lastFetchedAt")] #[sea_orm(column_name = "lastFetchedAt")]
pub last_fetched_at: Option<DateTimeWithTimeZone>, pub last_fetched_at: Option<DateTime>,
pub username: String, pub username: String,
#[sea_orm(column_name = "usernameLower")] #[sea_orm(column_name = "usernameLower")]
pub username_lower: String, pub username_lower: String,
@ -57,7 +57,7 @@ pub struct Model {
#[sea_orm(column_name = "followersUri")] #[sea_orm(column_name = "followersUri")]
pub followers_uri: Option<String>, pub followers_uri: Option<String>,
#[sea_orm(column_name = "lastActiveDate")] #[sea_orm(column_name = "lastActiveDate")]
pub last_active_date: Option<DateTimeWithTimeZone>, pub last_active_date: Option<DateTime>,
#[sea_orm(column_name = "hideOnlineStatus")] #[sea_orm(column_name = "hideOnlineStatus")]
pub hide_online_status: bool, pub hide_online_status: bool,
#[sea_orm(column_name = "isDeleted")] #[sea_orm(column_name = "isDeleted")]

View file

@ -8,7 +8,7 @@ pub struct Model {
#[sea_orm(primary_key, auto_increment = false)] #[sea_orm(primary_key, auto_increment = false)]
pub id: String, pub id: String,
#[sea_orm(column_name = "createdAt")] #[sea_orm(column_name = "createdAt")]
pub created_at: DateTimeWithTimeZone, pub created_at: DateTime,
pub name: String, pub name: String,
#[sea_orm(column_name = "userId")] #[sea_orm(column_name = "userId")]
pub user_id: String, pub user_id: String,

View file

@ -8,7 +8,7 @@ pub struct Model {
#[sea_orm(primary_key, auto_increment = false)] #[sea_orm(primary_key, auto_increment = false)]
pub id: String, pub id: String,
#[sea_orm(column_name = "createdAt")] #[sea_orm(column_name = "createdAt")]
pub created_at: DateTimeWithTimeZone, pub created_at: DateTime,
#[sea_orm(column_name = "userId")] #[sea_orm(column_name = "userId")]
pub user_id: String, pub user_id: String,
#[sea_orm(column_name = "userGroupId")] #[sea_orm(column_name = "userGroupId")]

View file

@ -8,7 +8,7 @@ pub struct Model {
#[sea_orm(primary_key, auto_increment = false)] #[sea_orm(primary_key, auto_increment = false)]
pub id: String, pub id: String,
#[sea_orm(column_name = "createdAt")] #[sea_orm(column_name = "createdAt")]
pub created_at: DateTimeWithTimeZone, pub created_at: DateTime,
#[sea_orm(column_name = "userId")] #[sea_orm(column_name = "userId")]
pub user_id: String, pub user_id: String,
#[sea_orm(column_name = "userGroupId")] #[sea_orm(column_name = "userGroupId")]

View file

@ -8,7 +8,7 @@ pub struct Model {
#[sea_orm(primary_key, auto_increment = false)] #[sea_orm(primary_key, auto_increment = false)]
pub id: String, pub id: String,
#[sea_orm(column_name = "createdAt")] #[sea_orm(column_name = "createdAt")]
pub created_at: DateTimeWithTimeZone, pub created_at: DateTime,
#[sea_orm(column_name = "userId")] #[sea_orm(column_name = "userId")]
pub user_id: String, pub user_id: String,
#[sea_orm(column_name = "userGroupId")] #[sea_orm(column_name = "userGroupId")]

View file

@ -8,7 +8,7 @@ pub struct Model {
#[sea_orm(primary_key)] #[sea_orm(primary_key)]
pub id: i32, pub id: i32,
#[sea_orm(column_name = "createdAt")] #[sea_orm(column_name = "createdAt")]
pub created_at: DateTimeWithTimeZone, pub created_at: DateTime,
#[sea_orm(column_name = "userId")] #[sea_orm(column_name = "userId")]
pub user_id: String, pub user_id: String,
pub ip: String, pub ip: String,

View file

@ -8,7 +8,7 @@ pub struct Model {
#[sea_orm(primary_key, auto_increment = false)] #[sea_orm(primary_key, auto_increment = false)]
pub id: String, pub id: String,
#[sea_orm(column_name = "createdAt")] #[sea_orm(column_name = "createdAt")]
pub created_at: DateTimeWithTimeZone, pub created_at: DateTime,
#[sea_orm(column_name = "userId")] #[sea_orm(column_name = "userId")]
pub user_id: String, pub user_id: String,
pub name: String, pub name: String,

View file

@ -8,7 +8,7 @@ pub struct Model {
#[sea_orm(primary_key, auto_increment = false)] #[sea_orm(primary_key, auto_increment = false)]
pub id: String, pub id: String,
#[sea_orm(column_name = "createdAt")] #[sea_orm(column_name = "createdAt")]
pub created_at: DateTimeWithTimeZone, pub created_at: DateTime,
#[sea_orm(column_name = "userId")] #[sea_orm(column_name = "userId")]
pub user_id: String, pub user_id: String,
#[sea_orm(column_name = "userListId")] #[sea_orm(column_name = "userListId")]

View file

@ -8,7 +8,7 @@ pub struct Model {
#[sea_orm(primary_key, auto_increment = false)] #[sea_orm(primary_key, auto_increment = false)]
pub id: String, pub id: String,
#[sea_orm(column_name = "createdAt")] #[sea_orm(column_name = "createdAt")]
pub created_at: DateTimeWithTimeZone, pub created_at: DateTime,
#[sea_orm(column_name = "userId")] #[sea_orm(column_name = "userId")]
pub user_id: String, pub user_id: String,
#[sea_orm(column_name = "noteId")] #[sea_orm(column_name = "noteId")]

View file

@ -8,7 +8,7 @@ pub struct Model {
#[sea_orm(primary_key, auto_increment = false)] #[sea_orm(primary_key, auto_increment = false)]
pub id: String, pub id: String,
#[sea_orm(column_name = "createdAt")] #[sea_orm(column_name = "createdAt")]
pub created_at: DateTimeWithTimeZone, pub created_at: DateTime,
pub code: String, pub code: String,
pub username: String, pub username: String,
pub email: String, pub email: String,

View file

@ -12,7 +12,7 @@ pub struct Model {
#[sea_orm(column_name = "publicKey")] #[sea_orm(column_name = "publicKey")]
pub public_key: String, pub public_key: String,
#[sea_orm(column_name = "lastUsed")] #[sea_orm(column_name = "lastUsed")]
pub last_used: DateTimeWithTimeZone, pub last_used: DateTime,
pub name: String, pub name: String,
} }

View file

@ -8,7 +8,7 @@ pub struct Model {
#[sea_orm(primary_key, auto_increment = false)] #[sea_orm(primary_key, auto_increment = false)]
pub id: String, pub id: String,
#[sea_orm(column_name = "createdAt")] #[sea_orm(column_name = "createdAt")]
pub created_at: DateTimeWithTimeZone, pub created_at: DateTime,
#[sea_orm(column_name = "userId")] #[sea_orm(column_name = "userId")]
pub user_id: String, pub user_id: String,
pub name: String, pub name: String,
@ -17,7 +17,7 @@ pub struct Model {
pub secret: String, pub secret: String,
pub active: bool, pub active: bool,
#[sea_orm(column_name = "latestSentAt")] #[sea_orm(column_name = "latestSentAt")]
pub latest_sent_at: Option<DateTimeWithTimeZone>, pub latest_sent_at: Option<DateTime>,
#[sea_orm(column_name = "latestStatus")] #[sea_orm(column_name = "latestStatus")]
pub latest_status: Option<i32>, pub latest_status: Option<i32>,
} }

View file

@ -15,7 +15,7 @@ export class AbuseUserReport {
public id: string; public id: string;
@Index() @Index()
@Column("timestamp with time zone", { @Column("timestamp without time zone", {
comment: "The created date of the AbuseUserReport.", comment: "The created date of the AbuseUserReport.",
}) })
public createdAt: Date; public createdAt: Date;

View file

@ -15,12 +15,12 @@ export class AccessToken {
@PrimaryColumn(id()) @PrimaryColumn(id())
public id: string; public id: string;
@Column("timestamp with time zone", { @Column("timestamp without time zone", {
comment: "The created date of the AccessToken.", comment: "The created date of the AccessToken.",
}) })
public createdAt: Date; public createdAt: Date;
@Column("timestamp with time zone", { @Column("timestamp without time zone", {
nullable: true, nullable: true,
}) })
public lastUsedAt: Date | null; public lastUsedAt: Date | null;

View file

@ -7,13 +7,13 @@ export class Ad {
public id: string; public id: string;
@Index() @Index()
@Column("timestamp with time zone", { @Column("timestamp without time zone", {
comment: "The created date of the Ad.", comment: "The created date of the Ad.",
}) })
public createdAt: Date; public createdAt: Date;
@Index() @Index()
@Column("timestamp with time zone", { @Column("timestamp without time zone", {
comment: "The expired date of the Ad.", comment: "The expired date of the Ad.",
}) })
public expiresAt: Date; public expiresAt: Date;

View file

@ -16,7 +16,7 @@ export class AnnouncementRead {
@PrimaryColumn(id()) @PrimaryColumn(id())
public id: string; public id: string;
@Column("timestamp with time zone", { @Column("timestamp without time zone", {
comment: "The created date of the AnnouncementRead.", comment: "The created date of the AnnouncementRead.",
}) })
public createdAt: Date; public createdAt: Date;

View file

@ -7,12 +7,12 @@ export class Announcement {
public id: string; public id: string;
@Index() @Index()
@Column("timestamp with time zone", { @Column("timestamp without time zone", {
comment: "The created date of the Announcement.", comment: "The created date of the Announcement.",
}) })
public createdAt: Date; public createdAt: Date;
@Column("timestamp with time zone", { @Column("timestamp without time zone", {
comment: "The updated date of the Announcement.", comment: "The updated date of the Announcement.",
nullable: true, nullable: true,
}) })

View file

@ -16,7 +16,7 @@ export class Antenna {
@PrimaryColumn(id()) @PrimaryColumn(id())
public id: string; public id: string;
@Column("timestamp with time zone", { @Column("timestamp without time zone", {
comment: "The created date of the Antenna.", comment: "The created date of the Antenna.",
}) })
public createdAt: Date; public createdAt: Date;

View file

@ -8,7 +8,7 @@ export class App {
public id: string; public id: string;
@Index() @Index()
@Column("timestamp with time zone", { @Column("timestamp without time zone", {
comment: "The created date of the App.", comment: "The created date of the App.",
}) })
public createdAt: Date; public createdAt: Date;

View file

@ -31,7 +31,7 @@ export class AttestationChallenge {
}) })
public challenge: string; public challenge: string;
@Column("timestamp with time zone", { @Column("timestamp without time zone", {
comment: "The date challenge was created for expiry purposes.", comment: "The date challenge was created for expiry purposes.",
}) })
public createdAt: Date; public createdAt: Date;

View file

@ -15,7 +15,7 @@ export class AuthSession {
@PrimaryColumn(id()) @PrimaryColumn(id())
public id: string; public id: string;
@Column("timestamp with time zone", { @Column("timestamp without time zone", {
comment: "The created date of the AuthSession.", comment: "The created date of the AuthSession.",
}) })
public createdAt: Date; public createdAt: Date;

View file

@ -16,7 +16,7 @@ export class Blocking {
public id: string; public id: string;
@Index() @Index()
@Column("timestamp with time zone", { @Column("timestamp without time zone", {
comment: "The created date of the Blocking.", comment: "The created date of the Blocking.",
}) })
public createdAt: Date; public createdAt: Date;

View file

@ -17,7 +17,7 @@ export class ChannelFollowing {
public id: string; public id: string;
@Index() @Index()
@Column("timestamp with time zone", { @Column("timestamp without time zone", {
comment: "The created date of the ChannelFollowing.", comment: "The created date of the ChannelFollowing.",
}) })
public createdAt: Date; public createdAt: Date;

View file

@ -16,7 +16,7 @@ export class ChannelNotePining {
@PrimaryColumn(id()) @PrimaryColumn(id())
public id: string; public id: string;
@Column("timestamp with time zone", { @Column("timestamp without time zone", {
comment: "The created date of the ChannelNotePining.", comment: "The created date of the ChannelNotePining.",
}) })
public createdAt: Date; public createdAt: Date;

View file

@ -16,13 +16,13 @@ export class Channel {
public id: string; public id: string;
@Index() @Index()
@Column("timestamp with time zone", { @Column("timestamp without time zone", {
comment: "The created date of the Channel.", comment: "The created date of the Channel.",
}) })
public createdAt: Date; public createdAt: Date;
@Index() @Index()
@Column("timestamp with time zone", { @Column("timestamp without time zone", {
nullable: true, nullable: true,
}) })
public lastNotedAt: Date | null; public lastNotedAt: Date | null;

View file

@ -14,7 +14,7 @@ export class Clip {
@PrimaryColumn(id()) @PrimaryColumn(id())
public id: string; public id: string;
@Column("timestamp with time zone", { @Column("timestamp without time zone", {
comment: "The created date of the Clip.", comment: "The created date of the Clip.",
}) })
public createdAt: Date; public createdAt: Date;

View file

@ -18,7 +18,7 @@ export class DriveFile {
public id: string; public id: string;
@Index() @Index()
@Column("timestamp with time zone", { @Column("timestamp without time zone", {
comment: "The created date of the DriveFile.", comment: "The created date of the DriveFile.",
}) })
public createdAt: Date; public createdAt: Date;

View file

@ -15,7 +15,7 @@ export class DriveFolder {
public id: string; public id: string;
@Index() @Index()
@Column("timestamp with time zone", { @Column("timestamp without time zone", {
comment: "The created date of the DriveFolder.", comment: "The created date of the DriveFolder.",
}) })
public createdAt: Date; public createdAt: Date;

View file

@ -7,7 +7,7 @@ export class Emoji {
@PrimaryColumn(id()) @PrimaryColumn(id())
public id: string; public id: string;
@Column("timestamp with time zone", { @Column("timestamp without time zone", {
nullable: true, nullable: true,
}) })
public updatedAt: Date | null; public updatedAt: Date | null;

View file

@ -15,7 +15,7 @@ export class FollowRequest {
@PrimaryColumn(id()) @PrimaryColumn(id())
public id: string; public id: string;
@Column("timestamp with time zone", { @Column("timestamp without time zone", {
comment: "The created date of the FollowRequest.", comment: "The created date of the FollowRequest.",
}) })
public createdAt: Date; public createdAt: Date;

View file

@ -16,7 +16,7 @@ export class Following {
public id: string; public id: string;
@Index() @Index()
@Column("timestamp with time zone", { @Column("timestamp without time zone", {
comment: "The created date of the Following.", comment: "The created date of the Following.",
}) })
public createdAt: Date; public createdAt: Date;

View file

@ -16,7 +16,7 @@ export class GalleryLike {
@PrimaryColumn(id()) @PrimaryColumn(id())
public id: string; public id: string;
@Column("timestamp with time zone") @Column("timestamp without time zone")
public createdAt: Date; public createdAt: Date;
@Index() @Index()

View file

@ -16,13 +16,13 @@ export class GalleryPost {
public id: string; public id: string;
@Index() @Index()
@Column("timestamp with time zone", { @Column("timestamp without time zone", {
comment: "The created date of the GalleryPost.", comment: "The created date of the GalleryPost.",
}) })
public createdAt: Date; public createdAt: Date;
@Index() @Index()
@Column("timestamp with time zone", { @Column("timestamp without time zone", {
comment: "The updated date of the GalleryPost.", comment: "The updated date of the GalleryPost.",
}) })
public updatedAt: Date; public updatedAt: Date;

View file

@ -10,7 +10,7 @@ export class Instance {
* *
*/ */
@Index() @Index()
@Column("timestamp with time zone", { @Column("timestamp without time zone", {
comment: "The caught date of the Instance.", comment: "The caught date of the Instance.",
}) })
public caughtAt: Date; public caughtAt: Date;
@ -62,7 +62,7 @@ export class Instance {
/** /**
* *
*/ */
@Column("timestamp with time zone", { @Column("timestamp without time zone", {
nullable: true, nullable: true,
}) })
public latestRequestSentAt: Date | null; public latestRequestSentAt: Date | null;
@ -78,7 +78,7 @@ export class Instance {
/** /**
* *
*/ */
@Column("timestamp with time zone", { @Column("timestamp without time zone", {
nullable: true, nullable: true,
}) })
public latestRequestReceivedAt: Date | null; public latestRequestReceivedAt: Date | null;
@ -86,7 +86,7 @@ export class Instance {
/** /**
* *
*/ */
@Column("timestamp with time zone") @Column("timestamp without time zone")
public lastCommunicatedAt: Date; public lastCommunicatedAt: Date;
/** /**
@ -166,7 +166,7 @@ export class Instance {
}) })
public themeColor: string | null; public themeColor: string | null;
@Column("timestamp with time zone", { @Column("timestamp without time zone", {
nullable: true, nullable: true,
}) })
public infoUpdatedAt: Date | null; public infoUpdatedAt: Date | null;

View file

@ -17,7 +17,7 @@ export class MessagingMessage {
public id: string; public id: string;
@Index() @Index()
@Column("timestamp with time zone", { @Column("timestamp without time zone", {
comment: "The created date of the MessagingMessage.", comment: "The created date of the MessagingMessage.",
}) })
public createdAt: Date; public createdAt: Date;

View file

@ -14,7 +14,7 @@ export class ModerationLog {
@PrimaryColumn(id()) @PrimaryColumn(id())
public id: string; public id: string;
@Column("timestamp with time zone", { @Column("timestamp without time zone", {
comment: "The created date of the ModerationLog.", comment: "The created date of the ModerationLog.",
}) })
public createdAt: Date; public createdAt: Date;

View file

@ -16,13 +16,13 @@ export class Muting {
public id: string; public id: string;
@Index() @Index()
@Column("timestamp with time zone", { @Column("timestamp without time zone", {
comment: "The created date of the Muting.", comment: "The created date of the Muting.",
}) })
public createdAt: Date; public createdAt: Date;
@Index() @Index()
@Column("timestamp with time zone", { @Column("timestamp without time zone", {
nullable: true, nullable: true,
}) })
public expiresAt: Date | null; public expiresAt: Date | null;

View file

@ -46,7 +46,7 @@ export class NoteEdit {
}) })
public fileIds: DriveFile["id"][]; public fileIds: DriveFile["id"][];
@Column("timestamp with time zone", { @Column("timestamp without time zone", {
comment: "The updated date of the Note.", comment: "The updated date of the Note.",
}) })
public updatedAt: Date; public updatedAt: Date;

View file

@ -16,7 +16,7 @@ export class NoteFavorite {
@PrimaryColumn(id()) @PrimaryColumn(id())
public id: string; public id: string;
@Column("timestamp with time zone", { @Column("timestamp without time zone", {
comment: "The created date of the NoteFavorite.", comment: "The created date of the NoteFavorite.",
}) })
public createdAt: Date; public createdAt: Date;

View file

@ -17,7 +17,7 @@ export class NoteReaction {
public id: string; public id: string;
@Index() @Index()
@Column("timestamp with time zone", { @Column("timestamp without time zone", {
comment: "The created date of the NoteReaction.", comment: "The created date of the NoteReaction.",
}) })
public createdAt: Date; public createdAt: Date;

View file

@ -15,7 +15,7 @@ export class NoteThreadMuting {
@PrimaryColumn(id()) @PrimaryColumn(id())
public id: string; public id: string;
@Column("timestamp with time zone", {}) @Column("timestamp without time zone", {})
public createdAt: Date; public createdAt: Date;
@Index() @Index()

View file

@ -17,7 +17,7 @@ export class NoteWatching {
public id: string; public id: string;
@Index() @Index()
@Column("timestamp with time zone", { @Column("timestamp without time zone", {
comment: "The created date of the NoteWatching.", comment: "The created date of the NoteWatching.",
}) })
public createdAt: Date; public createdAt: Date;

View file

@ -21,7 +21,7 @@ export class Note {
public id: string; public id: string;
@Index() @Index()
@Column("timestamp with time zone", { @Column("timestamp without time zone", {
comment: "The created date of the Note.", comment: "The created date of the Note.",
}) })
public createdAt: Date; public createdAt: Date;
@ -258,7 +258,7 @@ export class Note {
}) })
public renoteUserHost: string | null; public renoteUserHost: string | null;
@Column("timestamp with time zone", { @Column("timestamp without time zone", {
nullable: true, nullable: true,
comment: "The updated date of the Note.", comment: "The updated date of the Note.",
}) })

View file

@ -20,7 +20,7 @@ export class Notification {
public id: string; public id: string;
@Index() @Index()
@Column("timestamp with time zone", { @Column("timestamp without time zone", {
comment: "The created date of the Notification.", comment: "The created date of the Notification.",
}) })
public createdAt: Date; public createdAt: Date;

View file

@ -16,7 +16,7 @@ export class PageLike {
@PrimaryColumn(id()) @PrimaryColumn(id())
public id: string; public id: string;
@Column("timestamp with time zone") @Column("timestamp without time zone")
public createdAt: Date; public createdAt: Date;
@Index() @Index()

View file

@ -17,13 +17,13 @@ export class Page {
public id: string; public id: string;
@Index() @Index()
@Column("timestamp with time zone", { @Column("timestamp without time zone", {
comment: "The created date of the Page.", comment: "The created date of the Page.",
}) })
public createdAt: Date; public createdAt: Date;
@Index() @Index()
@Column("timestamp with time zone", { @Column("timestamp without time zone", {
comment: "The updated date of the Page.", comment: "The updated date of the Page.",
}) })
public updatedAt: Date; public updatedAt: Date;

View file

@ -14,7 +14,7 @@ export class PasswordResetRequest {
@PrimaryColumn(id()) @PrimaryColumn(id())
public id: string; public id: string;
@Column("timestamp with time zone") @Column("timestamp without time zone")
public createdAt: Date; public createdAt: Date;
@Index({ unique: true }) @Index({ unique: true })

View file

@ -17,7 +17,7 @@ export class PollVote {
public id: string; public id: string;
@Index() @Index()
@Column("timestamp with time zone", { @Column("timestamp without time zone", {
comment: "The created date of the PollVote.", comment: "The created date of the PollVote.",
}) })
public createdAt: Date; public createdAt: Date;

View file

@ -22,7 +22,7 @@ export class Poll {
@JoinColumn() @JoinColumn()
public note: Note | null; public note: Note | null;
@Column("timestamp with time zone", { @Column("timestamp without time zone", {
nullable: true, nullable: true,
}) })
public expiresAt: Date | null; public expiresAt: Date | null;

View file

@ -21,7 +21,7 @@ export class PromoNote {
@JoinColumn() @JoinColumn()
public note: Note | null; public note: Note | null;
@Column("timestamp with time zone") @Column("timestamp without time zone")
public expiresAt: Date; public expiresAt: Date;
//#region Denormalized fields //#region Denormalized fields

View file

@ -16,7 +16,7 @@ export class PromoRead {
@PrimaryColumn(id()) @PrimaryColumn(id())
public id: string; public id: string;
@Column("timestamp with time zone", { @Column("timestamp without time zone", {
comment: "The created date of the PromoRead.", comment: "The created date of the PromoRead.",
}) })
public createdAt: Date; public createdAt: Date;

View file

@ -6,7 +6,7 @@ export class RegistrationTicket {
@PrimaryColumn(id()) @PrimaryColumn(id())
public id: string; public id: string;
@Column("timestamp with time zone") @Column("timestamp without time zone")
public createdAt: Date; public createdAt: Date;
@Index({ unique: true }) @Index({ unique: true })

Some files were not shown because too many files have changed in this diff Show more