#![doc = "GeekORM Database Migrations - v0.5.0"]
#![allow(unused_variables, non_upper_case_globals, missing_docs)]
use super::v0_3_3 as previous;
pub struct Migration;
impl geekorm::Migration for Migration {
fn version() -> &'static str {
"0.5.0"
}
fn previous() -> Option<Box<dyn geekorm::Migration>>
where
Self: Sized,
{
Some(Box::new(previous::Migration))
}
fn create_query() -> &'static str {
include_str!("create.sql")
}
fn upgrade_query() -> &'static str {
include_str!("upgrade.sql")
}
fn database(&self) -> &geekorm::Database {
&Database
}
}
geekorm::lazy_static! { pub static ref Database : Box < geekorm :: Database > = Box :: new (geekorm :: Database { tables : Vec :: from ([geekorm :: Table { name : String :: from ("Sessions") , columns : geekorm :: Columns { columns : Vec :: from ([geekorm :: Column { name : String :: from ("id") , column_type : geekorm :: ColumnType :: Identifier (geekorm :: ColumnTypeOptions { primary_key : true , unique : false , not_null : false , foreign_key : String :: from ("") , auto_increment : true , }) , alias : String :: from ("") , skip : false , } , geekorm :: Column { name : String :: from ("session_type") , column_type : geekorm :: ColumnType :: Blob (geekorm :: ColumnTypeOptions { primary_key : false , unique : false , not_null : true , foreign_key : String :: from ("") , auto_increment : false , }) , alias : String :: from ("") , skip : false , } , geekorm :: Column { name : String :: from ("state") , column_type : geekorm :: ColumnType :: Blob (geekorm :: ColumnTypeOptions { primary_key : false , unique : false , not_null : true , foreign_key : String :: from ("") , auto_increment : false , }) , alias : String :: from ("") , skip : false , } , geekorm :: Column { name : String :: from ("token") , column_type : geekorm :: ColumnType :: Text (geekorm :: ColumnTypeOptions { primary_key : false , unique : true , not_null : true , foreign_key : String :: from ("") , auto_increment : false , }) , alias : String :: from ("") , skip : false , } , geekorm :: Column { name : String :: from ("created_at") , column_type : geekorm :: ColumnType :: Text (geekorm :: ColumnTypeOptions { primary_key : false , unique : false , not_null : true , foreign_key : String :: from ("") , auto_increment : false , }) , alias : String :: from ("") , skip : false , } , geekorm :: Column { name : String :: from ("last_accessed") , column_type : geekorm :: ColumnType :: Text (geekorm :: ColumnTypeOptions { primary_key : false , unique : false , not_null : true , foreign_key : String :: from ("") , auto_increment : false , }) , alias : String :: from ("") , skip : false , }]) } , database : Some (String :: from ("Database")) , } , geekorm :: Table { name : String :: from ("Users") , columns : geekorm :: Columns { columns : Vec :: from ([geekorm :: Column { name : String :: from ("id") , column_type : geekorm :: ColumnType :: Identifier (geekorm :: ColumnTypeOptions { primary_key : true , unique : false , not_null : false , foreign_key : String :: from ("") , auto_increment : true , }) , alias : String :: from ("") , skip : false , } , geekorm :: Column { name : String :: from ("state") , column_type : geekorm :: ColumnType :: Blob (geekorm :: ColumnTypeOptions { primary_key : false , unique : false , not_null : true , foreign_key : String :: from ("") , auto_increment : false , }) , alias : String :: from ("") , skip : false , } , geekorm :: Column { name : String :: from ("username") , column_type : geekorm :: ColumnType :: Text (geekorm :: ColumnTypeOptions { primary_key : false , unique : true , not_null : true , foreign_key : String :: from ("") , auto_increment : false , }) , alias : String :: from ("") , skip : false , } , geekorm :: Column { name : String :: from ("password") , column_type : geekorm :: ColumnType :: Text (geekorm :: ColumnTypeOptions { primary_key : false , unique : false , not_null : true , foreign_key : String :: from ("") , auto_increment : false , }) , alias : String :: from ("") , skip : false , } , geekorm :: Column { name : String :: from ("role") , column_type : geekorm :: ColumnType :: Blob (geekorm :: ColumnTypeOptions { primary_key : false , unique : false , not_null : true , foreign_key : String :: from ("") , auto_increment : false , }) , alias : String :: from ("") , skip : false , } , geekorm :: Column { name : String :: from ("sessions") , column_type : geekorm :: ColumnType :: ForeignKey (geekorm :: ColumnTypeOptions { primary_key : false , unique : false , not_null : true , foreign_key : String :: from ("Sessions.id") , auto_increment : false , }) , alias : String :: from ("") , skip : false , } , geekorm :: Column { name : String :: from ("created_at") , column_type : geekorm :: ColumnType :: Text (geekorm :: ColumnTypeOptions { primary_key : false , unique : false , not_null : true , foreign_key : String :: from ("") , auto_increment : false , }) , alias : String :: from ("") , skip : false , } , geekorm :: Column { name : String :: from ("last_login") , column_type : geekorm :: ColumnType :: Text (geekorm :: ColumnTypeOptions { primary_key : false , unique : false , not_null : true , foreign_key : String :: from ("") , auto_increment : false , }) , alias : String :: from ("") , skip : false , }]) } , database : Some (String :: from ("Database")) , } , geekorm :: Table { name : String :: from ("Component") , columns : geekorm :: Columns { columns : Vec :: from ([geekorm :: Column { name : String :: from ("id") , column_type : geekorm :: ColumnType :: Identifier (geekorm :: ColumnTypeOptions { primary_key : true , unique : false , not_null : false , foreign_key : String :: from ("") , auto_increment : true , }) , alias : String :: from ("") , skip : false , } , geekorm :: Column { name : String :: from ("component_type") , column_type : geekorm :: ColumnType :: Blob (geekorm :: ColumnTypeOptions { primary_key : false , unique : false , not_null : true , foreign_key : String :: from ("") , auto_increment : false , }) , alias : String :: from ("") , skip : false , } , geekorm :: Column { name : String :: from ("manager") , column_type : geekorm :: ColumnType :: Blob (geekorm :: ColumnTypeOptions { primary_key : false , unique : false , not_null : true , foreign_key : String :: from ("") , auto_increment : false , }) , alias : String :: from ("") , skip : false , } , geekorm :: Column { name : String :: from ("namespace") , column_type : geekorm :: ColumnType :: Text (geekorm :: ColumnTypeOptions { primary_key : false , unique : false , not_null : false , foreign_key : String :: from ("") , auto_increment : false , }) , alias : String :: from ("") , skip : false , } , geekorm :: Column { name : String :: from ("name") , column_type : geekorm :: ColumnType :: Text (geekorm :: ColumnTypeOptions { primary_key : false , unique : false , not_null : true , foreign_key : String :: from ("") , auto_increment : false , }) , alias : String :: from ("") , skip : false , }]) } , database : Some (String :: from ("Database")) , } , geekorm :: Table { name : String :: from ("ComponentVersion") , columns : geekorm :: Columns { columns : Vec :: from ([geekorm :: Column { name : String :: from ("id") , column_type : geekorm :: ColumnType :: Identifier (geekorm :: ColumnTypeOptions { primary_key : true , unique : false , not_null : false , foreign_key : String :: from ("") , auto_increment : true , }) , alias : String :: from ("") , skip : false , } , geekorm :: Column { name : String :: from ("component_id") , column_type : geekorm :: ColumnType :: ForeignKey (geekorm :: ColumnTypeOptions { primary_key : false , unique : false , not_null : true , foreign_key : String :: from ("Component.id") , auto_increment : false , }) , alias : String :: from ("") , skip : false , } , geekorm :: Column { name : String :: from ("version") , column_type : geekorm :: ColumnType :: Text (geekorm :: ColumnTypeOptions { primary_key : false , unique : false , not_null : true , foreign_key : String :: from ("") , auto_increment : false , }) , alias : String :: from ("") , skip : false , }]) } , database : Some (String :: from ("Database")) , } , geekorm :: Table { name : String :: from ("SnapshotMetadata") , columns : geekorm :: Columns { columns : Vec :: from ([geekorm :: Column { name : String :: from ("id") , column_type : geekorm :: ColumnType :: Identifier (geekorm :: ColumnTypeOptions { primary_key : true , unique : false , not_null : false , foreign_key : String :: from ("") , auto_increment : true , }) , alias : String :: from ("") , skip : false , } , geekorm :: Column { name : String :: from ("snapshot_id") , column_type : geekorm :: ColumnType :: ForeignKey (geekorm :: ColumnTypeOptions { primary_key : false , unique : false , not_null : true , foreign_key : String :: from ("Snapshot.id") , auto_increment : false , }) , alias : String :: from ("") , skip : false , } , geekorm :: Column { name : String :: from ("key") , column_type : geekorm :: ColumnType :: Blob (geekorm :: ColumnTypeOptions { primary_key : false , unique : false , not_null : true , foreign_key : String :: from ("") , auto_increment : false , }) , alias : String :: from ("") , skip : false , } , geekorm :: Column { name : String :: from ("value") , column_type : geekorm :: ColumnType :: Blob (geekorm :: ColumnTypeOptions { primary_key : false , unique : false , not_null : true , foreign_key : String :: from ("") , auto_increment : false , }) , alias : String :: from ("") , skip : false , } , geekorm :: Column { name : String :: from ("created_at") , column_type : geekorm :: ColumnType :: Text (geekorm :: ColumnTypeOptions { primary_key : false , unique : false , not_null : true , foreign_key : String :: from ("") , auto_increment : false , }) , alias : String :: from ("") , skip : false , } , geekorm :: Column { name : String :: from ("updated_at") , column_type : geekorm :: ColumnType :: Text (geekorm :: ColumnTypeOptions { primary_key : false , unique : false , not_null : true , foreign_key : String :: from ("") , auto_increment : false , }) , alias : String :: from ("") , skip : false , }]) } , database : Some (String :: from ("Database")) , } , geekorm :: Table { name : String :: from ("Snapshot") , columns : geekorm :: Columns { columns : Vec :: from ([geekorm :: Column { name : String :: from ("id") , column_type : geekorm :: ColumnType :: Identifier (geekorm :: ColumnTypeOptions { primary_key : true , unique : false , not_null : false , foreign_key : String :: from ("") , auto_increment : true , }) , alias : String :: from ("") , skip : false , } , geekorm :: Column { name : String :: from ("state") , column_type : geekorm :: ColumnType :: Blob (geekorm :: ColumnTypeOptions { primary_key : false , unique : false , not_null : true , foreign_key : String :: from ("") , auto_increment : false , }) , alias : String :: from ("") , skip : false , } , geekorm :: Column { name : String :: from ("created_at") , column_type : geekorm :: ColumnType :: Text (geekorm :: ColumnTypeOptions { primary_key : false , unique : false , not_null : true , foreign_key : String :: from ("") , auto_increment : false , }) , alias : String :: from ("") , skip : false , } , geekorm :: Column { name : String :: from ("updated_at") , column_type : geekorm :: ColumnType :: Text (geekorm :: ColumnTypeOptions { primary_key : false , unique : false , not_null : false , foreign_key : String :: from ("") , auto_increment : false , }) , alias : String :: from ("") , skip : false , } , geekorm :: Column { name : String :: from ("sbom") , column_type : geekorm :: ColumnType :: Blob (geekorm :: ColumnTypeOptions { primary_key : false , unique : false , not_null : false , foreign_key : String :: from ("") , auto_increment : false , }) , alias : String :: from ("") , skip : false , } , geekorm :: Column { name : String :: from ("error") , column_type : geekorm :: ColumnType :: Text (geekorm :: ColumnTypeOptions { primary_key : false , unique : false , not_null : false , foreign_key : String :: from ("") , auto_increment : false , }) , alias : String :: from ("") , skip : false , }]) } , database : Some (String :: from ("Database")) , } , geekorm :: Table { name : String :: from ("Dependencies") , columns : geekorm :: Columns { columns : Vec :: from ([geekorm :: Column { name : String :: from ("id") , column_type : geekorm :: ColumnType :: Identifier (geekorm :: ColumnTypeOptions { primary_key : true , unique : false , not_null : false , foreign_key : String :: from ("") , auto_increment : true , }) , alias : String :: from ("") , skip : false , } , geekorm :: Column { name : String :: from ("snapshot_id") , column_type : geekorm :: ColumnType :: ForeignKey (geekorm :: ColumnTypeOptions { primary_key : false , unique : false , not_null : true , foreign_key : String :: from ("Snapshot.id") , auto_increment : false , }) , alias : String :: from ("") , skip : false , } , geekorm :: Column { name : String :: from ("component_id") , column_type : geekorm :: ColumnType :: ForeignKey (geekorm :: ColumnTypeOptions { primary_key : false , unique : false , not_null : true , foreign_key : String :: from ("Component.id") , auto_increment : false , }) , alias : String :: from ("") , skip : false , } , geekorm :: Column { name : String :: from ("component_version_id") , column_type : geekorm :: ColumnType :: ForeignKey (geekorm :: ColumnTypeOptions { primary_key : false , unique : false , not_null : true , foreign_key : String :: from ("ComponentVersion.id") , auto_increment : false , }) , alias : String :: from ("") , skip : false , }]) } , database : Some (String :: from ("Database")) , } , geekorm :: Table { name : String :: from ("Projects") , columns : geekorm :: Columns { columns : Vec :: from ([geekorm :: Column { name : String :: from ("id") , column_type : geekorm :: ColumnType :: Identifier (geekorm :: ColumnTypeOptions { primary_key : true , unique : false , not_null : false , foreign_key : String :: from ("") , auto_increment : true , }) , alias : String :: from ("") , skip : false , } , geekorm :: Column { name : String :: from ("name") , column_type : geekorm :: ColumnType :: Text (geekorm :: ColumnTypeOptions { primary_key : false , unique : true , not_null : true , foreign_key : String :: from ("") , auto_increment : false , }) , alias : String :: from ("") , skip : false , } , geekorm :: Column { name : String :: from ("title") , column_type : geekorm :: ColumnType :: Text (geekorm :: ColumnTypeOptions { primary_key : false , unique : false , not_null : false , foreign_key : String :: from ("") , auto_increment : false , }) , alias : String :: from ("") , skip : false , } , geekorm :: Column { name : String :: from ("description") , column_type : geekorm :: ColumnType :: Text (geekorm :: ColumnTypeOptions { primary_key : false , unique : false , not_null : false , foreign_key : String :: from ("") , auto_increment : false , }) , alias : String :: from ("") , skip : false , } , geekorm :: Column { name : String :: from ("project_type") , column_type : geekorm :: ColumnType :: Blob (geekorm :: ColumnTypeOptions { primary_key : false , unique : false , not_null : true , foreign_key : String :: from ("") , auto_increment : false , }) , alias : String :: from ("") , skip : false , } , geekorm :: Column { name : String :: from ("status") , column_type : geekorm :: ColumnType :: Blob (geekorm :: ColumnTypeOptions { primary_key : false , unique : false , not_null : true , foreign_key : String :: from ("") , auto_increment : false , }) , alias : String :: from ("") , skip : false , } , geekorm :: Column { name : String :: from ("parent") , column_type : geekorm :: ColumnType :: Integer (geekorm :: ColumnTypeOptions { primary_key : false , unique : false , not_null : true , foreign_key : String :: from ("") , auto_increment : false , }) , alias : String :: from ("") , skip : false , } , geekorm :: Column { name : String :: from ("created_at") , column_type : geekorm :: ColumnType :: Text (geekorm :: ColumnTypeOptions { primary_key : false , unique : false , not_null : true , foreign_key : String :: from ("") , auto_increment : false , }) , alias : String :: from ("") , skip : false , }]) } , database : Some (String :: from ("Database")) , } , geekorm :: Table { name : String :: from ("ProjectSnapshots") , columns : geekorm :: Columns { columns : Vec :: from ([geekorm :: Column { name : String :: from ("id") , column_type : geekorm :: ColumnType :: Identifier (geekorm :: ColumnTypeOptions { primary_key : true , unique : false , not_null : false , foreign_key : String :: from ("") , auto_increment : true , }) , alias : String :: from ("") , skip : false , } , geekorm :: Column { name : String :: from ("project_id") , column_type : geekorm :: ColumnType :: ForeignKey (geekorm :: ColumnTypeOptions { primary_key : false , unique : false , not_null : true , foreign_key : String :: from ("Projects.id") , auto_increment : false , }) , alias : String :: from ("") , skip : false , } , geekorm :: Column { name : String :: from ("snapshot_id") , column_type : geekorm :: ColumnType :: ForeignKey (geekorm :: ColumnTypeOptions { primary_key : false , unique : false , not_null : true , foreign_key : String :: from ("Snapshot.id") , auto_increment : false , }) , alias : String :: from ("") , skip : false , } , geekorm :: Column { name : String :: from ("created_at") , column_type : geekorm :: ColumnType :: Text (geekorm :: ColumnTypeOptions { primary_key : false , unique : false , not_null : true , foreign_key : String :: from ("") , auto_increment : false , }) , alias : String :: from ("") , skip : false , }]) } , database : Some (String :: from ("Database")) , } , geekorm :: Table { name : String :: from ("Advisories") , columns : geekorm :: Columns { columns : Vec :: from ([geekorm :: Column { name : String :: from ("id") , column_type : geekorm :: ColumnType :: Identifier (geekorm :: ColumnTypeOptions { primary_key : true , unique : false , not_null : false , foreign_key : String :: from ("") , auto_increment : true , }) , alias : String :: from ("") , skip : false , } , geekorm :: Column { name : String :: from ("name") , column_type : geekorm :: ColumnType :: Text (geekorm :: ColumnTypeOptions { primary_key : false , unique : true , not_null : true , foreign_key : String :: from ("") , auto_increment : false , }) , alias : String :: from ("") , skip : false , } , geekorm :: Column { name : String :: from ("source") , column_type : geekorm :: ColumnType :: Blob (geekorm :: ColumnTypeOptions { primary_key : false , unique : false , not_null : true , foreign_key : String :: from ("") , auto_increment : false , }) , alias : String :: from ("") , skip : false , } , geekorm :: Column { name : String :: from ("severity") , column_type : geekorm :: ColumnType :: Blob (geekorm :: ColumnTypeOptions { primary_key : false , unique : false , not_null : true , foreign_key : String :: from ("") , auto_increment : false , }) , alias : String :: from ("") , skip : false , } , geekorm :: Column { name : String :: from ("created_at") , column_type : geekorm :: ColumnType :: Text (geekorm :: ColumnTypeOptions { primary_key : false , unique : false , not_null : true , foreign_key : String :: from ("") , auto_increment : false , }) , alias : String :: from ("") , skip : false , } , geekorm :: Column { name : String :: from ("updated_at") , column_type : geekorm :: ColumnType :: Text (geekorm :: ColumnTypeOptions { primary_key : false , unique : false , not_null : true , foreign_key : String :: from ("") , auto_increment : false , }) , alias : String :: from ("") , skip : false , }]) } , database : Some (String :: from ("Database")) , } , geekorm :: Table { name : String :: from ("AdvisoriesMetadata") , columns : geekorm :: Columns { columns : Vec :: from ([geekorm :: Column { name : String :: from ("id") , column_type : geekorm :: ColumnType :: Identifier (geekorm :: ColumnTypeOptions { primary_key : true , unique : false , not_null : false , foreign_key : String :: from ("") , auto_increment : true , }) , alias : String :: from ("") , skip : false , } , geekorm :: Column { name : String :: from ("key") , column_type : geekorm :: ColumnType :: Text (geekorm :: ColumnTypeOptions { primary_key : false , unique : false , not_null : true , foreign_key : String :: from ("") , auto_increment : false , }) , alias : String :: from ("") , skip : false , } , geekorm :: Column { name : String :: from ("value") , column_type : geekorm :: ColumnType :: Text (geekorm :: ColumnTypeOptions { primary_key : false , unique : false , not_null : true , foreign_key : String :: from ("") , auto_increment : false , }) , alias : String :: from ("") , skip : false , } , geekorm :: Column { name : String :: from ("advisory_id") , column_type : geekorm :: ColumnType :: ForeignKey (geekorm :: ColumnTypeOptions { primary_key : false , unique : false , not_null : true , foreign_key : String :: from ("Advisories.id") , auto_increment : false , }) , alias : String :: from ("") , skip : false , } , geekorm :: Column { name : String :: from ("updated_at") , column_type : geekorm :: ColumnType :: Text (geekorm :: ColumnTypeOptions { primary_key : false , unique : false , not_null : true , foreign_key : String :: from ("") , auto_increment : false , }) , alias : String :: from ("") , skip : false , }]) } , database : Some (String :: from ("Database")) , } , geekorm :: Table { name : String :: from ("Alerts") , columns : geekorm :: Columns { columns : Vec :: from ([geekorm :: Column { name : String :: from ("id") , column_type : geekorm :: ColumnType :: Identifier (geekorm :: ColumnTypeOptions { primary_key : true , unique : false , not_null : false , foreign_key : String :: from ("") , auto_increment : true , }) , alias : String :: from ("") , skip : false , } , geekorm :: Column { name : String :: from ("name") , column_type : geekorm :: ColumnType :: Text (geekorm :: ColumnTypeOptions { primary_key : false , unique : false , not_null : true , foreign_key : String :: from ("") , auto_increment : false , }) , alias : String :: from ("") , skip : false , } , geekorm :: Column { name : String :: from ("state") , column_type : geekorm :: ColumnType :: Blob (geekorm :: ColumnTypeOptions { primary_key : false , unique : false , not_null : true , foreign_key : String :: from ("") , auto_increment : false , }) , alias : String :: from ("") , skip : false , } , geekorm :: Column { name : String :: from ("snapshot_id") , column_type : geekorm :: ColumnType :: ForeignKey (geekorm :: ColumnTypeOptions { primary_key : false , unique : false , not_null : true , foreign_key : String :: from ("Snapshot.id") , auto_increment : false , }) , alias : String :: from ("") , skip : false , } , geekorm :: Column { name : String :: from ("dependency_id") , column_type : geekorm :: ColumnType :: ForeignKey (geekorm :: ColumnTypeOptions { primary_key : false , unique : false , not_null : true , foreign_key : String :: from ("Dependencies.id") , auto_increment : false , }) , alias : String :: from ("") , skip : false , } , geekorm :: Column { name : String :: from ("advisory_id") , column_type : geekorm :: ColumnType :: ForeignKey (geekorm :: ColumnTypeOptions { primary_key : false , unique : false , not_null : true , foreign_key : String :: from ("Advisories.id") , auto_increment : false , }) , alias : String :: from ("") , skip : false , } , geekorm :: Column { name : String :: from ("created_at") , column_type : geekorm :: ColumnType :: Text (geekorm :: ColumnTypeOptions { primary_key : false , unique : false , not_null : true , foreign_key : String :: from ("") , auto_increment : false , }) , alias : String :: from ("") , skip : false , } , geekorm :: Column { name : String :: from ("updated_at") , column_type : geekorm :: ColumnType :: Text (geekorm :: ColumnTypeOptions { primary_key : false , unique : false , not_null : true , foreign_key : String :: from ("") , auto_increment : false , }) , alias : String :: from ("") , skip : false , }]) } , database : Some (String :: from ("Database")) , } , geekorm :: Table { name : String :: from ("ServerSettings") , columns : geekorm :: Columns { columns : Vec :: from ([geekorm :: Column { name : String :: from ("id") , column_type : geekorm :: ColumnType :: Identifier (geekorm :: ColumnTypeOptions { primary_key : true , unique : false , not_null : false , foreign_key : String :: from ("") , auto_increment : true , }) , alias : String :: from ("") , skip : false , } , geekorm :: Column { name : String :: from ("name") , column_type : geekorm :: ColumnType :: Blob (geekorm :: ColumnTypeOptions { primary_key : false , unique : true , not_null : true , foreign_key : String :: from ("") , auto_increment : false , }) , alias : String :: from ("") , skip : false , } , geekorm :: Column { name : String :: from ("setting_type") , column_type : geekorm :: ColumnType :: Blob (geekorm :: ColumnTypeOptions { primary_key : false , unique : false , not_null : true , foreign_key : String :: from ("") , auto_increment : false , }) , alias : String :: from ("") , skip : false , } , geekorm :: Column { name : String :: from ("value") , column_type : geekorm :: ColumnType :: Text (geekorm :: ColumnTypeOptions { primary_key : false , unique : false , not_null : true , foreign_key : String :: from ("") , auto_increment : false , }) , alias : String :: from ("") , skip : false , } , geekorm :: Column { name : String :: from ("updated_at") , column_type : geekorm :: ColumnType :: Text (geekorm :: ColumnTypeOptions { primary_key : false , unique : false , not_null : true , foreign_key : String :: from ("") , auto_increment : false , }) , alias : String :: from ("") , skip : false , }]) } , database : Some (String :: from ("Database")) , }]) }) ; }