Commit 5f903023 authored by nanahira's avatar nanahira

fix index

parent 89771501
Pipeline #14568 passed with stages
in 51 seconds
import { Entity, ManyToOne, SelectQueryBuilder, Unique } from 'typeorm'; import { Entity, Index, ManyToOne, SelectQueryBuilder, Unique } from 'typeorm';
import { Blacklist } from './blacklist.entity'; import { Blacklist } from './blacklist.entity';
import { applyQueryProperty, IdBase, NotColumn, StringColumn } from 'nicot'; import { applyQueryProperty, IdBase, NotColumn, StringColumn } from 'nicot';
@Unique(['account', 'blacklist']) @Unique(['account', 'blacklist'])
@Entity() @Entity()
export class BlacklistAccount extends IdBase() { export class BlacklistAccount extends IdBase() {
@Index()
@StringColumn(11, { @StringColumn(11, {
required: true, required: true,
description: 'QQ account number.', description: 'QQ account number.',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment