Admin/system/uap.sql

(开头部分) 8KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

use uap
go

--产品表
if OBJECT_ID('ec_product') is not null drop table ec_product
go
create table ec_product
(
	 id int identity (1,1) primary key
	,code varchar(10) not null unique					--产品编号
	,name nvarchar(500) not null default('')			--产品名称
	,itype int not null references ec_prodcut_type(id)	--产品类型
	,isactive int not null default(1)					--是否上架 0:否 1:是
	,ishot int not null default(0)						--是否热销 0:否 1:是
	,isnew int not null default(0)						--是否新品 0:否 1:是
	,cost decimal(18,2) not null default(0)				--产品成本
	,sale decimal(18,2) not null default(0)				--产品售价
	,details  nvarchar(max) not null default('')		--产品详情介绍
	,specifiy nvarchar(max) not null default('')		--产品规格
	
	,img varchar(500) not null default('')				--产品主图
	,imgname nvarchar(500) not null default('')			--产品主图名称

	,createid int  not null references uap_role(id)		--创建人
	,createtime datetime not null default(getdate())	--创建时间
	,lastupid int not null references uap_role(id)		--最后修改人
	,lastuptime datetime null							--最后修改时间
)
go

--产品表轮播图
if OBJECT_ID('ec_product_carousel') is not null drop table ec_product_carousel
go
create table ec_product_carousel
(
	 id int identity (1,1) primary key
	,productid  int not null references ec_product(id)
	,name nvarchar(500) not null default('')
	,img varchar(500) not null default('')				--图片路径 
	,isactive int not null default(1)					--是否启用 0:否 1:是
	,sortby int not null default(1)

	,bak nvarchar(500) not null default('')
	,createid int  not null references uap_role(id)		--创建人
	,createtime datetime not null default(getdate())	--创建时间
)
go

--属性类型
if OBJECT_ID('ec_attr_type') is not null drop table ec_attr_type
go

create table ec_attr_type
(
	  id int identity (1,1) primary key
	,name nvarchar(255) not null default('') unique		--属性名
	,createid int  not null references uap_role(id)		--创建人
	,createtime datetime not null default(getdate())	--创建时间
)
go
后面还有 197 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。