package com.infinite.focus.server.auth;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

import org.hibernate.annotations.CreationTimestamp;

/**
 * 
 * @author Saboor
 * 
 *
 */

//Table for general users (registered under a company)
@Entity
public class School {

	// PK
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private long school_id;

	// Associated base account id
	private long account_id, district_id;

	// User demographic data
	private String school_name, address;

	private String registration_code;

	// The customers license key (paykickstart)
	private String license_key;

	public School() {
		super();
	}

	@CreationTimestamp
	public Date createdAt;

	public Date getCreatedAt() {
		return createdAt;
	}

	public void setCreatedAt(Date createdAt) {
		this.createdAt = createdAt;
	}

	public long getSchool_id() {
		return school_id;
	}

	public void setSchool_id(long school_id) {
		this.school_id = school_id;
	}

	public long getAccount_id() {
		return account_id;
	}

	public void setAccount_id(long account_id) {
		this.account_id = account_id;
	}

	public long getDistrict_id() {
		return district_id;
	}

	public void setDistrict_id(long district_id) {
		this.district_id = district_id;
	}

	public String getSchool_name() {
		return school_name;
	}

	public void setSchool_name(String school_name) {
		this.school_name = school_name;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getRegistration_code() {
		return registration_code;
	}

	public void setRegistration_code(String registration_code) {
		this.registration_code = registration_code;
	}

	public String getLicense_key() {
		return license_key;
	}

	public void setLicense_key(String license_key) {
		this.license_key = license_key;
	}
}
