fix: database problem

This commit is contained in:
아르페 2024-02-16 15:58:23 +09:00 committed by 무라쿠모
parent 5d0012ceac
commit a87776f41e
No known key found for this signature in database
GPG key ID: 139D6573F92DA9F7
7 changed files with 38 additions and 75 deletions

View file

@ -5,12 +5,16 @@
import { Entity, Column, PrimaryColumn } from 'typeorm';
import { id } from './util/id.js';
import { MiUser } from './User.js';
@Entity('auto_removal_condition')
// @Index(['userId'], { unique: true })
export class MiAutoRemovalCondition {
@PrimaryColumn(id())
public id: string;
@PrimaryColumn({
...id(),
nullable: false,
})
public userId: MiUser['id'];
@Column('bigint', {
default: 7,