updated scheme and created mock data script
This commit is contained in:
@@ -29,6 +29,7 @@ CREATE TABLE loans (
|
||||
deleted bool NOT NULL DEFAULT false,
|
||||
note varchar(500) DEFAULT NULL,
|
||||
PRIMARY KEY (id),
|
||||
FOREIGN KEY (username) REFERENCES users(username),
|
||||
CHECK (loan_code REGEXP '^[0-9]{6}$')
|
||||
) ENGINE=InnoDB;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user