// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // using Newtonsoft.Json; namespace Microsoft.SqlTools.ServiceLayer.TableDesigner.Contracts { /// /// The view model of a table column object /// public class TableColumnViewModel : ObjectViewModelBase { public DropdownProperties Type { get; set; } = new DropdownProperties(); public InputBoxProperties Length { get; set; } = new InputBoxProperties(); public InputBoxProperties Scale { get; set; } = new InputBoxProperties(); public InputBoxProperties Precision { get; set; } = new InputBoxProperties(); public CheckBoxProperties AllowNulls { get; set; } = new CheckBoxProperties(); public InputBoxProperties DefaultValue { get; set; } = new InputBoxProperties(); public CheckBoxProperties IsPrimaryKey { get; set; } = new CheckBoxProperties(); public CheckBoxProperties IsIdentity { get; set; } = new CheckBoxProperties(); public InputBoxProperties IdentitySeed { get; set; } = new InputBoxProperties(); public InputBoxProperties IdentityIncrement { get; set; } = new InputBoxProperties(); } }