Clean up
This commit is contained in:
parent
2a40240310
commit
c28f4ffb3f
8 changed files with 4 additions and 12 deletions
|
@ -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, {
|
||||
|
|
|
@ -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'];
|
||||
|
||||
|
|
|
@ -4,7 +4,6 @@ import { User } from './user';
|
|||
|
||||
@Entity()
|
||||
export class UserProfile {
|
||||
@Index({ unique: true })
|
||||
@PrimaryColumn(id())
|
||||
public userId: User['id'];
|
||||
|
||||
|
|
|
@ -4,7 +4,6 @@ import { id } from '../id';
|
|||
|
||||
@Entity()
|
||||
export class UserPublickey {
|
||||
@Index({ unique: true })
|
||||
@PrimaryColumn(id())
|
||||
public userId: User['id'];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue