github.com/Odesyuk/pop@v4.13.1+incompatible/fix/fixtures/anko/pass/0001_with_raw_backticks.anko.fizz (about)

     1  create_table("users", func(t) {
     2    t.Column("email", "string", {})
     3    t.Column("twitter_handle", "string", {"size": 50})
     4    t.Column("age", "integer", {"default": 0})
     5    t.Column("admin", "bool", {"default": false})
     6    t.Column("company_id", "uuid", {"default_raw": "uuid_generate_v1()"})
     7    t.Column("bio", "text", {"null": true})
     8    t.Column("joined_at", "timestamp", {})
     9  })
    10  
    11  create_table("domains", func(t) {
    12    t.Column("id","uuid",{"primary":true})
    13  })
    14  
    15  create_table("sodas", func(t) {
    16    t.Column("id","uuid",{"primary":true})
    17  }
    18  )
    19  
    20  create_table("humans",func(t) {
    21    t.Column("id","uuid",{"primary":true})
    22  })
    23  
    24  raw(`
    25      INSERT INTO users (email, twitter_handle, joined_at, created_at, updated_at)
    26      VALUES ('foo@example.com', 'Soman1994', now(), now(), now());
    27  `)
    28  
    29  add_foreign_key("domains", "domain_id", {"domains": ["id"]}, {
    30      "name": "fk_rules_domains",
    31      "on_delete": "CASCADE",
    32      "on_update": "CASCADE",
    33  })