XAssetStore.migrations 561 B

123456789101112131415161718192021222324252627
  1. # -----------------
  2. :VERSION 1
  3. BEGIN;
  4. CREATE TABLE XAssetsMeta (
  5. "ID" char(36) NOT NULL,
  6. "Hash" char(32) NOT NULL,
  7. "Name" varchar(64) NOT NULL,
  8. "Description" varchar(64) NOT NULL,
  9. "AssetType" smallint NOT NULL,
  10. "Local" smallint NOT NULL,
  11. "Temporary" smallint NOT NULL,
  12. "CreateTime" integer NOT NULL,
  13. "AccessTime" integer NOT NULL,
  14. "AssetFlags" integer NOT NULL,
  15. "CreatorID" varchar(128) NOT NULL,
  16. PRIMARY KEY ("ID")
  17. );
  18. CREATE TABLE XAssetsData (
  19. "Hash" char(32) NOT NULL,
  20. "Data" bytea NOT NULL,
  21. PRIMARY KEY ("Hash")
  22. );
  23. COMMIT;