@@ -0,0 +1,2090 @@
+/*%0A * Licensed to Jasig under one or more contributor license%0A * agreements. See the NOTICE file distributed with this work%0A * for additional information regarding copyright ownership.%0A * Jasig licenses this file to you under the Apache License,%0A * Version 2.0 (the %22License%22); you may not use this file%0A * except in compliance with the License.  You may obtain a%0A * copy of the License at the following location:%0A *%0A *   http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing,%0A * software distributed under the License is distributed on an%0A * %22AS IS%22 BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY%0A * KIND, either express or implied.  See the License for the%0A * specific language governing permissions and limitations%0A * under the License.%0A */%0A%0Apackage io.cos.cas.adaptors.postgres.models;%0A%0Aimport javax.persistence.Column;%0Aimport javax.persistence.Entity;%0Aimport javax.persistence.Id;%0Aimport javax.persistence.Table;%0A%0A/**%0A * The M2M Relationship between OSF API OAuth2 %22Personal Access Token%22 and %22Scope%22.%0A *%0A * @author Longze Chen%0A * @since 4.1.5%0A */%0A@Entity%0A@Table(name = %22osf_apioauth2personaltoken_scopes%22)%0Apublic class OpenScienceFrameworkApiOauth2TokenScope %7B%0A%0A    /** The Primary Key. */%0A    @Id%0A    @Column(name = %22id%22, nullable = false)%0A    private Integer id;%0A%0A    /** The Primary Key of the Personal Access Token Object. */%0A    @Column(name = %22apioauth2personaltoken_id%22, nullable = false)%0A    private Integer tokenGuid;%0A%0A    /** The Primary Key of the Scope Object. */%0A    @Column(name = %22apioauth2scope_id%22, nullable = false)%0A    private Integer scopeGuid;%0A%0A    /** The Default Constructor. */%0A    public OpenScienceFrameworkApiOauth2TokenScope() %7B%7D%0A%0A    public Integer getId() %7B%0A        return id;%0A    %7D%0A%0A    public Integer getTokenGuid() %7B%0A        return tokenGuid;%0A    %7D%0A%0A    public Integer getScopeGuid() %7B%0A        return scopeGuid;%0A    %7D%0A%0A    @Override%0A    public String toString() %7B%0A        return String.format(%22OpenScienceFrameworkApiOauth2TokenScope %5BtokenGuid=%25s, scopeGuid=%25d, %5D%22, tokenGuid, scopeGuid);%0A    %7D%0A%7D%0A

Add M2M relationship between PAT and scope