-- Create table
create table t_goods_category
(
id VARCHAR2(32) not null,
pid VARCHAR2(32),
name VARCHAR2(32),
img_url VARCHAR2(100),
status VARCHAR2(1) default '0'
)
tablespace CMNT_LIFE_TICKET;
-- Add comments to the table
comment on table t_goods_category
is '商品分类';
-- Add comments to the columns
comment on column t_goods_category.id
is '主键';
comment on column t_goods_category.pid
is '父id';
comment on column t_goods_category.name
is '名称';
comment on column t_goods_category.img_url
is '图片地址';
comment on column t_goods_category.status
is '状态 0-未使用 1-使用 ';
-- Create/Recreate primary, unique and foreign key constraints
alter table t_goods_category
add constraint t_goods_category_PK primary key (ID)
using index
tablespace CMNT_LIFE_TICKET_INDEX
;