2024-04-03 16:54:54 +02:00
|
|
|
DROP TABLE IF EXISTS book;
|
2024-11-01 21:55:45 +01:00
|
|
|
DROP TABLE IF EXISTS user;
|
2024-04-03 16:54:54 +02:00
|
|
|
|
|
|
|
CREATE TABLE book (
|
|
|
|
isbn INT PRIMARY KEY,
|
|
|
|
title TEXT,
|
|
|
|
author TEXT,
|
2024-11-01 21:55:45 +01:00
|
|
|
status_ INT DEFAULT 0, -- 0: A lire, 1: Commence, 2: Lu
|
|
|
|
owner_ TEXT DEFAULT '',
|
|
|
|
category TEXT DEFAULT ''
|
|
|
|
);
|
|
|
|
|
|
|
|
CREATE TABLE user (
|
|
|
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
|
|
username TEXT UNIQUE NOT NULL,
|
|
|
|
password TEXT NOT NULL
|
2024-04-03 16:54:54 +02:00
|
|
|
);
|