Files
Chat2DB/document/sql/mysql.sql
2023-06-23 18:18:26 +08:00

25 lines
1.7 KiB
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

create table goods
(
id int unsigned primary key auto_increment commentid,
category_id int unsigned not null default 0 commentid,
spu_id int unsigned not null default 0 commentSPU id,
sn varchar(20) not null default comment,
name varchar(120) not null default comment,
keyword varchar(255) not null default comment,
picture varchar(255) not null default comment,
tips varchar(255) not null default comment,
description varchar(255) not null default comment,
content text not null comment,
price decimal(10, 2) unsigned not null default 0 comment ,
stock int unsigned not null default 0 comment ,
score decimal(3, 2) unsigned not null default 0 comment,
is_on_sale tinyint unsigned not null default 0 comment,
is_del tinyint unsigned not null default 0 comment,
is_free_shipping tinyint unsigned not null default 0 comment,
sell_count int unsigned not null default 0 comment,
comment int unsigned not null default 0 comment,
on_sale_time datetime default null comment,
create_time datetime not null default current_timestamp comment,
update_time datetime default null comment
);