Init: generated with claude-sonnet-4
This commit is contained in:
27
models/models.go
Normal file
27
models/models.go
Normal file
@@ -0,0 +1,27 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
type File struct {
|
||||
ID string `db:"id" json:"id"`
|
||||
Type string `db:"type" json:"type"`
|
||||
Size int64 `db:"size" json:"size"`
|
||||
CreatedAt time.Time `db:"created_at" json:"created_at"`
|
||||
}
|
||||
|
||||
type TranscribeJob struct {
|
||||
ID string `db:"id" json:"id"`
|
||||
Status string `db:"status" json:"status"`
|
||||
FileID string `db:"file_id" json:"file_id"`
|
||||
CreatedAt time.Time `db:"created_at" json:"created_at"`
|
||||
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
|
||||
}
|
||||
|
||||
const (
|
||||
StatusPending = "pending"
|
||||
StatusProcessing = "processing"
|
||||
StatusCompleted = "completed"
|
||||
StatusFailed = "failed"
|
||||
)
|
Reference in New Issue
Block a user