-- DBMS: bigquery
CREATE TABLE `isb-cgc.GDC_metadata.GDC_sync_legacy_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 LEGACY 20190104",
  description="Data was generated from file metadata information from a sync to GDC legacy archive on January 2019.",
  labels=[("access", "open"), ("data_type", "file_metadata"), ("source", "gdc"), ("reference_genome_0", "hg19"), ("status", "current"), ("category", "metadata")]
);

INSERT INTO `isb-cgc.GDC_metadata.GDC_sync_legacy_20190104` (id, project_id, file_name, md5, size, state, baseid, version, release, acl, type, deletereason, url) VALUES ('91388fe1-b9ad-4ae4-8076-6fe8f5cb5af9', 'CCLE-MM', 'C836.KMS-34.2.bam', '90585c4cc27ffa86731820c9c13a7877', 17691416510, 'released', 'a83c152e-4efc-447c-8572-fa3751feda3f', 'None', nan, '[u''open'']', 'legacy', NULL, 's3://s3-external-1.amazonaws.com/gdcbackup/91388fe1-b9ad-4ae4-8076-6fe8f5cb5af9'), ('67affa00-107e-44a1-ab82-f14bc85fd80b', 'CCLE-MM', 'C836.PCM6.2.bam', '8bda4cbf67b7e76801be8d68e854f817', 9901636244, 'released', 'cb2c2afe-fbfe-4c8d-97c0-b0af47695284', 'None', nan, '[u''open'']', 'legacy', NULL, 's3://s3-external-1.amazonaws.com/gdcbackup/67affa00-107e-44a1-ab82-f14bc85fd80b'), ('995f2eb2-3f68-485c-9876-18e3a3b29187', 'CCLE-MM', 'e3fffd8f-8ba1-4e0a-8e90-55c55b1e762e_experiment.xml', '206087f1717388eb2405a42d22419560', 12764, 'released', '702c0e25-3561-463f-86b0-cf7407fcf9b7', 'None', nan, '[u''open'']', 'legacy', NULL, 's3://s3-external-1.amazonaws.com/gdcbackup/995f2eb2-3f68-485c-9876-18e3a3b29187'), ('090fdde9-8b52-4da1-a40d-3133c8a025a0', 'CCLE-MM', 'cd208446-6a9d-4381-ae8b-51c5bf028191_experiment.xml', '6a94893a52fedd3c9358eb7d8fdbdda2', 23412, 'released', '59f7bec3-ec21-41b3-a82f-4a16ace828bc', 'None', nan, '[u''open'']', 'legacy', NULL, 's3://s3-external-1.amazonaws.com/gdcbackup/090fdde9-8b52-4da1-a40d-3133c8a025a0'), ('041db83a-a070-4d42-9925-38d2fe953c74', 'CCLE-MM', 'G30567.KARPAS-620.1.bam.bai', '5c5bbf031007621631004c0740e92020', 5742032, 'released', '7ca5cead-7991-45c3-a51b-cb3f353c9fb6', 'None', nan, '[u''open'']', 'legacy', NULL, 's3://s3-external-1.amazonaws.com/gdcbackup/041db83a-a070-4d42-9925-38d2fe953c74');