-- DBMS: bigquery
CREATE TABLE `isb-cgc.GDC_metadata.GDC_sync_active_20190104`
(
  id STRING OPTIONS(description="File UUID"),
  project_id STRING OPTIONS(description="Id of the Project -- e.g. eg TCGA-BRCA, TARGET-AML, etc"),
  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"),
  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, eg. 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 20190104",
  description="Data was generated from file metadata information from a sync to 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_20190104` (id, project_id, file_name, md5, size, state, baseid, version, release, acl, type, deletereason, url) VALUES ('ec15428f-9ab7-44e1-ad3e-867889b47fdb', 'TARGET-OS', '4c105157-6558-4f0f-8116-4582ed517ae5.gdc_liftover.vcf.gz', 'ccc284db2078ee7d5ef6322c945b5cbd', 145604742, 'released', '9533eefe-47f4-4ae3-97ca-eb4a439f7500', '1', 12.0, '[u''phs000468'', u''phs000218'']', 'active', NULL, 's3://s3-external-1.amazonaws.com/gdcbackup/ec15428f-9ab7-44e1-ad3e-867889b47fdb/4c105157-6558-4f0f-8116-4582ed517ae5.gdc_liftover.vcf.gz'), ('10d134ee-f394-4c56-a31e-fc3cf860fd68', 'TARGET-OS', '9954f296-7afc-414e-b9e4-edfee8867a69.gdc_liftover.vcf.gz', '5a868dd7670ec5c557e15024b9e69d8c', 134211279, 'released', '0cc2c02a-7028-42eb-86d5-20199af63416', '1', 12.0, '[u''phs000468'', u''phs000218'']', 'active', NULL, 's3://s3-external-1.amazonaws.com/gdcbackup/10d134ee-f394-4c56-a31e-fc3cf860fd68/9954f296-7afc-414e-b9e4-edfee8867a69.gdc_liftover.vcf.gz'), ('fdf16c00-5c5f-4d48-b0a2-31ee33ceb20d', 'TARGET-OS', 'a8c4e425-b009-4f24-8d46-62a8a0d25581.gdc_liftover.vcf.gz', '9c587add6ec80e5091a2fa1664aa6c6c', 409419814, 'released', '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'), ('16e0d9db-66d4-441e-b026-47a87af1cbc9', 'TARGET-OS', '06dfcd20-4c28-426b-bd07-ee84640d96bd.gdc_liftover.vcf.gz', '2e6661bf8569dce24293597bc790aa5d', 138112057, 'released', 'cad79516-d201-404b-8cf5-dfca9cdddc00', '1', 12.0, '[u''phs000468'', u''phs000218'']', 'active', NULL, 's3://s3-external-1.amazonaws.com/gdcbackup/16e0d9db-66d4-441e-b026-47a87af1cbc9/06dfcd20-4c28-426b-bd07-ee84640d96bd.gdc_liftover.vcf.gz'), ('ca29a126-c5dc-4e31-a84e-0de6c0e9fd1c', 'TARGET-OS', '1cfec8eb-aad2-4acf-8366-fe38df814749.gdc_liftover.vcf.gz', 'b331aca1409f94e0c58a1388774e74cf', 133109352, 'released', '72ab9191-bf3b-4668-9e3d-b2f07fffe7f9', '1', 12.0, '[u''phs000468'', u''phs000218'']', 'active', NULL, 's3://s3-external-1.amazonaws.com/gdcbackup/ca29a126-c5dc-4e31-a84e-0de6c0e9fd1c/1cfec8eb-aad2-4acf-8366-fe38df814749.gdc_liftover.vcf.gz');