Advertisement
Pandaaaa906

Untitled

Mar 2nd, 2021
1,515
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
T-SQL 3.01 KB | None | 0 0
  1. CREATE TABLE "public"."substance" (
  2.   "id" int4 NOT NULL DEFAULT nextval('substance_id_seq'::regclass),
  3.   "source" text COLLATE "pg_catalog"."default" NOT NULL,
  4.   "substance_id" text COLLATE "pg_catalog"."default" NOT NULL,
  5.   "substance_version" text COLLATE "pg_catalog"."default",
  6.   "compound_id_type" text COLLATE "pg_catalog"."default",
  7.   "ext_datasource_url" text COLLATE "pg_catalog"."default",
  8.   "ext_substance_url" text COLLATE "pg_catalog"."default",
  9.   "cid_associations" text COLLATE "pg_catalog"."default",
  10.   "coordinate_type" text COLLATE "pg_catalog"."default",
  11.   "total_charge" text COLLATE "pg_catalog"."default",
  12.   "bondannotations" text COLLATE "pg_catalog"."default",
  13.   "substance_synonym" text COLLATE "pg_catalog"."default",
  14.   "substance_comment" text COLLATE "pg_catalog"."default",
  15.   "pubmed_id" text COLLATE "pg_catalog"."default",
  16.   "ext_datasource_regid" text COLLATE "pg_catalog"."default",
  17.   "conformer_id" text COLLATE "pg_catalog"."default",
  18.   "generic_registry_name" text COLLATE "pg_catalog"."default",
  19.   "ext_datasource_name" text COLLATE "pg_catalog"."default",
  20.   "xref_ext_id" text COLLATE "pg_catalog"."default",
  21.   "can_smiles" text COLLATE "pg_catalog"."default",
  22.   "iso_smiles" text COLLATE "pg_catalog"."default",
  23.   "moltext" text COLLATE "pg_catalog"."default",
  24.   "create_date" timestamp(6),
  25.   "modify_date" timestamp(6),
  26.   CONSTRAINT "substance_pkey" PRIMARY KEY ("id")
  27. )
  28. ;
  29.  
  30. ALTER TABLE "public"."substance"
  31.   OWNER TO "postgres";
  32.  
  33. CREATE INDEX "substance_generic_registry_name_idx" ON "public"."substance" USING hash (
  34.   "generic_registry_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops"
  35. );
  36.  
  37. CREATE UNIQUE INDEX "substance_source_substance_id" ON "public"."substance" USING btree (
  38.   "source" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  39.   "substance_id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  40. );
  41.  
  42.  
  43. CREATE TABLE [dbo].[FromatModels] (
  44.   [fmid] int  IDENTITY(1,1) NOT NULL,
  45.   [fmCode] varchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  46.   [UnitName] varchar(200) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  47.   [purityS] varchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  48.   [brand] varchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  49.   [Fromat] varchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  50.   [InvNum] float(53)  NULL,
  51.   [Mark] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  52.   [price] float(53)  NULL,
  53.   [Delivery] varchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  54.   [uping] int DEFAULT ((1)) NULL,
  55.   [uptimes] timestamp  NOT NULL,
  56.   [fmupDate] datetime  NULL,
  57.   [upCreator] varchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  58.   [priceDate] date  NULL,
  59.   [cinvCode] varchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  60.   [costPrice] float(53)  NULL,
  61.   CONSTRAINT [PK__FromatMo__3471ED916C190EBB] PRIMARY KEY CLUSTERED ([fmid])
  62. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
  63. ON [PRIMARY]
  64. )  
  65. ON [PRIMARY]
  66. GO
  67.  
  68. ALTER TABLE [dbo].[FromatModels] SET (LOCK_ESCALATION = TABLE)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement