isbn-sort/isbn_sort/schema.sql

17 lines
372 B
MySQL
Raw Permalink Normal View History

2024-04-03 16:54:54 +02:00
DROP TABLE IF EXISTS book;
DROP TABLE IF EXISTS user;
2024-04-03 16:54:54 +02:00
CREATE TABLE book (
isbn INT PRIMARY KEY,
title TEXT,
author TEXT,
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
);