1 Star 0 Fork 0

fanyachao/IT_system_go_vue

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
数据库脚本.TXT 2.38 KB
一键复制 编辑 原始数据 按行查看 历史
fanyachao 提交于 2022-05-02 10:56 . 数据库脚本
-- Table: public.users
-- DROP TABLE public.users;
CREATE TABLE public.users
(
username character varying(20) COLLATE pg_catalog."default" NOT NULL,
u_password character varying(20) COLLATE pg_catalog."default" NOT NULL,
CONSTRAINT users_pkey PRIMARY KEY (username)
)
TABLESPACE pg_default;
ALTER TABLE public.users
OWNER to postgres;
////////////////////////////////////////////////////
-- Table: public.member
-- DROP TABLE public.member;
CREATE TABLE public.member
(
memberid character(20) COLLATE pg_catalog."default" NOT NULL,
membername character(20) COLLATE pg_catalog."default" NOT NULL,
memberphone character(20) COLLATE pg_catalog."default",
CONSTRAINT member_pkey PRIMARY KEY (memberid)
)
TABLESPACE pg_default;
ALTER TABLE public.member
OWNER to postgres;
////////////////////////////////////////////////
-- Table: public.commodity
-- DROP TABLE public.commodity;
CREATE TABLE public.commodity
(
comid character(20) COLLATE pg_catalog."default" NOT NULL,
comname character(20) COLLATE pg_catalog."default",
comprice integer,
CONSTRAINT commodity_pkey PRIMARY KEY (comid)
)
TABLESPACE pg_default;
ALTER TABLE public.commodity
OWNER to postgres;
//////////////////////////////////////////////////
-- Table: public.pet
-- DROP TABLE public.pet;
CREATE TABLE public.pet
(
petid character(20) COLLATE pg_catalog."default" NOT NULL,
petname character(20) COLLATE pg_catalog."default" NOT NULL,
petvar character(20) COLLATE pg_catalog."default",
petage integer,
petmemid character(20) COLLATE pg_catalog."default",
petremark character(20) COLLATE pg_catalog."default",
CONSTRAINT pet_pkey PRIMARY KEY (petid),
CONSTRAINT pet_petmemid_fkey FOREIGN KEY (petmemid)
)
TABLESPACE pg_default;
ALTER TABLE public.pet
OWNER to postgres;
///////////////////////////////////////////////////////////
-- Table: public.spend
-- DROP TABLE public.spend;
CREATE TABLE public.spend
(
specomid character(20) COLLATE pg_catalog."default" NOT NULL,
spepetid character(20) COLLATE pg_catalog."default" NOT NULL,
spenum integer,
speunit integer,
spetotal integer,
CONSTRAINT spend_pkey PRIMARY KEY (specomid, spepetid),
CONSTRAINT spend_specomid_fkey FOREIGN KEY (specomid)
CONSTRAINT spend_spepetid_fkey FOREIGN KEY (spepetid)
)
TABLESPACE pg_default;
ALTER TABLE public.spend
OWNER to postgres;
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/fan_ya_chao/it_system_go_vue.git
git@gitee.com:fan_ya_chao/it_system_go_vue.git
fan_ya_chao
it_system_go_vue
IT_system_go_vue
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385