added blobstore and capability packages

This commit is contained in:
Brad Rydzewski
2014-09-24 21:46:09 -07:00
parent 9a3f33b9c3
commit ed0024efa1
8 changed files with 234 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
package blobsql
type Blob struct {
ID int64 `meddler:"blob_id,pk" orm:"column(blob_id);pk;auto"`
Path string `meddler:"blob_path" orm:"column(blob_path);size(2000);unique"`
Data string `meddler:"blob_data,gobgzip" orm:"column(blob_data);type(text)"`
}
func (b *Blob) TableName() string { return "blobs" }