Skip to content

Instantly share code, notes, and snippets.

@oleersoy
Created March 30, 2019 23:10
Show Gist options
  • Select an option

  • Save oleersoy/21bb6d6f0c4dd284ca9bf6c983b659a7 to your computer and use it in GitHub Desktop.

Select an option

Save oleersoy/21bb6d6f0c4dd284ca9bf6c983b659a7 to your computer and use it in GitHub Desktop.
class User {
id:number;
name: string;
groups:Group[];
constructor(name:string) {this.name = name}
}
class Group {
id:number;
name: string;
users:User[];
constructor(name:string) {this.name=name}
}
class UserInGroup {
id?: number;
userId: number;
groupId: number;
constructor() {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment