Rename genbank and accession
This commit is contained in:
parent
46d58d8dfb
commit
8dc3e2a3fb
2 changed files with 14 additions and 14 deletions
|
@ -6,8 +6,8 @@ CREATE TABLE strains (
|
||||||
species_id BIGINT NOT NULL,
|
species_id BIGINT NOT NULL,
|
||||||
strain_name TEXT NOT NULL,
|
strain_name TEXT NOT NULL,
|
||||||
type_strain BOOLEAN NOT NULL,
|
type_strain BOOLEAN NOT NULL,
|
||||||
accession_banks TEXT NULL,
|
accession_numbers TEXT NULL,
|
||||||
genbank_embl_ddb TEXT NULL,
|
genbank TEXT NULL,
|
||||||
isolated_from TEXT NULL,
|
isolated_from TEXT NULL,
|
||||||
notes TEXT NULL,
|
notes TEXT NULL,
|
||||||
author_id BIGINT NOT NULL,
|
author_id BIGINT NOT NULL,
|
||||||
|
|
24
strains.go
24
strains.go
|
@ -21,18 +21,18 @@ func init() {
|
||||||
|
|
||||||
// StrainBase is what the DB expects to see for inserts/updates
|
// StrainBase is what the DB expects to see for inserts/updates
|
||||||
type StrainBase struct {
|
type StrainBase struct {
|
||||||
Id int64 `json:"id,omitempty"`
|
Id int64 `json:"id,omitempty"`
|
||||||
SpeciesId int64 `db:"species_id" json:"-"`
|
SpeciesId int64 `db:"species_id" json:"-"`
|
||||||
StrainName string `db:"strain_name" json:"strainName"`
|
StrainName string `db:"strain_name" json:"strainName"`
|
||||||
TypeStrain bool `db:"type_strain" json:"typeStrain"`
|
TypeStrain bool `db:"type_strain" json:"typeStrain"`
|
||||||
AccessionBanks string `db:"accession_banks" json:"accessionBanks"`
|
AccessionNumbers string `db:"accession_numbers" json:"accessionNumbers"`
|
||||||
GenbankEmblDdb NullString `db:"genbank_embl_ddb" json:"genbankEmblDdb"`
|
Genbank NullString `db:"genbank" json:"genbank"`
|
||||||
IsolatedFrom NullString `db:"isolated_from" json:"isolatedFrom"`
|
IsolatedFrom NullString `db:"isolated_from" json:"isolatedFrom"`
|
||||||
Notes NullString `db:"notes" json:"notes"`
|
Notes NullString `db:"notes" json:"notes"`
|
||||||
AuthorId int64 `db:"author_id" json:"author"`
|
AuthorId int64 `db:"author_id" json:"author"`
|
||||||
CreatedAt time.Time `db:"created_at" json:"createdAt"`
|
CreatedAt time.Time `db:"created_at" json:"createdAt"`
|
||||||
UpdatedAt time.Time `db:"updated_at" json:"updatedAt"`
|
UpdatedAt time.Time `db:"updated_at" json:"updatedAt"`
|
||||||
DeletedAt NullTime `db:"deleted_at" json:"deletedAt"`
|
DeletedAt NullTime `db:"deleted_at" json:"deletedAt"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Strain & StrainJSON(s) are what ember expects to see
|
// Strain & StrainJSON(s) are what ember expects to see
|
||||||
|
|
Reference in a new issue