2023-11-06 10:15:29 +01:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: syuilo and other misskey contributors
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
*/
|
|
|
|
|
|
|
|
import { Entity, Index, JoinColumn, Column, PrimaryColumn, ManyToOne } from 'typeorm';
|
|
|
|
import { noteVisibilities } from '@/types.js';
|
|
|
|
import { MiNote } from '@/models/Note.js';
|
|
|
|
import { id } from './util/id.js';
|
|
|
|
import { MiUser } from './User.js';
|
|
|
|
import { MiChannel } from './Channel.js';
|
|
|
|
import type { MiDriveFile } from './DriveFile.js';
|
|
|
|
|
|
|
|
@Entity('note_schedule')
|
|
|
|
export class MiNoteSchedule {
|
|
|
|
@PrimaryColumn(id())
|
2023-11-08 07:33:46 +01:00
|
|
|
public id: string;
|
2023-11-06 10:15:29 +01:00
|
|
|
|
2023-11-08 07:33:46 +01:00
|
|
|
@Column('jsonb')
|
|
|
|
public note:{createdAt?: Date | undefined ; apEmojis: any[] | undefined; visibility: any; apMentions: any[] | undefined; visibleUsers: MiUser[]; channel: null | MiChannel; poll: { multiple: any; choices: any; expiresAt: Date | null } | undefined; renote: null | MiNote; localOnly: any; cw: any; apHashtags: any[] | undefined; reactionAcceptance: any; files: MiDriveFile[]; text: any; reply: null | MiNote };
|
2023-11-06 10:15:29 +01:00
|
|
|
|
2023-11-08 07:33:46 +01:00
|
|
|
@Column('varchar', {
|
|
|
|
length: 260,
|
2023-11-06 10:15:29 +01:00
|
|
|
})
|
2023-11-08 07:33:46 +01:00
|
|
|
public userId: MiUser['id'];
|
2023-11-06 10:15:29 +01:00
|
|
|
}
|