From 757df7f1b8a58cde64c6705cfdcdac21acec6d11 Mon Sep 17 00:00:00 2001 From: Rebekah Taylor Date: Thu, 2 Feb 2023 20:25:31 -0800 Subject: [PATCH] first commit --- .gitignore | 454 ++++++++++++++++++ PawPanion.sln | 25 + .../Controllers/WeatherForecastController.cs | 39 ++ PawPanion/Models | 1 + PawPanion/PawPanion.csproj | 11 + PawPanion/Program.cs | 26 + PawPanion/Properties/launchSettings.json | 31 ++ PawPanion/Startup.cs | 59 +++ PawPanion/WeatherForecast.cs | 15 + PawPanion/appsettings.Development.json | 9 + PawPanion/appsettings.json | 14 + SQL/01_Db_Create.sql.sql | 101 ++++ SQL/02_Seed_Data.sql.sql | 52 ++ 13 files changed, 837 insertions(+) create mode 100644 .gitignore create mode 100644 PawPanion.sln create mode 100644 PawPanion/Controllers/WeatherForecastController.cs create mode 160000 PawPanion/Models create mode 100644 PawPanion/PawPanion.csproj create mode 100644 PawPanion/Program.cs create mode 100644 PawPanion/Properties/launchSettings.json create mode 100644 PawPanion/Startup.cs create mode 100644 PawPanion/WeatherForecast.cs create mode 100644 PawPanion/appsettings.Development.json create mode 100644 PawPanion/appsettings.json create mode 100644 SQL/01_Db_Create.sql.sql create mode 100644 SQL/02_Seed_Data.sql.sql diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8afdcb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1,454 @@ +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. +## +## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore + +# User-specific files +*.rsuser +*.suo +*.user +*.userosscache +*.sln.docstates + +# User-specific files (MonoDevelop/Xamarin Studio) +*.userprefs + +# Mono auto generated files +mono_crash.* + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +[Ww][Ii][Nn]32/ +[Aa][Rr][Mm]/ +[Aa][Rr][Mm]64/ +bld/ +[Bb]in/ +[Oo]bj/ +[Ll]og/ +[Ll]ogs/ + +# Visual Studio 2015/2017 cache/options directory +.vs/ +# Uncomment if you have tasks that create the project's static files in wwwroot +#wwwroot/ + +# Visual Studio 2017 auto generated files +Generated\ Files/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +# NUnit +*.VisualState.xml +TestResult.xml +nunit-*.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +# Benchmark Results +BenchmarkDotNet.Artifacts/ + +# .NET Core +project.lock.json +project.fragment.lock.json +artifacts/ + +# Tye +.tye/ + +# ASP.NET Scaffolding +ScaffoldingReadMe.txt + +# StyleCop +StyleCopReport.xml + +# Files built by Visual Studio +*_i.c +*_p.c +*_h.h +*.ilk +*.meta +*.obj +*.iobj +*.pch +*.pdb +*.ipdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*_wpftmp.csproj +*.log +*.vspscc +*.vssscc +.builds +*.pidb +*.svclog +*.scc + +# Chutzpah Test files +_Chutzpah* + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opendb +*.opensdf +*.sdf +*.cachefile +*.VC.db +*.VC.VC.opendb + +# Visual Studio profiler +*.psess +*.vsp +*.vspx +*.sap + +# Visual Studio Trace Files +*.e2e + +# TFS 2012 Local Workspace +$tf/ + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# AxoCover is a Code Coverage Tool +.axoCover/* +!.axoCover/settings.json + +# Coverlet is a free, cross platform Code Coverage Tool +coverage*.json +coverage*.xml +coverage*.info + +# Visual Studio code coverage results +*.coverage +*.coveragexml + +# NCrunch +_NCrunch_* +.*crunch*.local.xml +nCrunchTemp_* + +# MightyMoose +*.mm.* +AutoTest.Net/ + +# Web workbench (sass) +.sass-cache/ + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.[Pp]ublish.xml +*.azurePubxml +# Note: Comment the next line if you want to checkin your web deploy settings, +# but database connection strings (with potential passwords) will be unencrypted +*.pubxml +*.publishproj + +# Microsoft Azure Web App publish settings. Comment the next line if you want to +# checkin your Azure Web App publish settings, but sensitive information contained +# in these scripts will be unencrypted +PublishScripts/ + +# NuGet Packages +*.nupkg +# NuGet Symbol Packages +*.snupkg +# The packages folder can be ignored because of Package Restore +**/[Pp]ackages/* +# except build/, which is used as an MSBuild target. +!**/[Pp]ackages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/[Pp]ackages/repositories.config +# NuGet v3's project.json files produces more ignorable files +*.nuget.props +*.nuget.targets + +# Microsoft Azure Build Output +csx/ +*.build.csdef + +# Microsoft Azure Emulator +ecf/ +rcf/ + +# Windows Store app package directories and files +AppPackages/ +BundleArtifacts/ +Package.StoreAssociation.xml +_pkginfo.txt +*.appx +*.appxbundle +*.appxupload + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!?*.[Cc]ache/ + +# Others +ClientBin/ +~$* +*~ +*.dbmdl +*.dbproj.schemaview +*.jfm +*.pfx +*.publishsettings +orleans.codegen.cs + +# Including strong name files can present a security risk +# (https://github.com/github/gitignore/pull/2483#issue-259490424) +#*.snk + +# Since there are multiple workflows, uncomment next line to ignore bower_components +# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) +#bower_components/ + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm +ServiceFabricBackup/ +*.rptproj.bak + +# SQL Server files +*.mdf +*.ldf +*.ndf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings +*.rptproj.rsuser +*- [Bb]ackup.rdl +*- [Bb]ackup ([0-9]).rdl +*- [Bb]ackup ([0-9][0-9]).rdl + +# Microsoft Fakes +FakesAssemblies/ + +# GhostDoc plugin setting file +*.GhostDoc.xml + +# Node.js Tools for Visual Studio +.ntvs_analysis.dat +node_modules/ + +# Visual Studio 6 build log +*.plg + +# Visual Studio 6 workspace options file +*.opt + +# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) +*.vbw + +# Visual Studio LightSwitch build output +**/*.HTMLClient/GeneratedArtifacts +**/*.DesktopClient/GeneratedArtifacts +**/*.DesktopClient/ModelManifest.xml +**/*.Server/GeneratedArtifacts +**/*.Server/ModelManifest.xml +_Pvt_Extensions + +# Paket dependency manager +.paket/paket.exe +paket-files/ + +# FAKE - F# Make +.fake/ + +# CodeRush personal settings +.cr/personal + +# Python Tools for Visual Studio (PTVS) +__pycache__/ +*.pyc + +# Cake - Uncomment if you are using it +# tools/** +# !tools/packages.config + +# Tabs Studio +*.tss + +# Telerik's JustMock configuration file +*.jmconfig + +# BizTalk build output +*.btp.cs +*.btm.cs +*.odx.cs +*.xsd.cs + +# OpenCover UI analysis results +OpenCover/ + +# Azure Stream Analytics local run output +ASALocalRun/ + +# MSBuild Binary and Structured Log +*.binlog + +# NVidia Nsight GPU debugger configuration file +*.nvuser + +# MFractors (Xamarin productivity tool) working folder +.mfractor/ + +# Local History for Visual Studio +.localhistory/ + +# BeatPulse healthcheck temp database +healthchecksdb + +# Backup folder for Package Reference Convert tool in Visual Studio 2017 +MigrationBackup/ + +# Ionide (cross platform F# VS Code tools) working folder +.ionide/ + +# Fody - auto-generated XML schema +FodyWeavers.xsd + +## +## Visual studio for Mac +## + + +# globs +Makefile.in +*.userprefs +*.usertasks +config.make +config.status +aclocal.m4 +install-sh +autom4te.cache/ +*.tar.gz +tarballs/ +test-results/ + +# Mac bundle stuff +*.dmg +*.app + +# content below from: https://github.com/github/gitignore/blob/master/Global/macOS.gitignore +# General +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + + +# Thumbnails +._* + +# Files that might appear in the root of a volume +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns +.com.apple.timemachine.donotpresent + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +# content below from: https://github.com/github/gitignore/blob/master/Global/Windows.gitignore +# Windows thumbnail cache files +Thumbs.db +ehthumbs.db +ehthumbs_vista.db + +# Dump file +*.stackdump + +# Folder config file +[Dd]esktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msix +*.msm +*.msp + +# Windows shortcuts +*.lnk + +# JetBrains Rider +.idea/ +*.sln.iml + +## +## Visual Studio Code +## +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json diff --git a/PawPanion.sln b/PawPanion.sln new file mode 100644 index 0000000..804b888 --- /dev/null +++ b/PawPanion.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.4.33205.214 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PawPanion", "PawPanion\PawPanion.csproj", "{9C58E64B-AE31-43D9-B0D5-1046B93290B8}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {9C58E64B-AE31-43D9-B0D5-1046B93290B8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {9C58E64B-AE31-43D9-B0D5-1046B93290B8}.Debug|Any CPU.Build.0 = Debug|Any CPU + {9C58E64B-AE31-43D9-B0D5-1046B93290B8}.Release|Any CPU.ActiveCfg = Release|Any CPU + {9C58E64B-AE31-43D9-B0D5-1046B93290B8}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {B489C7E0-D6C8-421F-961F-248C79E84795} + EndGlobalSection +EndGlobal diff --git a/PawPanion/Controllers/WeatherForecastController.cs b/PawPanion/Controllers/WeatherForecastController.cs new file mode 100644 index 0000000..21fdfb4 --- /dev/null +++ b/PawPanion/Controllers/WeatherForecastController.cs @@ -0,0 +1,39 @@ +using Microsoft.AspNetCore.Mvc; +using Microsoft.Extensions.Logging; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; + +namespace PawPanion.Controllers +{ + [ApiController] + [Route("[controller]")] + public class WeatherForecastController : ControllerBase + { + private static readonly string[] Summaries = new[] + { + "Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching" + }; + + private readonly ILogger _logger; + + public WeatherForecastController(ILogger logger) + { + _logger = logger; + } + + [HttpGet] + public IEnumerable Get() + { + var rng = new Random(); + return Enumerable.Range(1, 5).Select(index => new WeatherForecast + { + Date = DateTime.Now.AddDays(index), + TemperatureC = rng.Next(-20, 55), + Summary = Summaries[rng.Next(Summaries.Length)] + }) + .ToArray(); + } + } +} diff --git a/PawPanion/Models b/PawPanion/Models new file mode 160000 index 0000000..e4ec94c --- /dev/null +++ b/PawPanion/Models @@ -0,0 +1 @@ +Subproject commit e4ec94c3bdb2bb406344996d5f94746bc7e389e6 diff --git a/PawPanion/PawPanion.csproj b/PawPanion/PawPanion.csproj new file mode 100644 index 0000000..2884716 --- /dev/null +++ b/PawPanion/PawPanion.csproj @@ -0,0 +1,11 @@ + + + + net5.0 + + + + + + + diff --git a/PawPanion/Program.cs b/PawPanion/Program.cs new file mode 100644 index 0000000..55f5367 --- /dev/null +++ b/PawPanion/Program.cs @@ -0,0 +1,26 @@ +using Microsoft.AspNetCore.Hosting; +using Microsoft.Extensions.Configuration; +using Microsoft.Extensions.Hosting; +using Microsoft.Extensions.Logging; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; + +namespace PawPanion +{ + public class Program + { + public static void Main(string[] args) + { + CreateHostBuilder(args).Build().Run(); + } + + public static IHostBuilder CreateHostBuilder(string[] args) => + Host.CreateDefaultBuilder(args) + .ConfigureWebHostDefaults(webBuilder => + { + webBuilder.UseStartup(); + }); + } +} diff --git a/PawPanion/Properties/launchSettings.json b/PawPanion/Properties/launchSettings.json new file mode 100644 index 0000000..0efbbe7 --- /dev/null +++ b/PawPanion/Properties/launchSettings.json @@ -0,0 +1,31 @@ +{ + "$schema": "http://json.schemastore.org/launchsettings.json", + "iisSettings": { + "windowsAuthentication": false, + "anonymousAuthentication": true, + "iisExpress": { + "applicationUrl": "http://localhost:7490", + "sslPort": 44311 + } + }, + "profiles": { + "IIS Express": { + "commandName": "IISExpress", + "launchBrowser": true, + "launchUrl": "swagger", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + "PawPanion": { + "commandName": "Project", + "dotnetRunMessages": "true", + "launchBrowser": true, + "launchUrl": "swagger", + "applicationUrl": "https://localhost:5001;http://localhost:5000", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + } + } +} diff --git a/PawPanion/Startup.cs b/PawPanion/Startup.cs new file mode 100644 index 0000000..728c8c5 --- /dev/null +++ b/PawPanion/Startup.cs @@ -0,0 +1,59 @@ +using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Hosting; +using Microsoft.AspNetCore.HttpsPolicy; +using Microsoft.AspNetCore.Mvc; +using Microsoft.Extensions.Configuration; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Hosting; +using Microsoft.Extensions.Logging; +using Microsoft.OpenApi.Models; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; + +namespace PawPanion +{ + public class Startup + { + public Startup(IConfiguration configuration) + { + Configuration = configuration; + } + + public IConfiguration Configuration { get; } + + // This method gets called by the runtime. Use this method to add services to the container. + public void ConfigureServices(IServiceCollection services) + { + + services.AddControllers(); + services.AddSwaggerGen(c => + { + c.SwaggerDoc("v1", new OpenApiInfo { Title = "PawPanion", Version = "v1" }); + }); + } + + // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. + public void Configure(IApplicationBuilder app, IWebHostEnvironment env) + { + if (env.IsDevelopment()) + { + app.UseDeveloperExceptionPage(); + app.UseSwagger(); + app.UseSwaggerUI(c => c.SwaggerEndpoint("/swagger/v1/swagger.json", "PawPanion v1")); + } + + app.UseHttpsRedirection(); + + app.UseRouting(); + app.UseAuthentication(); + app.UseAuthorization(); + + app.UseEndpoints(endpoints => + { + endpoints.MapControllers(); + }); + } + } +} diff --git a/PawPanion/WeatherForecast.cs b/PawPanion/WeatherForecast.cs new file mode 100644 index 0000000..6dca251 --- /dev/null +++ b/PawPanion/WeatherForecast.cs @@ -0,0 +1,15 @@ +using System; + +namespace PawPanion +{ + public class WeatherForecast + { + public DateTime Date { get; set; } + + public int TemperatureC { get; set; } + + public int TemperatureF => 32 + (int)(TemperatureC / 0.5556); + + public string Summary { get; set; } + } +} diff --git a/PawPanion/appsettings.Development.json b/PawPanion/appsettings.Development.json new file mode 100644 index 0000000..8983e0f --- /dev/null +++ b/PawPanion/appsettings.Development.json @@ -0,0 +1,9 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft": "Warning", + "Microsoft.Hosting.Lifetime": "Information" + } + } +} diff --git a/PawPanion/appsettings.json b/PawPanion/appsettings.json new file mode 100644 index 0000000..ffa6ede --- /dev/null +++ b/PawPanion/appsettings.json @@ -0,0 +1,14 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft": "Warning", + "Microsoft.Hosting.Lifetime": "Information" + } + }, + "AllowedHosts": "*", + "ConnectionStrings": { + "DefaultConnection": "server=localhost\\SQLExpress;database=PawPanion;integrated security=true;TrustServerCertificate=true;" + }, + "FirebaseProjectId": "pawpanion-7ad22" +} diff --git a/SQL/01_Db_Create.sql.sql b/SQL/01_Db_Create.sql.sql new file mode 100644 index 0000000..01c6afb --- /dev/null +++ b/SQL/01_Db_Create.sql.sql @@ -0,0 +1,101 @@ +USE [master] + +IF db_id('PawPanion') IS NULl + CREATE DATABASE [PawPanion] +GO + +USE [PawPanion] +GO + + +DROP TABLE IF EXISTS [User]; +DROP TABLE IF EXISTS [Pet]; +DROP TABLE IF EXISTS [ToDo]; +DROP TABLE IF EXISTS [Record]; +DROP TABLE IF EXISTS [RecordType]; +DROP TABLE IF EXISTS [Appointment]; +GO + + +CREATE TABLE [User] ( + [Id] int PRIMARY KEY IDENTITY(1, 1), + [FirebaseUserId] nvarchar(255) UNIQUE NOT NULL, + [Name] nvarchar(255) NOT NULL, + [Email] nvarchar(255) NOT NULL, + [Phone] nvarchar(255), + [ImageLocation] nvarchar(255), + [IsVet] bit NOT NULL +) +GO + +CREATE TABLE [Pet] ( + [Id] int PRIMARY KEY IDENTITY(1, 1), + [Name] nvarchar(255) NOT NULL, + [Breed] nvarchar(255) NOT NULL, + [IsMale] bit NOT NULL, + [Age] float NOT NULL, + [OwnerId] int NOT NULL, + [IsDog] bit NOT NULL, + [ImageLocation] nvarchar(255) +) +GO + +CREATE TABLE [ToDo] ( + [Id] int PRIMARY KEY IDENTITY(1, 1), + [OwnerId] int NOT NULL, + [PetId] int NOT NULL, + [Message] nvarchar(255) NOT NULL, + [DueDate] datetime, + [IsComplete] bit NOT NULL +) +GO + +CREATE TABLE [Record] ( + [Id] int PRIMARY KEY IDENTITY(1, 1), + [RecordTypeId] int NOT NULL, + [PetId] int NOT NULL, + [VetId] int NOT NULL, + [Date] datetime NOT NULL, + [Weight] float, + [Medication] nvarchar(255), + [Illness] nvarchar(255), + [Diet] nvarchar(255), + [Note] nvarchar(255) +) +GO + +CREATE TABLE [RecordType] ( + [Id] int PRIMARY KEY IDENTITY(1, 1), + [Name] nvarchar(255) NOT NULL +) +GO + +CREATE TABLE [Appointment] ( + [Id] int PRIMARY KEY IDENTITY(1, 1), + [PetId] int NOT NULL, + [VetId] int NOT NULL, + [Date] datetime NOT NULL, + [ReasonForVisit] nvarchar(255) NOT NULL +) +GO + +ALTER TABLE [Record] ADD FOREIGN KEY ([PetId]) REFERENCES [Pet] ([Id]) ON DELETE CASCADE +GO + +ALTER TABLE [Record] ADD FOREIGN KEY ([RecordTypeId]) REFERENCES [RecordType] ([Id]) +GO + +ALTER TABLE [Appointment] ADD FOREIGN KEY ([PetId]) REFERENCES [Pet] ([Id]) ON DELETE CASCADE +GO + +ALTER TABLE [Appointment] ADD FOREIGN KEY ([VetId]) REFERENCES [User] ([Id]) +GO + +ALTER TABLE [Record] ADD FOREIGN KEY ([VetId]) REFERENCES [User] ([Id]) +GO + +ALTER TABLE [ToDo] ADD FOREIGN KEY ([OwnerId]) REFERENCES [User] ([Id]) +GO + +ALTER TABLE [ToDo] ADD FOREIGN KEY ([PetId]) REFERENCES [Pet] ([Id]) ON DELETE CASCADE +GO diff --git a/SQL/02_Seed_Data.sql.sql b/SQL/02_Seed_Data.sql.sql new file mode 100644 index 0000000..9f8b7ba --- /dev/null +++ b/SQL/02_Seed_Data.sql.sql @@ -0,0 +1,52 @@ +USE [PawPanion]; +GO + +set identity_insert [User] on +insert into [User] ([Id], FirebaseUserId, [Name], Email, Phone, ImageLocation, isVet) values (1, 'J2cSHO1UB5V9bHascob2kOCQkyD3', 'Sonny Bradford', 'sonny@allcreatures.com', 8663370606, 'https://www.safarivet.com/wp-content/uploads/2019/04/Sergio_Franco.jpg', 1); +insert into [User] ([Id], FirebaseUserId, [Name], Email, Phone, ImageLocation, isVet) values (2, 'iLwSZ6bjH1cEX1RP731YpucVDq33', 'Michaela Summers', 'msummers@allcreatures.com', 8663078525, 'https://www.lsu.edu/vetmed/images/headshots/gill_nimar.jpg', 1); +insert into [User] ([Id], FirebaseUserId, [Name], Email, Phone, ImageLocation, isVet) values (3, 'c9GkMHeu27di9WYzV7DRYTW4TwI3', 'Rebekah Grandey', 'rebekahtdesigns@gmail.com', 9316071234, 'https://pasteboard.co/j4zj9fFqAdc6.png', 0); +insert into [User] ([Id], FirebaseUserId, [Name], Email, Phone, ImageLocation, isVet) values (4, 'LVnmq6h5I3O6ANa2V2Tt0x1RF4c2', 'Eileen Jones', 'eileenjones@gmail.com', 8663053667, 'https://static.vecteezy.com/system/resources/thumbnails/003/492/047/small/closeup-portrait-of-a-charming-girl-over-blue-studio-background-image-free-photo.jpg', 0); +insert into [User] ([Id], FirebaseUserId, [Name], Email, Phone, ImageLocation, isVet) values (5, 'z8OtkoZuYMRTYigOqZmwCa0G2Zj1', 'Kellye Perry', 'kperry@charter.net', 9317430412, 'https://wp.dailybruin.com/images/2020/08/web.ae_.katyperry.courtesy-128x128.jpg', 0); +insert into [User] ([Id], FirebaseUserId, [Name], Email, Phone, ImageLocation, isVet) values (6, 'MoKLbuMewLdwtYyCGzzoybQS4Lk1', 'John Walker', 'jwalker@allcreatures.com', 8665489055, null, 1); +insert into [User] ([Id], FirebaseUserId, [Name], Email, Phone, ImageLocation, isVet) values (7, 'ZvherFg8pKRmZm4vOYFcXxYM32F2', 'Greg Thomas', 'mrgreg83@hotmail.com', 6153345351, null, 0); +insert into [User] ([Id], FirebaseUserId, [Name], Email, Phone, ImageLocation, isVet) values (8, 'e325QlaRsTamAc8NT5Fpyhpg0aW2', 'Anahi Miranda', 'anahimir@gmail.com', 6156579925, null, 0); +set identity_insert [User] off + +set identity_insert [Pet] on +insert into [Pet] ([Id], [Name], Breed, IsMale, Age, OwnerId, IsDog, ImageLocation) values (1, 'Annie', 'Ragdoll/mix', 0, 6, 3, 0, 'https://pasteboard.co/RTqrisoyChZm.png'); +insert into [Pet] ([Id], [Name], Breed, IsMale, Age, OwnerId, IsDog, ImageLocation) values (2, 'Lottie', 'Britney/Cocker Spaniel', 0, .2, 3, 1, 'https://pasteboard.co/6AOGSiqa4fXP.png'); +insert into [Pet] ([Id], [Name], Breed, IsMale, Age, OwnerId, IsDog, ImageLocation) values (3, 'Banjo', 'Mountain Cur', 1, 2, 4, 1, 'https://www.dogbreedslist.info/uploads/dog-pictures/mountain-cur-2.jpg'); +insert into [Pet] ([Id], [Name], Breed, IsMale, Age, OwnerId, IsDog, ImageLocation) values (4, 'Luna', 'mixed breed', 0, 8, 7, 1, null); +insert into [Pet] ([Id], [Name], Breed, IsMale, Age, OwnerId, IsDog, ImageLocation) values (5, 'Baby Cat', 'Tortie mix', 0, 3, 5, 0, null); +insert into [Pet] ([Id], [Name], Breed, IsMale, Age, OwnerId, IsDog, ImageLocation) values (6, 'Milo', 'Chihuahua mix', 1, 5, 7, 1, null); +insert into [Pet] ([Id], [Name], Breed, IsMale, Age, OwnerId, IsDog, ImageLocation) values (7, 'Eden', 'Calico mix', 0, 13, 5, 0, null); +insert into [Pet] ([Id], [Name], Breed, IsMale, Age, OwnerId, IsDog, ImageLocation) values (8, 'Pepsi', 'Black Persian mix', 0, 6, 5, 0, null); +set identity_insert [Pet] off + +set identity_insert [RecordType] on +insert into [RecordType] ([Id], [Name]) values (1, 'Routine Checkup'); +insert into [RecordType] ([Id], [Name]) values (2, 'Vaccination'); +insert into [RecordType] ([Id], [Name]) values (3, 'Surgery'); +insert into [RecordType] ([Id], [Name]) values (4, 'Treatment'); +insert into [RecordType] ([Id], [Name]) values (5, 'Other'); +set identity_insert [RecordType] off + +set identity_insert [Record] on +insert into Record ([Id], RecordTypeId, PetId, VetId, Date, Weight, Medication, Illness, Diet, Note) values (1, 1, 1, 1, '2016-06-07 14:00:00', 3, 'Revolution Plus Topical Solution for Cats, 2.8-5.5 lbs', 'Ear mites, fleas', null, 'Mild case of ear mites and fleas. Apply Revolution once a month for three months. Squeeze the tube 3 or 4 times to empty on to the skin in one spot. Do not massage into the skin.'); +insert into Record ([Id], RecordTypeId, PetId, VetId, Date, Weight, Medication, Illness, Diet, Note) values (2, 2, 3, 1, '2019-02-12 13:00:00', 9, null, null, 'Purina One Puppy Food - 1/2 cup three times a day', 'First round of dewormer(StrongIdT) Next round in approximately two weeks'); +insert into Record ([Id], RecordTypeId, PetId, VetId, Date, Weight, Medication, Illness, Diet, Note) values (3, 2, 3, 1, '2019-02-20 13:30:00', 10.9, null, null, null, 'Second round of dewormer(StrongIdT) Next round in approximately two weeks. Distemper, Hepatitus, and Parainfluenza administered. Will administer Parvovirus vaccine at next visit.'); +insert into Record ([Id], RecordTypeId, PetId, VetId, Date, Weight, Medication, Illness, Diet, Note) values (4, 1, 1, 2, '2019-02-22 10:00:00', 8.8, null, null, null, 'Routine checkup normal vitals.'); +insert into Record ([Id], RecordTypeId, PetId, VetId, Date, Weight, Medication, Illness, Diet, Note) values (5, 2, 3, 1, '2019-03-04 11:30:00', 13.7, null, null, null, 'Third round of dewormer(StrongIdT) Final. Parvovirus vaccine administered.'); +insert into Record ([Id], RecordTypeId, PetId, VetId, Date, Weight, Medication, Illness, Diet, Note) values (6, 4, 3, 2, '2019-09-03 08:30:00', 20.4, 'NexGuard Chewable', null, null, 'NexGuard Chewable 3 pills once/month.'); +insert into Record ([Id], RecordTypeId, PetId, VetId, Date, Weight, Medication, Illness, Diet, Note) values (7, 1, 3, 2, '2020-09-28 08:00:00', 31.2, null, null, null, 'Routine checkup normal vitals.'); +set identity_insert [Record] off + +set identity_insert [ToDo] on +insert into [ToDo] ([Id], OwnerId, PetId, Message, DueDate, isComplete) values (1, 7, 4, 'Buy clicker for training', '2023-02-18 10:00:00', 0); +insert into [ToDo] ([Id], OwnerId, PetId, Message, DueDate, isComplete) values (2, 3, 2, 'Do walk-in for nail trim before they close', '2023-02-20 15:00:00', 0); +set identity_insert [ToDo] off + +set identity_insert [Appointment] on +insert into [Appointment] ([Id], PetId, VetId, Date, ReasonForVisit) values (1, 5, 6, '2023-03-13 08:00:00', 'Rabies vaccination'); +insert into [Appointment] ([Id], PetId, VetId, Date, ReasonForVisit) values (2, 2, 2, '2023-03-15 10:30:00', 'Dewormer round 4'); +set identity_insert [Appointment] off \ No newline at end of file