diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-04-10 20:07:36 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-04-10 20:07:36 +0900 |
| commit | c28f4ffb3f5d67125abe3da9af60f05233f663a7 (patch) | |
| tree | 7a4af744ff75414385bea75f3494cafdacc3680b /src/models | |
| parent | Fix bug (diff) | |
| download | misskey-c28f4ffb3f5d67125abe3da9af60f05233f663a7.tar.gz misskey-c28f4ffb3f5d67125abe3da9af60f05233f663a7.tar.bz2 misskey-c28f4ffb3f5d67125abe3da9af60f05233f663a7.zip | |
Clean up
Diffstat (limited to 'src/models')
| -rw-r--r-- | src/models/entities/poll.ts | 4 | ||||
| -rw-r--r-- | src/models/entities/user-keypair.ts | 3 | ||||
| -rw-r--r-- | src/models/entities/user-profile.ts | 1 | ||||
| -rw-r--r-- | src/models/entities/user-publickey.ts | 1 |
4 files changed, 1 insertions, 8 deletions
diff --git a/src/models/entities/poll.ts b/src/models/entities/poll.ts index 204f102f51..894f07e689 100644 --- a/src/models/entities/poll.ts +++ b/src/models/entities/poll.ts @@ -6,10 +6,6 @@ import { User } from './user'; @Entity() export class Poll { @PrimaryColumn(id()) - public id: string; - - @Index({ unique: true }) - @Column(id()) public noteId: Note['id']; @OneToOne(type => Note, { diff --git a/src/models/entities/user-keypair.ts b/src/models/entities/user-keypair.ts index 9181abf8cb..808985f473 100644 --- a/src/models/entities/user-keypair.ts +++ b/src/models/entities/user-keypair.ts @@ -1,10 +1,9 @@ -import { PrimaryColumn, Entity, Index, JoinColumn, Column, OneToOne } from 'typeorm'; +import { PrimaryColumn, Entity, JoinColumn, Column, OneToOne } from 'typeorm'; import { User } from './user'; import { id } from '../id'; @Entity() export class UserKeypair { - @Index({ unique: true }) @PrimaryColumn(id()) public userId: User['id']; diff --git a/src/models/entities/user-profile.ts b/src/models/entities/user-profile.ts index 24b92231f5..421d17c59e 100644 --- a/src/models/entities/user-profile.ts +++ b/src/models/entities/user-profile.ts @@ -4,7 +4,6 @@ import { User } from './user'; @Entity() export class UserProfile { - @Index({ unique: true }) @PrimaryColumn(id()) public userId: User['id']; diff --git a/src/models/entities/user-publickey.ts b/src/models/entities/user-publickey.ts index 81c42404fa..26b694407d 100644 --- a/src/models/entities/user-publickey.ts +++ b/src/models/entities/user-publickey.ts @@ -4,7 +4,6 @@ import { id } from '../id'; @Entity() export class UserPublickey { - @Index({ unique: true }) @PrimaryColumn(id()) public userId: User['id']; |