-- DBMS: bigquery
CREATE TABLE `isb-cgc.GDC_metadata.GDC_sync_active_20190115`
(
  id STRING OPTIONS(description="File UUID"),
  file_name STRING OPTIONS(description="Name of file at the GDC"),
  md5 STRING OPTIONS(description="128-bit hash value expressed as a 32 digit hexadecimal number (in lower case) used as a file's digital fingerprint"),
  size INT64 OPTIONS(description="File size"),
  state STRING OPTIONS(description="File state -- either submitted or released"),
  project_id STRING OPTIONS(description="ID of the Project -- e.g. TCGA-BRCA, TARGET-AML, etc."),
  baseid STRING OPTIONS(description="UUID that all versions of the data (in other words, all GUIDs) point to"),
  version STRING OPTIONS(description="Data version"),
  release FLOAT64 OPTIONS(description="Associated GDC Release Number"),
  acl STRING OPTIONS(description="Access Control List -- if access is controlled, this field contains the dbGaP accession, eg phs000179"),
  type STRING OPTIONS(description="Description of the data, e.g. clinical_supplement, aligned_reads"),
  deletereason STRING OPTIONS(description="Reason for removal from the GDC"),
  url STRING OPTIONS(description="AWS file location")
)
OPTIONS(
  friendly_name="GDC SYNC ACTIVE 20190115",
  description="Data was generated from file metadata information from a sync to the GDC active archive on January 2019.",
  labels=[("access", "open"), ("data_type", "file_metadata"), ("source", "gdc"), ("reference_genome_0", "hg38"), ("status", "current"), ("category", "metadata")]
);

INSERT INTO `isb-cgc.GDC_metadata.GDC_sync_active_20190115` (id, file_name, md5, size, state, project_id, baseid, version, release, acl, type, deletereason, url) VALUES ('d8493d7a-5eff-414c-9f28-b3a78257a460', '872be9d3-73a9-4c11-a12e-539ef6ff2f7d.gdc_liftover.vcf.gz', 'a56fdd54451e79a2ac676a90ac467d9f', 168867239, 'released', 'TARGET-OS', '6b9098ed-01e5-4d6a-af72-4bd84bf6613c', '1', 12.0, '[u''phs000468'', u''phs000218'']', 'active', NULL, 's3://s3-external-1.amazonaws.com/gdcbackup/d8493d7a-5eff-414c-9f28-b3a78257a460/872be9d3-73a9-4c11-a12e-539ef6ff2f7d.gdc_liftover.vcf.gz'), ('0c8011ed-8e84-4825-a33f-b5e3f596f8ef', 'fec6e03c-718c-4240-ad88-a398dcba826d.gdc_liftover.vcf.gz', '487061f5aea5f1a6fb7bdffc1a2b73f0', 138420997, 'released', 'TARGET-OS', '12f7de2f-fd18-4a5a-a556-692aee071a5c', '1', 12.0, '[u''phs000468'', u''phs000218'']', 'active', NULL, 's3://s3-external-1.amazonaws.com/gdcbackup/0c8011ed-8e84-4825-a33f-b5e3f596f8ef/fec6e03c-718c-4240-ad88-a398dcba826d.gdc_liftover.vcf.gz'), ('5af0598e-849e-4dc9-910f-ba3e23987622', '9f8b7867-3d3e-4691-b533-8612a6647354.gdc_liftover.vcf.gz', '7839770a54400bbb2b75dd3413f25d53', 137031485, 'released', 'TARGET-OS', '11f3680c-ad72-485f-a1ca-8984f284c6a6', '1', 12.0, '[u''phs000468'', u''phs000218'']', 'active', NULL, 's3://s3-external-1.amazonaws.com/gdcbackup/5af0598e-849e-4dc9-910f-ba3e23987622/9f8b7867-3d3e-4691-b533-8612a6647354.gdc_liftover.vcf.gz'), ('182de4e1-70aa-4153-8a71-0a93c46d1fbc', 'daf01523-fca2-4379-b06f-1fb4f5fa4ff8.gdc_liftover.vcf.gz', '47d39c678a8c043ac402ceea45e9ddd2', 446979748, 'released', 'TARGET-OS', 'a76fe642-8ab6-4014-8ceb-f3f313a21603', '1', 12.0, '[u''phs000468'', u''phs000218'']', 'active', NULL, 's3://s3-external-1.amazonaws.com/gdcbackup/182de4e1-70aa-4153-8a71-0a93c46d1fbc/daf01523-fca2-4379-b06f-1fb4f5fa4ff8.gdc_liftover.vcf.gz'), ('fdf16c00-5c5f-4d48-b0a2-31ee33ceb20d', 'a8c4e425-b009-4f24-8d46-62a8a0d25581.gdc_liftover.vcf.gz', '9c587add6ec80e5091a2fa1664aa6c6c', 409419814, 'released', 'TARGET-OS', '62fe8668-76f7-44d7-96cc-f563f48c1c9a', '1', 12.0, '[u''phs000468'', u''phs000218'']', 'active', NULL, 's3://s3-external-1.amazonaws.com/gdcbackup/fdf16c00-5c5f-4d48-b0a2-31ee33ceb20d/a8c4e425-b009-4f24-8d46-62a8a0d25581.gdc_liftover.vcf.gz');