Condensed Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
3 Months Ended
Apr. 30, 2019
Apr. 30, 2018
Cash used in operating activities    
Net loss $ (12,064) $ (6,579)
Adjustments to reconcile net loss to net cash used in operating activities:    
Depreciation and amortization 470 383
Amortization of deferred contract costs 1,608 833
Stock-based compensation 4,812 3,157
Bad debt expense 281 32
Changes in operating assets and liabilities:    
Accounts receivable 1,588 9
Deferred contract costs (2,782) (2,188)
Prepaid expenses and other assets (1,635) (2,274)
Accounts payable (1,094) (1,228)
Accrued expenses and other liabilities 124 (402)
Accrued compensation (1,315) 598
Deferred revenue 2,441 3,349
Net cash used in operating activities (7,566) (4,310)
Cash used in investing activities    
Purchases of property and equipment (1,190) (382)
Net cash used in investing activities (1,190) (382)
Cash from financing activities    
Proceeds from initial public offering, net of underwriters' discounts and commissions 220,086 0
Proceeds from issuance of common stock upon exercise of stock options 2,240 306
Proceeds from early exercised stock options, net of repurchases 0 (7)
Proceeds from repayment of promissory note 515 0
Payments of costs related to initial public offering (3,923) 0
Net cash provided by financing activities 218,918 299
Net increase (decrease) in cash, cash equivalents and restricted cash 210,162 (4,393)
Cash, cash equivalents and restricted cash at beginning of year 130,323 46,451
Cash, cash equivalents and restricted cash at end of year 340,485 42,058
Supplemental cash flow data:    
Cash paid for taxes 2 12
Non-cash investing and financing activities:    
Vesting of early exercised options 334 59
Purchase of property and equipment, accrued but not yet paid 1,253 279
Costs related to initial public offering, accrued but not yet paid 2,041 0
Reconciliation of cash, cash equivalents and restricted cash to the condensed consolidated balance sheets    
Total cash, cash equivalents and restricted cash $ 130,323 $ 46,451