mizzkey/packages/backend/src/models/ScheduledNote.ts
mattyatea 271c872c97
expiresAt to scheduledAt
Signed-off-by: mattyatea <mattyacocacora0@gmail.com>
2023-11-14 17:27:52 +09:00

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;
}