DROP TABLE IF EXISTS `self`;
CREATE TABLE `self` (
    `id` INT(11) NOT NULL PRIMARY KEY AUTO_INCREMENT,
    `name` VARCHAR(255) NOT NULL,
    `email` VARCHAR(255) NOT NULL,
    `bio` TEXT NOT NULL,
    `github` VARCHAR(255) NOT NULL,
    `gitea` VARCHAR(255) NOT NULL
);
INSERT INTO `self` (
        `name`,
        `email`,
        `bio`,
        `github`,
        `gitea`
    )
VALUES (
        'Lucas Jensen',
        'lucas@lucasjensen.me',
        "I'm a software engineer working for the University of Oregon and an alum from Oregon State University with a B.S. in Computer Science. I'm passionate about open source software and self hosting anything and everything. Most of my projects, including this gitea instance, are hosted either on a Raspberry Pi or an Ubuntu server with Linode.\nMuch of what you see here is a WIP and will likely remain so for the foreseeable future. All the projects listed here are passion projects which are tended to in my spare time.",
        'https://github.com/ljensen505',
        'https://gitea.lucasjensen.me/lucasjensen'
    );
DROP TABLE IF EXISTS `projects`;
CREATE TABLE `projects` (
    `id` INT(255) NOT NULL PRIMARY KEY AUTO_INCREMENT,
    `name` VARCHAR(255) NOT NULL,
    `description` TEXT NOT NULL,
    `source` VARCHAR(255),
    `live` VARCHAR(255),
    `is_self_hosted` BOOLEAN NOT NULL
);
INSERT INTO `projects` (
        `name`,
        `description`,
        `source`,
        `live`,
        `is_self_hosted`
    )
VALUES (
        'The Grapefruits Duo',
        'An artist website for a local chamber music duo. Built with MySQL, FastAPI, and React with TypeScript.',
        'https://gitea.lucasjensen.me/lucasjensen/TheGrapefruitsDuo',
        'https://thegrapefruitsduo.com/',
        TRUE
    ),
    (
        'Portfolio Homepage',
        'This very website!',
        'https://gitea.lucasjensen.me/lucasjensen/LucasJensen',
        'https://lucasjensen.me/',
        TRUE
    ),
    (
        'Megan Johns Portfilo Website',
        'A comprehensive portfolio for local Eugene musician and artist, Megan Johns.',
        'https://gitea.lucasjensen.me/lucasjensen/MeganJohns',
        'https://mj.lucasjensen.me/',
        TRUE
    ),
    (
        'Portfolio CI/CD',
        'A CI/CD pipeline for my portfolio website and used to auto build and deploy most projects listec here. Built with FastAPI and Bash, and heavily reliant upon GitHub Actions and Webhooks. Pipelines for each project vary but genarally utilize service files and systemd.',
        'https://github.com/ljensen505/portfolio-pipeline',
        NULL,
        TRUE
    ),
    (
        'Escape From Disco Love',
        'An escape room game that unfolds across three environments: a dive bar, a 1970s disco club, and an upscale rooftop bar. Players face a 30-minute time limit to break free. As they explore, a variety of interactive objects and specific items become essential tools in solving puzzles.\nBuilt with Unity and C#, Escape from Disco Love is a 3D game that can be played natively on Windows or Mac OS, or through a browser using WebGL. Built for OSU Capstone Fall 2023 with Joshua Harris, Thomas McNutt, Daniel Joseph, and Jerrod Lepper.\nSource code is private but available upon request.',
        NULL,
        'https://efdl.lucasjensen.me/',
        TRUE
    )