package com.huimv.admin.domain.primary;

import javax.persistence.*;
import java.io.Serializable;

@Entity
@Table(name = "sys_account")
public class SysAccountEntity implements Serializable {

    private static final long serialVersionUID = 6073065542016688601L;

    @Override
    public String toString() {
        return "SysAccountEntity{" +
                "id=" + id +
                ", accountName='" + accountName + '\'' +
                ", password='" + password + '\'' +
                ", accountStatus=" + accountStatus +
                ", remark='" + remark + '\'' +
                ", userId=" + userId +
                '}';
    }

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id", nullable = false)
    private Integer id;

    @Column(name = "account_name")
    private String accountName;

    @Column(name = "password")
    private String password;

    @Column(name = "account_status")
    private Integer accountStatus;

    @Column(name = "remark")
    private String remark;

    @Column(name = "user_id")
    private Long userId;

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

    public Integer getId() {
        return id;
    }

    public void setAccountName(String accountName) {
        this.accountName = accountName;
    }

    public String getAccountName() {
        return accountName;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPassword() {
        return password;
    }

    public void setAccountStatus(Integer accountStatus) {
        this.accountStatus = accountStatus;
    }

    public Integer getAccountStatus() {
        return accountStatus;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getRemark() {
        return remark;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

}
