/*
 * This file is generated by jOOQ.
 */
package com.databasir.dao.tables.pojos;


import java.io.Serializable;
import java.time.LocalDateTime;


/**
 * This class is generated by jOOQ.
 */
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class UserRolePojo implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer       id;
    private Integer       userId;
    private String        role;
    private Integer       groupId;
    private LocalDateTime createAt;

    public UserRolePojo() {}

    public UserRolePojo(UserRolePojo value) {
        this.id = value.id;
        this.userId = value.userId;
        this.role = value.role;
        this.groupId = value.groupId;
        this.createAt = value.createAt;
    }

    public UserRolePojo(
        Integer       id,
        Integer       userId,
        String        role,
        Integer       groupId,
        LocalDateTime createAt
    ) {
        this.id = id;
        this.userId = userId;
        this.role = role;
        this.groupId = groupId;
        this.createAt = createAt;
    }

    /**
     * Getter for <code>databasir.user_role.id</code>.
     */
    public Integer getId() {
        return this.id;
    }

    /**
     * Setter for <code>databasir.user_role.id</code>.
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * Getter for <code>databasir.user_role.user_id</code>.
     */
    public Integer getUserId() {
        return this.userId;
    }

    /**
     * Setter for <code>databasir.user_role.user_id</code>.
     */
    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    /**
     * Getter for <code>databasir.user_role.role</code>. SYS_OWNER, GROUP_OWNER,
     * GROUP_MEMBER
     */
    public String getRole() {
        return this.role;
    }

    /**
     * Setter for <code>databasir.user_role.role</code>. SYS_OWNER, GROUP_OWNER,
     * GROUP_MEMBER
     */
    public void setRole(String role) {
        this.role = role;
    }

    /**
     * Getter for <code>databasir.user_role.group_id</code>.
     */
    public Integer getGroupId() {
        return this.groupId;
    }

    /**
     * Setter for <code>databasir.user_role.group_id</code>.
     */
    public void setGroupId(Integer groupId) {
        this.groupId = groupId;
    }

    /**
     * Getter for <code>databasir.user_role.create_at</code>.
     */
    public LocalDateTime getCreateAt() {
        return this.createAt;
    }

    /**
     * Setter for <code>databasir.user_role.create_at</code>.
     */
    public void setCreateAt(LocalDateTime createAt) {
        this.createAt = createAt;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder("UserRolePojo (");

        sb.append(id);
        sb.append(", ").append(userId);
        sb.append(", ").append(role);
        sb.append(", ").append(groupId);
        sb.append(", ").append(createAt);

        sb.append(")");
        return sb.toString();
    }
}
