package common.model;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import java.util.Date;


@Entity
public class Auth {

	private Long id;
	private Long user;
	private String auth;

	private String authExtend;

	private Long modifyAccount;
	private Long createAccount;
	private Date modifyTime;
	private Date createTime;
	private Boolean delFlag;

	@Id
	@GeneratedValue
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getUser() {
		return user;
	}

	public void setUser(Long user) {
		this.user = user;
	}

	public String getAuth() {
		return auth;
	}

	public void setAuth(String auth) {
		this.auth = auth;
	}

	public String getAuthExtend() {
		return authExtend;
	}

	public void setAuthExtend(String authExtend) {
		this.authExtend = authExtend;
	}

	public Long getModifyAccount() {
		return modifyAccount;
	}

	public void setModifyAccount(Long modifyAccount) {
		this.modifyAccount = modifyAccount;
	}

	public Long getCreateAccount() {
		return createAccount;
	}

	public void setCreateAccount(Long createAccount) {
		this.createAccount = createAccount;
	}

	public Date getModifyTime() {
		return modifyTime;
	}

	public void setModifyTime(Date modifyTime) {
		this.modifyTime = modifyTime;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Boolean getDelFlag() {
		return delFlag;
	}

	public void setDelFlag(Boolean delFlag) {
		this.delFlag = delFlag;
	}

	@Override
	public String toString() {
		return "Auth{" +
				"id=" + id +
				", user=" + user +
				", auth='" + auth + '\'' +
				", modifyAccount=" + modifyAccount +
				", createAccount=" + createAccount +
				", modifyTime=" + modifyTime +
				", createTime=" + createTime +
				", delFlag=" + delFlag +
				'}';
	}
}
