/*
Navicat Premium Data Transfer
Source Server Type : PostgreSQL
Source Server Version : 100005
Source Catalog : exampledb
Source Schema : public
Target Server Type : PostgreSQL
Target Server Version : 100005
File Encoding : 65001
Date: 23/09/2019 14:49:08
*/
-- ----------------------------
-- Sequence structure for appinfo_id_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "appinfo_id_seq";
CREATE SEQUENCE "appinfo_id_seq"
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
-- ----------------------------
-- Sequence structure for car_id_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "car_id_seq";
CREATE SEQUENCE "car_id_seq"
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
-- ----------------------------
-- Sequence structure for idcar_id_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "idcar_id_seq";
CREATE SEQUENCE "idcar_id_seq"
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
-- ----------------------------
-- Sequence structure for idcard_id_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "idcard_id_seq";
CREATE SEQUENCE "idcard_id_seq"
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
-- ----------------------------
-- Sequence structure for logininfo_id_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "logininfo_id_seq";
CREATE SEQUENCE "logininfo_id_seq"
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
-- ----------------------------
-- Sequence structure for userapp_id_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "userapp_id_seq";
CREATE SEQUENCE "userapp_id_seq"
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
-- ----------------------------
-- Sequence structure for userinfo_id_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "userinfo_id_seq";
CREATE SEQUENCE "userinfo_id_seq"
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
-- ----------------------------
-- Table structure for appinfo
-- ----------------------------
DROP TABLE IF EXISTS "appinfo";
CREATE TABLE "appinfo" (
"id" int4 NOT NULL DEFAULT nextval('appinfo_id_seq'::regclass),
"name" varchar(200) COLLATE "pg_catalog"."default",
"desc" varchar COLLATE "pg_catalog"."default"
)
;
-- ----------------------------
-- Records of appinfo
-- ----------------------------
BEGIN;
INSERT INTO "appinfo" VALUES (1, 'Vitis', 'it''s a IM service');
INSERT INTO "appinfo" VALUES (2, '葡萄乐园', '葡萄商城app');
COMMIT;
-- ----------------------------
-- Table structure for car
-- ----------------------------
DROP TABLE IF EXISTS "car";
CREATE TABLE "car" (
"id" int4 NOT NULL DEFAULT nextval('car_id_seq'::regclass),
"uid" int4,
"name" varchar COLLATE "pg_catalog"."default"
)
;
-- ----------------------------
-- Records of car
-- ----------------------------
BEGIN;
INSERT INTO "car" VALUES (1, 2, 'BMW');
INSERT INTO "car" VALUES (2, 1, 'BENZ');
INSERT INTO "car" VALUES (3, 1, 'QQ');
INSERT INTO "car" VALUES (4, 2, 'LEXS');
COMMIT;
-- ----------------------------
-- Table structure for idcard
-- ----------------------------
DROP TABLE IF EXISTS "idcard";
CREATE TABLE "idcard" (
"id" int4 NOT NULL DEFAULT nextval('idcard_id_seq'::regclass),
"uid" int4,
"desc" varchar COLLATE "pg_catalog"."default"
)
;
-- ----------------------------
-- Records of idcard
-- ----------------------------
BEGIN;
INSERT INTO "idcard" VALUES (1, 1, 'China');
INSERT INTO "idcard" VALUES (2, 2, 'US');
COMMIT;
-- ----------------------------
-- Table structure for logininfo
-- ----------------------------
DROP TABLE IF EXISTS "logininfo";
CREATE TABLE "logininfo" (
"id" int4 NOT NULL DEFAULT nextval('logininfo_id_seq'::regclass),
"uid" int4,
"appid" int4,
"create_time" int4,
"update_time" int4,
"location" varchar(255) COLLATE "pg_catalog"."default"
)
;
-- ----------------------------
-- Records of logininfo
-- ----------------------------
BEGIN;
INSERT INTO "logininfo" VALUES (3, 1, 1, 1540462504, 1540462504, NULL);
INSERT INTO "logininfo" VALUES (4, 4, 1, 1540462505, 1540462506, NULL);
INSERT INTO "logininfo" VALUES (2, 1, 2, 1539156242, 1539156252, 'Shanghai');
INSERT INTO "logininfo" VALUES (1, 2, 2, 1539155655, 1539155668, 'null');
COMMIT;
-- ----------------------------
-- Table structure for userapp
-- ----------------------------
DROP TABLE IF EXISTS "userapp";
CREATE TABLE "userapp" (
"id" int4 NOT NULL DEFAULT nextval('userapp_id_seq'::regclass),
"uid" int4,
"appid" int4
)
;
-- ----------------------------
-- Records of userapp
-- ----------------------------
BEGIN;
INSERT INTO "userapp" VALUES (1, 1, 2);
INSERT INTO "userapp" VALUES (2, 1, 1);
INSERT INTO "userapp" VALUES (3, 2, 1);
INSERT INTO "userapp" VALUES (4, 2, 2);
INSERT INTO "userapp" VALUES (5, 4, 1);
COMMIT;
-- ----------------------------
-- Table structure for userinfo
-- ----------------------------
DROP TABLE IF EXISTS "userinfo";
CREATE TABLE "userinfo" (
"id" int4 NOT NULL DEFAULT nextval('userinfo_id_seq'::regclass),
"nickname" varchar(200) COLLATE "pg_catalog"."default",
"age" int4
)
;
-- ----------------------------
-- Records of userinfo
-- ----------------------------
BEGIN;
INSERT INTO "userinfo" VALUES (2, 'Jeck', 5);
INSERT INTO "userinfo" VALUES (4, 'Lily', 30);
INSERT INTO "userinfo" VALUES (107, 'Jons', 2355);
INSERT INTO "userinfo" VALUES (75, 'Jons', 2355);
INSERT INTO "userinfo" VALUES (110, 'Jons', 2355);
INSERT INTO "userinfo" VALUES (113, 'Jons', 2355);
INSERT INTO "userinfo" VALUES (116, 'Jons', 2355);
INSERT INTO "userinfo" VALUES (85, 'Ha''Deng', 30);
INSERT INTO "userinfo" VALUES (119, 'Jons', 2355);
INSERT INTO "userinfo" VALUES (1, 'Jons', 5);
INSERT INTO "userinfo" VALUES (50, 'Jons', 2355);
INSERT INTO "userinfo" VALUES (52, 'Jons', 2355);
INSERT INTO "userinfo" VALUES (54, 'Jons', 2355);
INSERT INTO "userinfo" VALUES (56, 'Jons', 2355);
INSERT INTO "userinfo" VALUES (58, 'Jons', 2355);
INSERT INTO "userinfo" VALUES (60, 'Jons', 2355);
INSERT INTO "userinfo" VALUES (62, 'Jons', 2355);
INSERT INTO "userinfo" VALUES (64, 'Jons', 2355);
INSERT INTO "userinfo" VALUES (66, 'Jons', 2355);
INSERT INTO "userinfo" VALUES (69, 'Jons', 2355);
INSERT INTO "userinfo" VALUES (72, 'Jons', 2355);
INSERT INTO "userinfo" VALUES (104, 'Jons', 2355);
COMMIT;
-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
SELECT setval('"appinfo_id_seq"', 3, true);
SELECT setval('"car_id_seq"', 5, true);
SELECT setval('"idcar_id_seq"', 2, false);
SELECT setval('"idcard_id_seq"', 3, true);
SELECT setval('"logininfo_id_seq"', 5, true);
SELECT setval('"userapp_id_seq"', 6, true);
SELECT setval('"userinfo_id_seq"', 120, true);
-- ----------------------------
-- Primary Key structure for table appinfo
-- ----------------------------
ALTER TABLE "appinfo" ADD CONSTRAINT "appinfo_pkey" PRIMARY KEY ("id");
-- ----------------------------
-- Primary Key structure for table car
-- ----------------------------
ALTER TABLE "car" ADD CONSTRAINT "car_pkey" PRIMARY KEY ("id");
-- ----------------------------
-- Primary Key structure for table idcard
-- ----------------------------
ALTER TABLE "idcard" ADD CONSTRAINT "idcard_pkey" PRIMARY KEY ("id");
-- ----------------------------
-- Primary Key structure for table logininfo
-- ----------------------------
ALTER TABLE "logininfo" ADD CONSTRAINT "logininfo_pkey" PRIMARY KEY ("id");
-- ----------------------------
-- Primary Key structure for table userapp
-- ----------------------------
ALTER TABLE "userapp" ADD CONSTRAINT "userapp_pkey" PRIMARY KEY ("id");
-- -------
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
hunt-entity-master.zip (74个子文件)
hunt-entity-master
dub.json 475B
.travis.yml 677B
examples
UnitTest
.vscode
launch.json 876B
sql
PostgreSQL
exampledb.sql 8KB
dub.json 411B
source
app.d 18KB
model
IDCard.d 278B
AppInfo.d 362B
LoginInfo.d 434B
UserApp.d 205B
Car.d 309B
UserInfo.d 484B
source
hunt
entity
EntityFieldManyToMany.d 6KB
EntityCreateTable.d 2KB
DefaultEntityManagerFactory.d 813B
Entity.d 6KB
TypedQuery.d 3KB
EntitySession.d 2KB
repository
CrudRepository.d 6KB
EntityRepository.d 10KB
package.d 466B
Repository.d 351B
EntityFieldOwner.d 349B
Model.d 468B
EntityManager.d 5KB
EntityExpression.d 2KB
EntityFieldManyToOne.d 3KB
EntityInfo.d 20KB
EntityOption.d 1KB
utils
Common.d 4KB
EntityFieldObject.d 585B
EntityFieldNormal.d 2KB
eql
EqlQuery.d 10KB
ResultDes.d 9KB
EqlInfo.d 16KB
EqlParse.d 33KB
EqlCache.d 2KB
package.d 232B
Common.d 1KB
Constant.d 3KB
EntityFieldOneToMany.d 5KB
EntityFieldInfo.d 2KB
Persistence.d 1KB
EntityTransaction.d 817B
EntityManagerFactory.d 5KB
NativeQuery.d 7KB
EntityException.d 482B
package.d 2KB
dialect
MySQLDialect.d 10KB
Dialect.d 2KB
PostgreSQLDialect.d 5KB
package.d 172B
Query.d 1KB
criteria
Root.d 3KB
Predicate.d 2KB
CriteriaUpdate.d 3KB
Join.d 960B
Order.d 895B
CriteriaBase.d 2KB
CriteriaDelete.d 962B
package.d 699B
CriteriaQuery.d 3KB
CriteriaBuilder.d 10KB
EntityFieldManyToManyOwner.d 4KB
domain
Member.d 1KB
Page.d 3KB
Sort.d 618B
Specification.d 474B
Pageable.d 852B
Condition.d 577B
package.d 562B
EntityFieldOneToOne.d 4KB
.gitignore 648B
hunt-entity.code-workspace 100B
共 74 条
- 1
资源评论
Java程序员-张凯
- 粉丝: 1w+
- 资源: 7361
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功