You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

8 lines
383 B

-- 创建数据库
CREATE DATABASE quan_list;
-- 切换到创建的库
USE quan_list;
-- 创建券列表
CREATE TABLE quan (id INT PRIMARY KEY AUTO_INCREMENT, quan_code VARCHAR(50), quan_barcode VARCHAR(50) NOT NULL, quan_type ENUM('retail', 'ticket') NOT NULL DEFAULT 'retail', quan_level VARCHAR(1000), quan_status ENUM('free', 'used', 'bound') DEFAULT 'free', expire DATETIME);