title: Cassandra timeuuid in Datastax C# driver
body: <p>What C# type is equivalent to the timeuuid in the Datastax Cassandra C# driver?</p>
  
  <p>I am writing a simple user tracking service and want to access the most latest user history. I am trying to create a table equivalent to this create statement:</p>
  
  <pre class="lang-sql prettyprint-override"><code>CREATE TABLE IF NOT EXISTS user_history (
      user_id text,
      event_type text,
      create_date timeuuid,
      item_id text,
      PRIMARY KEY ((user_id, event_type), create_date)
  );
  </code></pre>
  
  <p>I have made the following class:</p>
  
  <pre class="lang-c# prettyprint-override"><code>[AllowFiltering]
  [Table("user_history")]
  public class UserHistory
  {
      [PartitionKey(1)]
      [Column("user_id")]
      public string UserID;
  
      [PartitionKey(2)]
      [Column("event_type")]
      public string EventType;
  
      [ClusteringKey(1)]
      [Column("create_date")]
      public DateTime CreateDate { get; set; }
  
      [Column("item_id")] 
      public string ItemID;
  }
  </code></pre>
  
  <p>And I am using this statement to create the table in Cassandra:</p>
  
  <pre class="lang-c# prettyprint-override"><code>var table = Session.GetTable&lt;UserHistory&gt;();
  table.CreateIfNotExists();
  </code></pre>
  
  <p>But this gives me the following table:</p>
  
  <pre class="lang-sql prettyprint-override"><code>CREATE TABLE user_history (
    user_id text,
    event_type text,
    create_date timestamp,
    item_id text,
    PRIMARY KEY ((user_id, event_type), create_date)
  )
  </code></pre>
  
  <p>As you can see, the type of <code>create_date</code> is <code>timestamp</code> instead of <code>timeuuid</code>.</p>
  
  <p>I have tried <code>Guid</code> instead of <code>DateTime</code>, but that gives me an <code>uuid</code> when I am calling <code>.CreateIfNotExists()</code>.</p>
  
  <p>Should I use <code>Guid</code> instead of <code>DateTime</code> for the <code>CreateDate</code> and create the table explicit using raw CQL3? I guess this will allow me to read and write <code>timeuuid</code> from/to Cassandra (using the <code>GuidGenerator</code> found in the FluentCassandra project)?! (Recall: I am using the Datastax driver)</p>