﻿using System;

using Composite.Data;
using Composite.Data.Hierarchy;
using Composite.Data.Hierarchy.DataAncestorProviders;

namespace Demo
{
    [AutoUpdateble]
    [DataAncestorProvider(typeof(NoAncestorDataAncestorProvider))]
    [KeyPropertyName("Id")]
    [LabelPropertyName("Title")]
    [DataScope(DataScopeIdentifier.PublicName)]
    [ImmutableTypeId("{93F95C27-B3EF-445B-B034-7844B6425176}")]
    public interface IFolderItem : IPageDataFolder
    {
        [StoreFieldType(PhysicalStoreFieldType.Guid)]
        [ImmutableFieldId("{0B70A463-CDB1-4302-A8C7-02D30CA8E6DE}")]
        Guid Id { get; set; }

        [StoreFieldType(PhysicalStoreFieldType.String, 32)]
        [ImmutableFieldId("{F45FB897-52F0-4C20-8DBF-1149358662EF}")]
        string Title { get; set; }

        [StoreFieldType(PhysicalStoreFieldType.DateTime)]
        [ImmutableFieldId("{89E1B884-AD01-4175-90B1-25C90C323529}")]
        DateTime Released { get; set; }
	}
}
