func (plan *Plan) Create(file []byte) {
	json, _ := json.Marshal(*plan)
	upload := time.Now()

	stmt := `INSERT INTO plans (upload, json, file) VALUES (?, ?, ?)`
	db.Exec(stmt, upload, string(json), file)
}
// Create saves this plan to the database as the newest plan.
Create saves this plan to the database as the newest plan.
// Create saves this plan to the database as the newest plan .
func (plan *Plan) Create(file []byte) {
	json, _ := json.Marshal(*plan)
	upload := time.Now()
	stmt := `INSERT INTO plans (upload, json, file) VALUES (?, ?, ?)`
	db.Exec(stmt, upload, string(json), file)
}
func ( plan * Plan ) Create ( file [ ] byte ) { json , _ := json . Marshal ( * plan ) upload := time . Now ( ) stmt := `INSERT INTO plans (upload, json, file) VALUES (?, ?, ?)` db . Exec ( stmt , upload , string ( json ) , file ) }
Create saves this plan to the database as the newest plan.
Create saves this plan to the database as the newest plan .