CREATE TABLE bookcatalog (
bookid VARCHAR(10) NOT NULL PRIMARY KEY UNIQUE,
title TEXT,
author TEXT,
translator TEXT,
publisher TEXT,
publicationdate DATE,
code VARCHAR(17),
status TEXT,
keyword TEXT,
memo TEXT,
datacreator VARCHAR(10),
datacreateddate DATETIME NOT NULL );
CREATE TABLE takeoutrecords (
bookid VARCHAR(10) NOT NULL,
userid VARCHAR(10) NOT NULL,
takeoutdate DATETIME,
returndate DATETIME ); |