Compare commits
3 commits
d8a7c9a59c
...
5cf57bc05c
Author | SHA1 | Date | |
---|---|---|---|
|
5cf57bc05c | ||
|
f8fab95a07 | ||
|
fc4571106c |
12 changed files with 63 additions and 126 deletions
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="DataSourceManagerImpl" format="xml" multifile-model="true">
|
<component name="DataSourceManagerImpl" format="xml" multifile-model="true">
|
||||||
<data-source source="LOCAL" name="Database" uuid="5a5b8be1-080b-4129-b89d-42f1ea832b90">
|
<data-source source="LOCAL" name="nursingHome.db" uuid="5a5b8be1-080b-4129-b89d-42f1ea832b90">
|
||||||
<driver-ref>sqlite.xerial</driver-ref>
|
<driver-ref>sqlite.xerial</driver-ref>
|
||||||
<synchronize>true</synchronize>
|
<synchronize>true</synchronize>
|
||||||
<jdbc-driver>org.sqlite.JDBC</jdbc-driver>
|
<jdbc-driver>org.sqlite.JDBC</jdbc-driver>
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
<component name="SqlDialectMappings">
|
<component name="SqlDialectMappings">
|
||||||
<file url="file://$PROJECT_DIR$/src/main/java/de/hitec/nhplus/patient/database/PatientDao.java" dialect="GenericSQL" />
|
<file url="file://$PROJECT_DIR$/src/main/java/de/hitec/nhplus/patient/database/PatientDao.java" dialect="GenericSQL" />
|
||||||
<file url="file://$PROJECT_DIR$/src/main/java/de/hitec/nhplus/treatment/database/TreatmentDao.java" dialect="GenericSQL" />
|
<file url="file://$PROJECT_DIR$/src/main/java/de/hitec/nhplus/treatment/database/TreatmentDao.java" dialect="GenericSQL" />
|
||||||
<file url="file://$PROJECT_DIR$/src/main/java/de/hitec/nhplus/treatment/database/NurseDao.java" dialect="GenericSQL" />
|
|
||||||
<file url="PROJECT" dialect="SQLite" />
|
<file url="PROJECT" dialect="SQLite" />
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
Binary file not shown.
|
@ -40,14 +40,6 @@ public class NurseFixture implements Fixture<Nurse> {
|
||||||
"Armout",
|
"Armout",
|
||||||
"9876543210"
|
"9876543210"
|
||||||
));
|
));
|
||||||
|
|
||||||
nurses.add(new Nurse(
|
|
||||||
"Björnd",
|
|
||||||
"Heideberger",
|
|
||||||
"69420",
|
|
||||||
true
|
|
||||||
));
|
|
||||||
|
|
||||||
NurseDao dao = DaoFactory.getInstance().createNurseDAO();
|
NurseDao dao = DaoFactory.getInstance().createNurseDAO();
|
||||||
for (Nurse nurse : nurses) {
|
for (Nurse nurse : nurses) {
|
||||||
dao.create(nurse);
|
dao.create(nurse);
|
||||||
|
|
|
@ -3,7 +3,6 @@ package de.hitec.nhplus.main;
|
||||||
import de.hitec.nhplus.Main;
|
import de.hitec.nhplus.Main;
|
||||||
import javafx.fxml.FXML;
|
import javafx.fxml.FXML;
|
||||||
import javafx.fxml.FXMLLoader;
|
import javafx.fxml.FXMLLoader;
|
||||||
import javafx.scene.control.SelectionModel;
|
|
||||||
import javafx.scene.control.Tab;
|
import javafx.scene.control.Tab;
|
||||||
import javafx.scene.control.TabPane;
|
import javafx.scene.control.TabPane;
|
||||||
import javafx.scene.layout.AnchorPane;
|
import javafx.scene.layout.AnchorPane;
|
||||||
|
@ -24,30 +23,30 @@ public class MainWindowController {
|
||||||
@FXML
|
@FXML
|
||||||
private Tab treatmentTab;
|
private Tab treatmentTab;
|
||||||
@FXML
|
@FXML
|
||||||
private Tab nurseTab;
|
|
||||||
@FXML
|
|
||||||
private TabPane nurseTabPane;
|
private TabPane nurseTabPane;
|
||||||
@FXML
|
@FXML
|
||||||
private AnchorPane activeNursePage;
|
private AnchorPane nursePage;
|
||||||
@FXML
|
@FXML
|
||||||
private Tab activeNurseTab;
|
private Tab nurseTab;
|
||||||
@FXML
|
@FXML
|
||||||
private AnchorPane lockedNursePage;
|
private AnchorPane lockedNursePage;
|
||||||
@FXML
|
@FXML
|
||||||
private Tab lockedNurseTab;
|
private Tab lockedNurseTab;
|
||||||
|
@FXML
|
||||||
|
private AnchorPane activeNursePage;
|
||||||
|
@FXML
|
||||||
|
private Tab activeNurseTab;
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
public void initialize() {
|
public void initialize() {
|
||||||
loadPatientPage();
|
loadPatientPage();
|
||||||
mainTabPane.getSelectionModel().select(patientTab);
|
mainTabPane.getSelectionModel().select(patientTab);
|
||||||
|
nurseTabPane.getSelectionModel().select(activeNurseTab);
|
||||||
|
|
||||||
patientTab.setOnSelectionChanged(event -> loadPatientPage());
|
patientTab.setOnSelectionChanged(event -> loadPatientPage());
|
||||||
treatmentTab.setOnSelectionChanged(event -> loadTreatmentsPage());
|
treatmentTab.setOnSelectionChanged(event -> loadTreatmentsPage());
|
||||||
nurseTab.setOnSelectionChanged(event -> loadNursePage());
|
nurseTab.setOnSelectionChanged(event -> loadNursePage());
|
||||||
|
|
||||||
|
|
||||||
nurseTabPane.getSelectionModel().select(activeNurseTab);
|
|
||||||
|
|
||||||
activeNurseTab.setOnSelectionChanged(event -> loadActiveNursePage());
|
activeNurseTab.setOnSelectionChanged(event -> loadActiveNursePage());
|
||||||
lockedNurseTab.setOnSelectionChanged(event -> loadLockedNursePage());
|
lockedNurseTab.setOnSelectionChanged(event -> loadLockedNursePage());
|
||||||
}
|
}
|
||||||
|
@ -83,18 +82,15 @@ public class MainWindowController {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void loadNursePage() {
|
private void loadNursePage() {
|
||||||
SelectionModel<Tab> selectionModel = nurseTabPane.getSelectionModel();
|
try {
|
||||||
Tab selectedTab = selectionModel.getSelectedItem();
|
nurseTabPane.getSelectionModel().select(activeNurseTab);
|
||||||
if(selectedTab == activeNurseTab){
|
|
||||||
loadActiveNursePage();
|
loadActiveNursePage();
|
||||||
}
|
} catch (Exception exception) {
|
||||||
if(selectedTab == lockedNurseTab){
|
exception.printStackTrace();
|
||||||
loadLockedNursePage();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void loadActiveNursePage() {
|
private void loadActiveNursePage() {
|
||||||
System.out.println("TODO: Active Nurse");
|
|
||||||
try {
|
try {
|
||||||
BorderPane activeNursePane = FXMLLoader.load(
|
BorderPane activeNursePane = FXMLLoader.load(
|
||||||
Objects.requireNonNull(Main.class.getResource("/de/hitec/nhplus/nurse/AllNurseView.fxml"))
|
Objects.requireNonNull(Main.class.getResource("/de/hitec/nhplus/nurse/AllNurseView.fxml"))
|
||||||
|
@ -110,7 +106,6 @@ public class MainWindowController {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void loadLockedNursePage() {
|
private void loadLockedNursePage() {
|
||||||
System.out.println("TODO: Locked Nurse");
|
|
||||||
try {
|
try {
|
||||||
BorderPane lockedNursePane = FXMLLoader.load(
|
BorderPane lockedNursePane = FXMLLoader.load(
|
||||||
Objects.requireNonNull(Main.class.getResource("/de/hitec/nhplus/nurse/LockedNurseView.fxml"))
|
Objects.requireNonNull(Main.class.getResource("/de/hitec/nhplus/nurse/LockedNurseView.fxml"))
|
||||||
|
|
|
@ -78,7 +78,7 @@ public class AllNurseController {
|
||||||
this.nurses.clear();
|
this.nurses.clear();
|
||||||
this.dao = DaoFactory.getInstance().createNurseDAO();
|
this.dao = DaoFactory.getInstance().createNurseDAO();
|
||||||
try {
|
try {
|
||||||
this.nurses.addAll(this.dao.readAllActive());
|
this.nurses.addAll(this.dao.readAll());
|
||||||
}catch (SQLException exception){
|
}catch (SQLException exception){
|
||||||
exception.printStackTrace();
|
exception.printStackTrace();
|
||||||
}
|
}
|
||||||
|
@ -100,17 +100,14 @@ public class AllNurseController {
|
||||||
@FXML
|
@FXML
|
||||||
public void handleLock(){
|
public void handleLock(){
|
||||||
Nurse selectedItem = this.tableView.getSelectionModel().getSelectedItem();
|
Nurse selectedItem = this.tableView.getSelectionModel().getSelectedItem();
|
||||||
if (selectedItem == null){
|
if (selectedItem != null){
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
selectedItem.setLocked(true);
|
DaoFactory.getInstance().createNurseDAO().delete(selectedItem.getId());
|
||||||
this.dao.update(selectedItem);
|
this.tableView.getItems().remove(selectedItem);
|
||||||
}catch (SQLException exception){
|
}catch (SQLException exception){
|
||||||
exception.printStackTrace();
|
exception.printStackTrace();
|
||||||
}
|
}
|
||||||
readAllAndShowInTableView();
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void clearTextfields() {
|
private void clearTextfields() {
|
||||||
|
|
|
@ -37,8 +37,6 @@ public class LockedNurseController {
|
||||||
private NurseDao dao;
|
private NurseDao dao;
|
||||||
|
|
||||||
public void initialize(){
|
public void initialize(){
|
||||||
this.readAllAndShowInTableView();
|
|
||||||
|
|
||||||
this.columnId.setCellValueFactory(new PropertyValueFactory<>("id"));
|
this.columnId.setCellValueFactory(new PropertyValueFactory<>("id"));
|
||||||
|
|
||||||
this.columnFirstName.setCellValueFactory(new PropertyValueFactory<>("firstName"));
|
this.columnFirstName.setCellValueFactory(new PropertyValueFactory<>("firstName"));
|
||||||
|
@ -50,47 +48,32 @@ public class LockedNurseController {
|
||||||
this.columnDeleteDate.setCellValueFactory(new PropertyValueFactory<>("date"));
|
this.columnDeleteDate.setCellValueFactory(new PropertyValueFactory<>("date"));
|
||||||
this.columnDeleteDate.setCellFactory(TextFieldTableCell.forTableColumn());
|
this.columnDeleteDate.setCellFactory(TextFieldTableCell.forTableColumn());
|
||||||
|
|
||||||
this.tableView.setItems(this.nurses);
|
// this.tableView.setItems(this.nurses);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void readAllAndShowInTableView() {
|
|
||||||
this.nurses.clear();
|
|
||||||
this.dao = DaoFactory.getInstance().createNurseDAO();
|
|
||||||
try {
|
|
||||||
this.nurses.addAll(this.dao.readAllLocked());
|
|
||||||
} catch (SQLException exception) {
|
|
||||||
exception.printStackTrace();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
public void handleDelete(){
|
public void handleDelete(){
|
||||||
Nurse selectedItem = this.tableView.getSelectionModel().getSelectedItem();
|
Nurse selectedItem = this.tableView.getSelectionModel().getSelectedItem();
|
||||||
if (selectedItem == null) {
|
if (selectedItem != null){
|
||||||
return;
|
|
||||||
}
|
|
||||||
try {
|
try {
|
||||||
this.dao.delete(selectedItem.getId());
|
DaoFactory.getInstance().createNurseDAO().delete(selectedItem.getId());
|
||||||
|
this.tableView.getItems().remove(selectedItem);
|
||||||
}catch (SQLException exception){
|
}catch (SQLException exception){
|
||||||
exception.printStackTrace();
|
exception.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
@FXML
|
@FXML
|
||||||
public void changeUnlock() {
|
public void changeLockStatus(){
|
||||||
Nurse selectedItem = this.tableView.getSelectionModel().getSelectedItem();
|
Nurse selectedItem = this.tableView.getSelectionModel().getSelectedItem();
|
||||||
if (selectedItem == null) {
|
if ( !selectedItem.getisLocked()){
|
||||||
return;
|
selectedItem.setLocked(true);
|
||||||
}
|
} else if (selectedItem.getisLocked()) {
|
||||||
|
|
||||||
try {
|
|
||||||
selectedItem.setLocked(false);
|
selectedItem.setLocked(false);
|
||||||
this.dao.update(selectedItem);
|
|
||||||
} catch (SQLException exception) {
|
|
||||||
exception.printStackTrace();
|
|
||||||
}
|
}
|
||||||
readAllAndShowInTableView();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,7 @@ import java.util.StringJoiner;
|
||||||
public class Nurse extends Person {
|
public class Nurse extends Person {
|
||||||
private SimpleIntegerProperty id;
|
private SimpleIntegerProperty id;
|
||||||
private final SimpleStringProperty phoneNumber;
|
private final SimpleStringProperty phoneNumber;
|
||||||
private final SimpleBooleanProperty locked;
|
private boolean isLocked;
|
||||||
|
|
||||||
|
|
||||||
public Nurse(
|
public Nurse(
|
||||||
|
@ -20,30 +20,19 @@ public class Nurse extends Person {
|
||||||
) {
|
) {
|
||||||
super(firstName, surName);
|
super(firstName, surName);
|
||||||
this.phoneNumber = new SimpleStringProperty(phoneNumber);
|
this.phoneNumber = new SimpleStringProperty(phoneNumber);
|
||||||
this.locked = new SimpleBooleanProperty(false);
|
this.isLocked = false;
|
||||||
}
|
|
||||||
public Nurse(
|
|
||||||
String firstName,
|
|
||||||
String surName,
|
|
||||||
String phoneNumber,
|
|
||||||
Boolean isLocked
|
|
||||||
) {
|
|
||||||
super(firstName, surName);
|
|
||||||
this.phoneNumber = new SimpleStringProperty(phoneNumber);
|
|
||||||
this.locked = new SimpleBooleanProperty(isLocked);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public Nurse(
|
public Nurse(
|
||||||
int id,
|
int id,
|
||||||
String firstName,
|
String firstName,
|
||||||
String surName,
|
String surName,
|
||||||
String phoneNumber,
|
String phoneNumber
|
||||||
Boolean isLocked
|
|
||||||
) {
|
) {
|
||||||
super(firstName, surName);
|
super(firstName, surName);
|
||||||
this.id = new SimpleIntegerProperty(id);
|
this.id = new SimpleIntegerProperty(id);
|
||||||
this.phoneNumber = new SimpleStringProperty(phoneNumber);
|
this.phoneNumber = new SimpleStringProperty(phoneNumber);
|
||||||
this.locked = new SimpleBooleanProperty(isLocked);
|
this.isLocked = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPhoneNumber(String phoneNumber) {
|
public void setPhoneNumber(String phoneNumber) {
|
||||||
|
@ -65,20 +54,16 @@ public class Nurse extends Person {
|
||||||
public SimpleStringProperty phoneNumberProperty() {
|
public SimpleStringProperty phoneNumberProperty() {
|
||||||
return phoneNumber;
|
return phoneNumber;
|
||||||
}
|
}
|
||||||
|
public boolean getisLocked() {
|
||||||
|
return isLocked;
|
||||||
public boolean isLocked() {
|
|
||||||
return locked.get();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public SimpleBooleanProperty lockedProperty() {
|
|
||||||
return locked;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setLocked(boolean locked) {
|
public void setLocked(boolean locked) {
|
||||||
this.locked.set(locked);
|
isLocked = locked;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return new StringJoiner(System.lineSeparator())
|
return new StringJoiner(System.lineSeparator())
|
||||||
|
|
|
@ -19,14 +19,13 @@ public class NurseDao extends DaoImp<Nurse> {
|
||||||
protected PreparedStatement getCreateStatement(Nurse nurse) throws SQLException {
|
protected PreparedStatement getCreateStatement(Nurse nurse) throws SQLException {
|
||||||
final String SQL = """
|
final String SQL = """
|
||||||
INSERT INTO nurse
|
INSERT INTO nurse
|
||||||
(firstName, surName, phoneNumber, isLocked)
|
(firstName, surName, phoneNumber)
|
||||||
VALUES (?, ?, ?, ?)
|
VALUES (?, ?, ?)
|
||||||
""";
|
""";
|
||||||
PreparedStatement statement = this.connection.prepareStatement(SQL);
|
PreparedStatement statement = this.connection.prepareStatement(SQL);
|
||||||
statement.setString(1, nurse.getFirstName());
|
statement.setString(1, nurse.getFirstName());
|
||||||
statement.setString(2, nurse.getSurName());
|
statement.setString(2, nurse.getSurName());
|
||||||
statement.setString(3, nurse.getPhoneNumber());
|
statement.setString(3, nurse.getPhoneNumber());
|
||||||
statement.setBoolean(4, nurse.isLocked());
|
|
||||||
return statement;
|
return statement;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -44,8 +43,7 @@ public class NurseDao extends DaoImp<Nurse> {
|
||||||
result.getInt(1),
|
result.getInt(1),
|
||||||
result.getString(2),
|
result.getString(2),
|
||||||
result.getString(3),
|
result.getString(3),
|
||||||
result.getString(4),
|
result.getString(4)
|
||||||
result.getBoolean(5)
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -64,32 +62,20 @@ public class NurseDao extends DaoImp<Nurse> {
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<Nurse> readAllActive() throws SQLException {
|
|
||||||
final String SQL = "SELECT * FROM nurse WHERE isLocked=false";
|
|
||||||
return getListFromResultSet(this.connection.prepareStatement(SQL).executeQuery());
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<Nurse> readAllLocked() throws SQLException {
|
|
||||||
final String SQL = "SELECT * FROM nurse WHERE isLocked=true";
|
|
||||||
return getListFromResultSet(this.connection.prepareStatement(SQL).executeQuery());
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected PreparedStatement getUpdateStatement(Nurse nurse) throws SQLException {
|
protected PreparedStatement getUpdateStatement(Nurse nurse) throws SQLException {
|
||||||
final String SQL = """
|
final String SQL = """
|
||||||
UPDATE nurse SET
|
UPDATE nurse SET
|
||||||
firstName = ?,
|
firstName = ?,
|
||||||
surName = ?,
|
surName = ?,
|
||||||
phoneNumber = ?,
|
phoneNumber = ?
|
||||||
isLocked = ?
|
|
||||||
WHERE id = ?
|
WHERE id = ?
|
||||||
""";
|
""";
|
||||||
PreparedStatement statement = this.connection.prepareStatement(SQL);
|
PreparedStatement statement = this.connection.prepareStatement(SQL);
|
||||||
statement.setString(1, nurse.getFirstName());
|
statement.setString(1, nurse.getFirstName());
|
||||||
statement.setString(2, nurse.getSurName());
|
statement.setString(2, nurse.getSurName());
|
||||||
statement.setString(3, nurse.getPhoneNumber());
|
statement.setString(3, nurse.getPhoneNumber());
|
||||||
statement.setBoolean(4, nurse.isLocked());
|
statement.setInt(4, nurse.getId());
|
||||||
statement.setInt(5, nurse.getId());
|
|
||||||
return statement;
|
return statement;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -17,11 +17,11 @@
|
||||||
<AnchorPane fx:id="treatmentPage"/>
|
<AnchorPane fx:id="treatmentPage"/>
|
||||||
</Tab>
|
</Tab>
|
||||||
<Tab fx:id="nurseTab" text="Pfleger">
|
<Tab fx:id="nurseTab" text="Pfleger">
|
||||||
<TabPane fx:id="nurseTabPane" tabClosingPolicy="UNAVAILABLE">
|
<TabPane fx:id="nurseTabPane">
|
||||||
<Tab fx:id="activeNurseTab" text="Pfleger">
|
<Tab fx:id="activeNurseTab" text="Pfleger">
|
||||||
<AnchorPane fx:id="activeNursePage"/>
|
<AnchorPane fx:id="activeNursePage"/>
|
||||||
</Tab>
|
</Tab>
|
||||||
<Tab fx:id="lockedNurseTab" text="Gesperrte Pfleger">
|
<Tab fx:id="lockedNurseTab" text="Gesperrt">
|
||||||
<AnchorPane fx:id="lockedNursePage"/>
|
<AnchorPane fx:id="lockedNursePage"/>
|
||||||
</Tab>
|
</Tab>
|
||||||
</TabPane>
|
</TabPane>
|
||||||
|
|
|
@ -56,13 +56,7 @@
|
||||||
<right>
|
<right>
|
||||||
<HBox>
|
<HBox>
|
||||||
<spacing>8.0</spacing>
|
<spacing>8.0</spacing>
|
||||||
<Button
|
|
||||||
fx:id="buttonUnlock"
|
|
||||||
mnemonicParsing="false"
|
|
||||||
onAction="#changeUnlock"
|
|
||||||
prefWidth="90.0"
|
|
||||||
text="Entsperren"
|
|
||||||
/>
|
|
||||||
<Button
|
<Button
|
||||||
fx:id="buttonDelete"
|
fx:id="buttonDelete"
|
||||||
mnemonicParsing="false"
|
mnemonicParsing="false"
|
||||||
|
@ -70,6 +64,13 @@
|
||||||
prefWidth="90.0"
|
prefWidth="90.0"
|
||||||
text="Löschen"
|
text="Löschen"
|
||||||
/>
|
/>
|
||||||
|
<Button
|
||||||
|
fx:id="buttonUnlock"
|
||||||
|
mnemonicParsing="false"
|
||||||
|
onAction="#changeLockStatus"
|
||||||
|
prefWidth="90.0"
|
||||||
|
text="Entsperren"
|
||||||
|
/>
|
||||||
</HBox>
|
</HBox>
|
||||||
</right>
|
</right>
|
||||||
</BorderPane>
|
</BorderPane>
|
||||||
|
|
|
@ -3,6 +3,5 @@ CREATE TABLE nurse
|
||||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||||
firstName TEXT NOT NULL,
|
firstName TEXT NOT NULL,
|
||||||
surName TEXT NOT NULL,
|
surName TEXT NOT NULL,
|
||||||
phoneNumber TEXT NOT NULL,
|
phoneNumber TEXT NOT NULL
|
||||||
isLocked BOOLEAN NOT NULL DEFAULT false
|
|
||||||
)
|
)
|
Loading…
Reference in a new issue