/// 标签 Domain 实体
class Tag {
  final int? id;
  final int? uid;
  final String name;
  final int? type;
  final int? createdAt;
  final int? updatedAt;
  final int? addIndex;

  const Tag({
    this.id,
    this.uid,
    this.name = '',
    this.type,
    this.createdAt,
    this.updatedAt,
    this.addIndex,
  });

  Tag copyWith({
    int? id,
    int? uid,
    String? name,
    int? type,
    int? createdAt,
    int? updatedAt,
    int? addIndex,
  }) {
    return Tag(
      id: id ?? this.id,
      uid: uid ?? this.uid,
      name: name ?? this.name,
      type: type ?? this.type,
      createdAt: createdAt ?? this.createdAt,
      updatedAt: updatedAt ?? this.updatedAt,
      addIndex: addIndex ?? this.addIndex,
    );
  }
}