﻿// Useful C#
// Copyright (C) 2014-2016 Nicholas Randal
// 
// Useful C# is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
// 
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.

using Newtonsoft.Json;

namespace Randal.Sql.Deployer.Configuration
{
	public interface IProjectsTableConfig
	{
		string Database { get; }
		string CreateTable { get; }
		string Insert { get; }
		string Read { get; }
	}

	public sealed class ProjectsTableConfig : IProjectsTableConfig
	{
		[JsonProperty(Required = Required.Default)]
		public string Database { get; set; }

		[JsonProperty(Required = Required.Default)]
		public string CreateTable { get; set; }

		[JsonProperty(Required = Required.Default)]
		public string Insert { get; set; }

		[JsonProperty(Required = Required.Default)]
		public string Read { get; set; }
	}
}
