Created
March 30, 2019 23:10
-
-
Save oleersoy/21bb6d6f0c4dd284ca9bf6c983b659a7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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