271c872c97
Signed-off-by: mattyatea <mattyacocacora0@gmail.com>
28 lines
628 B
TypeScript
28 lines
628 B
TypeScript
/*
|
|
* SPDX-FileCopyrightText: syuilo and other misskey contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
import { Entity, Index, JoinColumn, Column, PrimaryColumn, ManyToOne } from 'typeorm';
|
|
import type { MiNoteCreateOption } from '@/types.js';
|
|
import { id } from './util/id.js';
|
|
import { MiUser } from './User.js';
|
|
|
|
@Entity('note_schedule')
|
|
export class MiScheduledNote {
|
|
@PrimaryColumn(id())
|
|
public id: string;
|
|
|
|
@Column('jsonb')
|
|
public note: MiNoteCreateOption;
|
|
|
|
@Index()
|
|
@Column('varchar', {
|
|
length: 260,
|
|
})
|
|
public userId: MiUser['id'];
|
|
|
|
@Column('timestamp with time zone')
|
|
public scheduledAt: Date;
|
|
}
|