Commit ef1e0e6b authored by nanahira's avatar nanahira

add unique index on group user profile

parent b2313277
Pipeline #3218 passed with stages
in 3 minutes and 49 seconds
...@@ -10,6 +10,7 @@ import { User } from './User'; ...@@ -10,6 +10,7 @@ import { User } from './User';
import { Group } from './Group'; import { Group } from './Group';
@Entity() @Entity()
@Index((profile) => [profile.user, profile.group], { unique: true })
export class GroupUserProfile extends TimeBase { export class GroupUserProfile extends TimeBase {
@PrimaryGeneratedColumn('uuid') @PrimaryGeneratedColumn('uuid')
id: string; id: string;
......
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