2b9f74a1b2
* Added autocreate database if not exists
23 lines
511 B
C#
23 lines
511 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Step.Model
|
|
{
|
|
[Table("roles")]
|
|
public class RoleModel
|
|
{
|
|
[Key]
|
|
[Column("id")]
|
|
public int RoleId { get; set; }
|
|
[Column("name")]
|
|
public string Name { get; set; }
|
|
[Column("level")]
|
|
public int Level { get; set; }
|
|
}
|
|
}
|