/**
 * Copyright (C) 2015 The Gravitee team (http://gravitee.io)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package io.gravitee.repository.model;

/**
 * @author David BRASSELY (brasseld at gmail.com)
 */
public class Member {

	/**
	 * The name of user member
	 */
    private String username;

    /**
     * The role give to the user
     */
    private TeamRole role;

    public TeamRole getRole() {
        return role;
    }

    public void setRole(TeamRole role) {
        this.role = role;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }
}

@@ -663,16 +663,40 @@
 model;%0A%0A
+import java.util.Date;%0A%0A
 /**%0A * @
@@ -909,24 +909,190 @@
 Role role;%0A%0A
+    /**%0A     * The membership creation date%0A     */%0A    private Date createdAt;%0A%0A    /**%0A     * The membership last updated date%0A     */%0A    private Date updatedAt;%0A%0A
     public T
@@ -1322,24 +1322,24 @@
 username) %7B%0A
-
         this
@@ -1365,11 +1365,323 @@
 e;%0A    %7D
+%0A%0A    public Date getCreatedAt() %7B%0A        return createdAt;%0A    %7D%0A%0A    public void setCreatedAt(Date createdAt) %7B%0A        this.createdAt = createdAt;%0A    %7D%0A%0A    public Date getUpdatedAt() %7B%0A        return updatedAt;%0A    %7D%0A%0A    public void setUpdatedAt(Date updatedAt) %7B%0A        this.updatedAt = updatedAt;%0A    %7D
 %0A%7D%0A

Add created_at and updated_at fields