CREATE MIGRATION m1oqsdj6bfa6gqquonw63gm53g6zo2uf2cjicsjeaxtklx7ypyww4q
    ONTO initial
{
  CREATE TYPE default::Message {
      CREATE PROPERTY content: std::str;
      CREATE PROPERTY date: std::datetime;
      CREATE PROPERTY model_id: std::str;
  };
  CREATE TYPE default::Area {
      CREATE MULTI LINK messages: default::Message;
      CREATE REQUIRED PROPERTY position: std::int16;
  };
  CREATE TYPE default::Conversation {
      CREATE MULTI LINK areas: default::Area;
      CREATE REQUIRED PROPERTY name: std::str;
  };
  CREATE TYPE default::Key {
      CREATE PROPERTY date: std::datetime;
      CREATE PROPERTY key: std::str;
      CREATE PROPERTY name: std::str;
  };
  CREATE TYPE default::Setting {
      CREATE MULTI LINK keys: default::Key;
      CREATE PROPERTY default_model: std::str;
  };
  CREATE TYPE default::Usage {
      CREATE PROPERTY date: std::datetime;
      CREATE PROPERTY input_cost: std::float32;
      CREATE PROPERTY input_token: std::int32;
      CREATE PROPERTY model_id: std::str;
      CREATE PROPERTY output_cost: std::float32;
      CREATE PROPERTY output_token: std::int32;
  };
  CREATE TYPE default::User {
      CREATE MULTI LINK conversations: default::Conversation;
      CREATE REQUIRED LINK setting: default::Setting;
      CREATE MULTI LINK usages: default::Usage;
      CREATE REQUIRED PROPERTY email: std::str;
      CREATE REQUIRED PROPERTY name: std::str;
  };
};
